piątek, 25 maja 2012

Multiseat setup - Xephyr-seat

#!/bin/bash
#
# $1 - seat name of this Xephyr (from Seat:<n> in lightdm.conf)
# $2 - display number of this Xephyr

. /etc/multiseat/scripts/helper-functions

trap "" usr1

XEPHYR=/root/Xephyr
export DISPLAY=:0
export XAUTHORITY=/var/run/lightdm/root/:0

SEAT=$1

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 -retro -screen ${SIZE} -keybd evdev,,device=/dev/input/${KEYBOARD},xkbrules=evdev,xkbmodel=evdev,xkblayout=${LAYOUT} -mouse evdev,,device=/dev/input/${MOUSE} -dpi ${DPI} $2

Brak komentarzy:

Prześlij komentarz