]> git.donarmstrong.com Git - x_base.git/commitdiff
start mopidy if it exists
authorDon Armstrong <don@donarmstrong.com>
Thu, 30 Jun 2016 20:27:31 +0000 (15:27 -0500)
committerDon Armstrong <don@donarmstrong.com>
Thu, 30 Jun 2016 20:27:53 +0000 (15:27 -0500)
.xsession

index e87798dfaaf58159daeeb4dbfbbfff186cec54a5..3ce006dfb191142b172b936ba16aed0446ab201c 100755 (executable)
--- a/.xsession
+++ b/.xsession
@@ -54,7 +54,9 @@ if which redshift >/dev/null 2>&1; then
     (redshift -l 40.11059:-88.20727 >/dev/null 2>&1 &)
 fi;
 
-if which mpd >/dev/null 2>&1 && [ -e ~/.mpdconf ]; then
+if which mopidy >/dev/null 2>&1 && [ -e ~/.config/mopidy/mopidy.conf ]; then
+    (mopidy > /dev/null 2>&1 & );
+elif 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;