added control scripts and icons to repo
[powermate.git] / scripts / next
diff --git a/scripts/next b/scripts/next
new file mode 100755 (executable)
index 0000000..4c7168b
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -n "$(pgrep pianobar)" ]
+then
+  notify-send -i /usr/share/icons/powermate/skip-forward.png "skipping "
+  pianobar-next
+else
+  if [ -n "$(pgrep mpd)" ]
+  then
+    notify-send -i /usr/share/icons/powermate/skip-forward.png "skipping "
+    mpc next
+  fi
+fi