środa, 9 lutego 2011

Multiseat setup - multiseat-greeter

. /etc/multiseat/scripts/helper-functions

NUM_SEATS=`get_num_seats`

PRIMARY=`get_conf 0 PRIMARY`

for (( i=1; i<=$NUM_SEATS; i++ ));
do
    if [ $i != $PRIMARY ]; then
        XEP=`XAUTHORITY=/var/lib/gdm/:0.Xauth xwininfo -root -children -display :0 | grep "Xephyr on :$i" --max-count=1`;
        XEPHYR_WIN_ID=`echo ${XEP} | cut -d' ' -f1`;
                DISPLACEMENT=`get_conf $i DISPLACEMENT`
        DISPLAY=:0 XAUTHORITY=/var/lib/gdm/:0.Xauth wmctrl 2>&1 -v -i -r ${XEPHYR_WIN_ID} -e 0,${DISPLACEMENT},-1,-1;
    fi
done

/usr/lib/gdm/gdmgreeter

2 komentarze:

  1. Hi,

    I've read your setup, and the key point is here:
    move the new Xephyr window to it's place using wmctrl. I've got this utility already, but it requires a windowmanager to make it work.

    Do you know that??

    Stef
    the Netherlands

    OdpowiedzUsuń
    Odpowiedzi
    1. @Stef Bon

      Wow, so somebody has read this... Sorry about not answering, but I thought Google would mail me if there are comments.

      Good point. I did not care about windowmanager, so it must have just been there and it happened to work. We learn all life long...

      Usuń