etc/xsession

49 lines
616 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ "`basename "$SHELL"`" != zsh -o -n "$BASH" ] && which zsh 2>/dev/null; then
exec zsh ~/.xsession
fi
2010-03-18 15:36:33 +00:00
XSESSION=gnome
case $XSESSION in
ratpoison)
xsetroot -solid black -cursor_name left_ptr
unclutter -idle 1 &
exec ratpoison
;;
2010-03-18 10:06:09 +00:00
awesome)
exec awesome
;;
xmonad)
exec xmonad
;;
ion3)
exec ion3
;;
gnome)
exec gnome-session
;;
kde)
exec startkde
;;
xfce4)
if test -x /etc/xdg/xfce4/xinitrc; then
exec /etc/xdg/xfce4/xinitrc
else
exec startxfce4
fi
;;
*)
msg="I've got no clue on what to do! Call master Gabriel!"
xmessage "$msg" || echo "$msg"
exit 1
esac