make xinitrc hostname specific

This commit is contained in:
Thomas Ruoff
2014-05-18 00:09:56 +02:00
parent 842c289cd7
commit b536816ab7

62
xinitrc
View File

@@ -4,36 +4,42 @@
# #
# Executed by startx (run your window manager from here) # Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then case $((hostname)) in
for f in /etc/X11/xinit/xinitrc.d/*; do t430s-arch)
[ -x "$f" ] && . "$f" if [ -d /etc/X11/xinit/xinitrc.d ]; then
done for f in /etc/X11/xinit/xinitrc.d/*; do
unset f [ -x "$f" ] && . "$f"
fi done
unset f
fi
start-pulseaudio-x11 pulseaudio --start
eval $(gpg-agent --daemon) &
xrdb $HOME/.Xresources eval $(gpg-agent --daemon) &
# add additional fonts xrdb $HOME/.Xresources
xset +fp /usr/share/fonts/local
xset fp rehash
case $1 in # add additional fonts
enlightenment) xset +fp /usr/share/fonts/local
exec enlightenment_start xset fp rehash
;;
xterm) case $1 in
exec xterm enlightenment)
;; exec enlightenment_start
bspwm) ;;
sxhkd & xterm)
exec bspwm exec xterm
;; ;;
hlwm|*) # default is herbstluftwm bspwm)
/usr/bin/xscreensaver -no-splash & sxhkd &
xbindkeys & exec bspwm
exec herbstluftwm --locked ;;
;; hlwm|*) # default is herbstluftwm
/usr/bin/xscreensaver -no-splash &
xbindkeys &
exec herbstluftwm --locked
;;
esac
;;
esac esac