From: Don Armstrong Date: Wed, 1 Nov 2017 23:03:01 +0000 (-0700) Subject: use mpd in preference to mopidy; it's much faster X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7818b670e93bfe7e81127254a0b2ca2ab3245158;hp=5c365c66888cdf2132dc87b4c1cea220f1df115a;p=x_base.git use mpd in preference to mopidy; it's much faster --- diff --git a/.xsession b/.xsession index 4fdd239..30b841f 100755 --- a/.xsession +++ b/.xsession @@ -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