#!/bin/sh
export DISPLAY=:0
sudo /usr/bin/Xephyr :1 -wr -host-cursor -screen 700x450x16 -fp /usr/share/fonts &
echo "Xephyr started"
export DISPLAY=:1
/usr/bin/matchbox-window-manager -theme glasser -use_titlebar yes -display :1 &
echo "matchbox started"
/usr/lib/sapwood/sapwood-server &
echo "sapwood started"
sudo su - user -c "DISPLAY=:1; browser" &
echo "Browser started"
#sleep 10
export DISPLAY=:0
sudo wmctrl -r Xephyr -T "MicroB Browser"
echo "Xephyr window title changed"
