From: Don Armstrong Date: Fri, 20 Feb 2015 07:39:35 +0000 (-0800) Subject: start a local version of mpd instead of a system wide one X-Git-Url: https://git.donarmstrong.com/?p=x_base.git;a=commitdiff_plain;h=37a5bb161dfda366a6988f4ed9af6795992cba85 start a local version of mpd instead of a system wide one --- diff --git a/.xsession b/.xsession index c39b9fb..94fa4f6 100755 --- a/.xsession +++ b/.xsession @@ -54,6 +54,11 @@ if which redshift >/dev/null 2>&1; then (redshift -l 33.9533:-117.3953 >/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/\"$//; "); +fi; + if [ -x /usr/bin/awesome ]; then exec /usr/bin/awesome; elif [ -x /usr/bin/ion3 ]; then