disinclined.org
/
git
/
powermate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
scripts/music-toggle
@@ -0,0
+1,11
@@
+#!/bin/sh
+
+if [ -n "$(pgrep pianobar)" ]
+then
+ pianobar-toggle
+else
+ if [ -n "$(pgrep mpd)" ]
+ then
+ mpc toggle
+ fi
+fi