Files
DotfilesOld/xinitrc
2015-06-17 23:02:10 +02:00

46 lines
987 B
Bash
Executable File

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
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
pulseaudio --start
eval $(gpg-agent --enable-ssh-support --daemon)
xrdb $HOME/.Xresources
# 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