rendered paste body$ cat startxgl.sh
#!/bin/bash
echo ">Starting XGL at Display: $1"
echo "========= XGL ============"
Xgl -fullscreen :$1 -ac -accel xv:pbuffer -accel glx:pbuffer & ## ati fglrx command to start Xgl
#Xgl :$0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo ## nvidia style (not sure if this works)
sleep 1
echo "======= COMPIZ ==========="
DISPLAY=:$1 LD_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/lib/ compiz --replace gconf decoration wobbly fade switcher minimize cube rotate zoom scale move resize place &
sleep 1
echo "====== DECORATIONS ======="
DISPLAY=:$1 gnome-window-decorator &
sleep 1
echo "======= XFCE4 ============"
#DISPLAY=:$1 setxkbmap -model pc105 -layout us -variant basic ## if you're keyboard isn't playing nice
DISPLAY=:$1 startxfce4
#echo "======= LOGOUT ============"
#killall Xgl
# Adding the line above,if you can't logout XFCE correctly.
# Changing DISPLAY=:$1 TO DISPLAY=:$0