Skip to content

Instantly share code, notes, and snippets.

@dlight
Created March 18, 2016 16:29
Show Gist options
  • Save dlight/58f2abba59aa66f348bc to your computer and use it in GitHub Desktop.
Save dlight/58f2abba59aa66f348bc to your computer and use it in GitHub Desktop.
#!/bin/sh
path=~testandius/.cabal/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:\
/usr/lib/jvm/default/bin:/usr/bin/site_perl:\
/usr/bin/vendor_perl:/usr/bin/core_perl
cd ~testandius
run() { sudo -u testandius "$@"; }
runx() { run DISPLAY=:1 PATH=$path "$@"; }
run killall -9 Xephyr
(while ! run xdpyinfo -display :1 1>/dev/null 2>&1; do true; done;
runx xfce4-terminal &
runx xmonad &
#runx ~testandius/.cabal/bin/taffybar &
runx xrdb -merge ~testandius/.Xresources
runx xsetroot -cursor_name left_ptr
runx setxkbmap br abnt2) &
(while ! wmctrl -b add,maximized_vert,maximized_horz \
-r 'Xephyr on :1.0'; do true; done) &
run Xephyr -resizeable -screen 1341x768 :1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment