| context=`id -Z | secon -t -l -P` |
| export TITLE="Sandbox $context -- `grep ^#TITLE: ~/.sandboxrc | /usr/bin/cut -b8-80`" |
| [ -z $1 ] && export SCREENSIZE="1000x700" || export SCREENSIZE="$1" |
| [ -z $2 ] && export DPI="96" || export DPI="$2" |
| mkdir -p ~/.config/openbox |
| cat > ~/.config/openbox/rc.xml << EOF |
| <openbox_config xmlns="http://openbox.org/3.4/rc" |
| xmlns:xi="http://www.w3.org/2001/XInclude"> |
| <maximized>yes</maximized> |
| (/usr/bin/Xephyr -resizeable -title "$TITLE" -terminate -screen $SCREENSIZE -dpi $DPI -nolisten tcp -displayfd 5 5>&1 2>/dev/null) | while read D; do |
| cat > ~/seremote << __EOF |
| /usr/share/sandbox/start $HOME/.sandboxrc |