#!/bin/sh
##################################
#Change these two variables to the WM of your choice.
# WMNAME="$2" ; 
WMEXEC="$1"
# [ "x$WMNAME" != x ] ||  WMNAME="LXDE"
[ "x$WMEXEC" != x ] ||  WMEXEC="startlxde1"
##################################
export DISPLAY=:0
export TSLIB_TSDEVICE=/dev/input/event3
export TSLIB_CALIBFILE=/etc/pointercal
export GTK_MODULES=libgtkstylus.so
#export PARWIN=`wmctrl -l | grep -i "$WMNAME" | awk '{print $1}'`
#echo WMNAME=$WMNAME PARWIN=$PARWIN
#wmctrl -i -r $PARWIN -b toggle,fullscreen
xinit /usr/bin/$WMEXEC -- /usr/bin/Xephyr :1 -br -screen 858x480x16 -dpi 96 -fullscreen +kb -ac
#/usr/bin/Xephyr :1 -br -screen 858x480x16 -fullscreen -dpi 96 +kb -ac &
#exec $WMEXEC
export DISPLAY=:0
