dotfiles/.xinitrc
Rodolphe Breard 77f8febe5b Adding custom PATH to .xinitrc
The WM not being started with a login shell, the user preference aren't loaded. For example, awesome's quick exec bar cannot profit from the .zshrc custom PATH. Setting it in the .xinitrc solves this problem.
2015-02-14 10:39:15 +01:00

20 lines
560 B
Text
Executable file

[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile
[ -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")
DEFAULT_SESSION=awesome
[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$PATH:$HOME/bin"
case "$1" in
awesome|default|"")
exec awesome
;;
qtile)
exec qtile
;;
*) exec $DEFAULT_SESSION ;;
esac