]> git.donarmstrong.com Git - x_base.git/commitdiff
start a local version of mpd instead of a system wide one
authorDon Armstrong <don@donarmstrong.com>
Fri, 20 Feb 2015 07:39:35 +0000 (23:39 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 20 Feb 2015 07:39:35 +0000 (23:39 -0800)
.xsession

index c39b9fbe9418adfffc5584f19d9f5167d0157477..94fa4f6fe2bd1965777398f41fba8db2ea70536b 100755 (executable)
--- 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