make xinitrc hostname specific

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

24
xinitrc
View File

@@ -4,23 +4,26 @@
# #
# 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
t430s-arch)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f" [ -x "$f" ] && . "$f"
done done
unset f unset f
fi 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
xset +fp /usr/share/fonts/local
xset fp rehash
case $1 in
enlightenment) enlightenment)
exec enlightenment_start exec enlightenment_start
;; ;;
@@ -36,4 +39,7 @@ case $1 in
xbindkeys & xbindkeys &
exec herbstluftwm --locked exec herbstluftwm --locked
;; ;;
esac
;;
esac esac