Files
dotfiles/x/xinitrc
Hannes Körber 31ed7c9620 Added ~/.xinitrc to the repository.
In addition, a host-specific file that will be executed
by .xinitrc was added in ~/.xinitrc.d/.
2013-09-18 18:01:16 +02:00

29 lines
468 B
Bash
Executable File

#!/bin/bash
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[ -f /etc/xprofile ] && source /etc/xprofile
[ -f ~/.xprofile ] && source ~/.xprofile
# execute the host-specific .xinitrc-addition
hostfile="$HOME/.xinitrc.d/$(hostname).xinitrc"
[[ -f "$hostfile" ]] && bash "$hostfile" &
case $1 in
e17)
exec enlightenment_start
;;
i3)
exec i3
;;
xfce4) ;;
*)
exec i3
;;
esac