X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.xsession;h=30b841f7ee4dc859cca9b4fac1d047c9b60bb55b;hb=96287bc253566093cde24d470aaad7f014278dfe;hp=8ddaf1dcef90016da2286d0a478a007622c2e729;hpb=84674da173dc629325926488a0351fe3c4c88766;p=x_base.git diff --git a/.xsession b/.xsession index 8ddaf1d..30b841f 100755 --- a/.xsession +++ b/.xsession @@ -20,7 +20,7 @@ mv ~/.xsession-errors ~/.xsession-errors_${DATE}; ln -sf ~/.xsession-errors_${DATE} ~/.xsession-errors-current; # delete old xsession error files find ~/ -maxdepth 1 -mindepth 1 -type f \ - -iname '.xsession-errors*' -ctime +30 -delete; + -iname '.xsession-errors_*' -ctime +30 -delete; if locale -a |grep -qi en_US.utf8; then LANG="en_US.UTF-8" @@ -68,12 +68,12 @@ if cmd_exists redshift; then fork redshift; fi; -if cmd_exists mopidy && [ -e ~/.config/mopidy/mopidy.conf ]; then - fork mopidy; -elif cmd_exists mpd && [ -e ~/.mpdconf ]; then +if cmd_exists mpd && [ -e ~/.mpdconf ]; then fork mpd; MPD_HOST=$(awk '/^bind_to_address/{print $2}' ~/.mpdconf|sed "s|~|$HOME|; s/^\"//; s/\"$//; "); export MPD_HOST; +elif cmd_exists mopidy && [ -e ~/.config/mopidy/mopidy.conf ]; then + fork mopidy; fi; if [ -x /sbin/iw ] && cmd_exists nm-applet && /sbin/iw list|grep -q '^Wiphy'; then