summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorboredpasta <boredpasta@tutanota.com>2025-01-13 07:25:31 +0200
committerboredpasta <boredpasta@tutanota.com>2025-01-13 07:25:31 +0200
commit2db3daa5515529767139afac11e55cc361d86c0c (patch)
treec5d9d091f9068669b596dbc8377dbd4cdd85b403
parent7922604282e94f2a59c63a949370a71226b6a65c (diff)
mpc-notify: handle the "stop" command
-rw-r--r--[-rwxr-xr-x]mpc-notify5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpc-notify b/mpc-notify
index 2ed025f..48cb5c7 100755..100644
--- a/mpc-notify
+++ b/mpc-notify
@@ -43,6 +43,11 @@ case "$command" in
song_head="Now Playing"
use_preview=1
;;
+"stop")
+ mpc -q stop
+ song_head="Stopped Playing"
+ song_icon="media-playback-stop"
+ ;;
"toggle")
mpc -q toggle
state="$(mpc status %state%)"