X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.xsession;h=ce8b2b5275160a7b0c5812c746626bbe7032c913;hb=ea1ba6a17d4fa413728ddf90f86d67da63bdbe31;hp=c39b9fbe9418adfffc5584f19d9f5167d0157477;hpb=bee2cf407abf660183d912452ae0b93fa66308c9;p=x_base.git diff --git a/.xsession b/.xsession index c39b9fb..ce8b2b5 100755 --- a/.xsession +++ b/.xsession @@ -54,6 +54,12 @@ 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/\"$//; "); + export MPD_HOST; +fi; + if [ -x /usr/bin/awesome ]; then exec /usr/bin/awesome; elif [ -x /usr/bin/ion3 ]; then