minor changes
[dotfiles.git] / music / .local / bin / music_toggle
index dc6b297..eaddd60 100755 (executable)
@@ -1,10 +1,13 @@
 #!/bin/sh
-
-# Quodlibet is running
-if ! quodlibet --status
+if quodlibet --status
 then
        quodlibet --play-pause
-
+elif mpc status
+then
+       mpc toggle
+elif cmus-remote -Q
+then
+       cmus-remote --pause
+else
+       echo "$(date) $0: no music player detected"
 fi
-
-