Easy Chroot 0.3.1
[easy-deb-chroot] / fremantle / easy-deb-chroot / src / usr / bin / debian-lxde
1 #!/bin/sh
2 ##################################
3 #Change these two variables to the WM of your choice.
4 WMEXEC="$1"
5 [ "x$WMEXEC" != x ] ||  WMEXEC="startlxde1"
6 ##################################
7 export DISPLAY=:0
8 # export TSLIB_TSDEVICE=/dev/input/event3
9 debbie-sue 'echo "chroot is now open!"'
10 debbie-sue '/usr/bin/Xephyr :1 -screen 800x480 -br -ac' &
11 while [ "x$PARWIN" = "x" ] ; do
12   # wait for Xephyr window to appear
13   export PARWIN=`wmctrl -l | grep -i "N/A Xephyr" | awk '{print $1}'`
14 done
15 echo "Xephyr window ID is ($PARWIN)"
16 DISPLAY=:1 ; debbie-sue "habak -mf /usr/share/fonts/truetype/DroidSans-Bold.ttf \
17      -ht 'Ctrl-back to return to dashboard.'"
18 DISPLAY=:0 ; wmctrl -i -r $PARWIN -T 'Easy Debian'
19 wmctrl -i -r $PARWIN -b toggle,fullscreen
20 zenity --display=:0 --info --title="Information" --text="Welcome to Easy Debian LXDE. This window is needed to gain keyboard focus in LXDE." &
21 while [ "x$TWOWIN" = "x" ] ; do
22   # wait for Zenity dialog to pop up...
23   export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'`
24 done
25 sudo debian /sbin/qobi-wmhint-fix $PARWIN
26 debbie-sue /usr/bin/$WMEXEC
27 killall Xephyr
28 export DISPLAY=:0