added control scripts and icons to repo
[powermate.git] / scripts / music-toggle
diff --git a/scripts/music-toggle b/scripts/music-toggle
new file mode 100755 (executable)
index 0000000..0069206
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -n "$(pgrep pianobar)" ]
+then
+  pianobar-toggle
+else
+  if [ -n "$(pgrep mpd)" ]
+  then
+    mpc toggle
+  fi
+fi