49 lines
618 B
Bash
49 lines
618 B
Bash
#!/bin/bash
|
|
|
|
if [ "`basename "$SHELL"`" != zsh -o -n "$BASH" ] && which zsh 2>/dev/null; then
|
|
exec zsh ~/.xsession
|
|
fi
|
|
|
|
XSESSION=awesome
|
|
|
|
case $XSESSION in
|
|
ratpoison)
|
|
xsetroot -solid black -cursor_name left_ptr
|
|
unclutter -idle 1 &
|
|
exec ratpoison
|
|
;;
|
|
|
|
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
|