dotfiles/.xinitrc

21 lines
549 B
Text
Raw Normal View History

2013-03-23 14:54:07 +01:00
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile
2014-09-29 09:41:58 +02:00
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
hash xcompmgr 2>/dev/null && xcompmgr &
hash xscreensaver 2>/dev/null && xscreensaver -no-splash &
hash gpg-agent 2>/dev/null && eval $(gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info")
2013-03-23 14:54:07 +01:00
DEFAULT_SESSION=awesome
[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$PATH:$HOME/bin"
2013-03-23 14:54:07 +01:00
case "$1" in
2015-06-02 17:52:27 +02:00
awesome)
2013-03-23 14:54:07 +01:00
exec awesome
;;
2014-09-29 09:41:58 +02:00
qtile)
exec qtile
2013-03-23 14:54:07 +01:00
;;
*) exec $DEFAULT_SESSION ;;
esac