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)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
case $((hostname)) in
t430s-arch)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
start-pulseaudio-x11
eval $(gpg-agent --daemon) &
pulseaudio --start
xrdb $HOME/.Xresources
eval $(gpg-agent --daemon) &
# add additional fonts
xset +fp /usr/share/fonts/local
xset fp rehash
xrdb $HOME/.Xresources
case $1 in
enlightenment)
exec enlightenment_start
;;
xterm)
exec xterm
;;
bspwm)
sxhkd &
exec bspwm
;;
hlwm|*) # default is herbstluftwm
/usr/bin/xscreensaver -no-splash &
xbindkeys &
exec herbstluftwm --locked
;;
# add additional fonts
xset +fp /usr/share/fonts/local
xset fp rehash
case $1 in
enlightenment)
exec enlightenment_start
;;
xterm)
exec xterm
;;
bspwm)
sxhkd &
exec bspwm
;;
hlwm|*) # default is herbstluftwm
/usr/bin/xscreensaver -no-splash &
xbindkeys &
exec herbstluftwm --locked
;;
esac
;;
esac