#!/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
-
-