From Voluminous Hummingbird, 5 Days ago, written in Plain Text.
This paste will perish in 1 Day.
Embed
  1. #!/bin/sh
  2.  
  3. default="mate"
  4.  
  5. session=${1:-${default}}
  6.  
  7. case $session in
  8.         mate)
  9.                 exec ck-launch-session mate-session;;
  10.         cinnamon)
  11.                 exec ck-launch-session cinnamon-session;;
  12.         fluxbox)
  13.                 (spacefm --desktop) &
  14.                 exec startfluxbox;;
  15.         icewm)
  16.                 (spacefm --desktop) &
  17.                 exec icewm-session;;
  18.         twm)
  19.                 #twm &
  20.                 xclock -geometry 50x50-1+1 &
  21.                 exec twm;;
  22. #               exec xterm -geometry 80x66+0+0 -name login;;
  23.         openbox) exec openbox-session;;
  24.         lxde) exec ck-launch-session startlxde;;
  25.         # No known session, try to run it as command
  26.         *) exec $1;;
  27. esac
  28.