X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.xsession;h=e87798dfaaf58159daeeb4dbfbbfff186cec54a5;hb=02292ef4c662e32262086a018b3d98c84758d92a;hp=f190757950cf090a5e243ad84178be1745c133db;hpb=37621d60660fe811526431fc786ff4ae0f6fae2c;p=x_base.git diff --git a/.xsession b/.xsession index f190757..e87798d 100755 --- a/.xsession +++ b/.xsession @@ -44,13 +44,28 @@ if [ -e ~/.Xauthority ]; then cp -f .Xauthority .Xauthority.bak fi -if [ -x /usr/bin/xautolock ]; then - /usr/bin/xautolock -notifier true -bell 0 & -elif [ -x /usr/bin/xscreensaver -a -e ~/.xscreensaver ]; then - /usr/bin/xscreensaver & +if [ -x /usr/bin/xscreensaver -a -e ~/.xscreensaver ]; then + ( XENVIRONMENT=~/.xscreensaver /usr/bin/xscreensaver >/dev/null 2>&1 &) +elif [ -x /usr/bin/xautolock ]; then + (/usr/bin/xautolock -notifier true -bell 0 >/de/vnull 2>&1 &) fi; -if [ -x /usr/bin/awesome ]; then +if which redshift >/dev/null 2>&1; then + (redshift -l 40.11059:-88.20727 >/dev/null 2>&1 &) +fi; + +if which mpd >/dev/null 2>&1 && [ -e ~/.mpdconf ]; then + (mpd >/dev/null 2>&1 &); + MPD_HOST=$(awk '/^bind_to_address/{print $2}' ~/.mpdconf|sed "s|~|$HOME|; s/^\"//; s/\"$//; "); + export MPD_HOST; +fi; + +if [ -x /usr/bin/i3 ]; then + if [ -x ~/.config/i3/build_config.sh ]; then + ~/.config/i3/build_config.sh; + fi; + exec /usr/bin/i3; +elif [ -x /usr/bin/awesome ]; then exec /usr/bin/awesome; elif [ -x /usr/bin/ion3 ]; then exec /usr/bin/ion3;