środa, 9 lutego 2011

Multiseat setup - Xephyr-seat

. /etc/multiseat/scripts/helper-functions

trap "" usr1

XEPHYR=/usr/bin/Xephyr
DISPLAY=:0
XAUTHORITY=/var/lib/gdm/:0.Xauth

SEAT=`echo $* | cut -d" " -f1 | cut -d: -f2`

SIZE=`get_conf $SEAT SIZE`
KEYBOARD=`get_conf $SEAT KEYBOARD`
LAYOUT=`get_conf $SEAT LAYOUT`
MOUSE=`get_conf $SEAT MOUSE`
DPI=`get_conf $SEAT DPI`

exec $XEPHYR -br -screen ${SIZE} -keybd evdev,,device=/dev/input/multiseat/${KEYBOARD},xkbrules=xorg,xkbmodel=evdev,xkblayout=${LAYOUT} -mouse evdev,5,device=/dev/input/multiseat/${MOUSE} -dpi ${DPI} $*

1 komentarz:

  1. Great tutorial!
    But i had a little problem with my configuration and i had to add the option '-sw-cursor' in the xephyr command-line.
    Thank you for making this site :D

    OdpowiedzUsuń