1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 17:23:33 +01:00
dotfiles/xinitrc

63 lines
1.4 KiB
Text
Raw Normal View History

2016-10-03 10:30:30 +02:00
#!/bin/sh
#Standard Stuff
. /etc/X11/xinit/xinitrc-common
if [ -f $HOME/.Xclients ]; then
exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients || \
exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients || \
exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients
else
# Failsafe settings. Although we should never get here
# (we provide fallbacks in Xclients as well) it can't hurt.
[ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'
[ -x /usr/bin/xclock ] && /usr/bin/xclock -geometry 100x100-5+5 &
[ -x /usr/bin/xterm ] && xterm -geometry 80x50-50+150 &
[ -x /usr/bin/twm ] && /usr/bin/twm
fi
# ---------------------------------------------------------------
# OWN
# ---------------------------------------------------------------
# Load session
DEFAULT_SESSION="awesome >> $HOME/.cache/awesome/stdout 2>> $HOME/.cache/awesome/stderr"
2016-10-03 10:30:30 +02:00
XTERM=xterm
case $1 in
xfce4)
RUN=startxfce4
2016-10-03 10:30:30 +02:00
;;
awesome)
xscreensaver -nosplash &
nm-applet &
RUN=awesome
2016-10-03 10:30:30 +02:00
;;
enlightenment)
RUN=enlightenment_start
2016-10-03 10:30:30 +02:00
;;
openbox)
RUN=openbox
2016-10-03 10:30:30 +02:00
;;
cinnamon)
RUN=cinnamon
2016-10-03 10:30:30 +02:00
;;
kde)
RUN=startkde
2016-10-03 10:30:30 +02:00
;;
gnome)
RUN=gnome-session
2016-10-03 10:30:30 +02:00
;;
unity)
RUN=unity
2016-10-03 10:30:30 +02:00
;;
xterm)
RUN=xterm
2016-10-03 10:30:30 +02:00
;;
*)
RUN=$DEFAULT_SESSION
2016-10-03 10:30:30 +02:00
;;
esac
exec "$RUN" || exec "$XTERM"