diff options
Diffstat (limited to '.local/bin/mocpnotify')
| -rwxr-xr-x | .local/bin/mocpnotify | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/mocpnotify b/.local/bin/mocpnotify new file mode 100755 index 0000000..f3aa72c --- /dev/null +++ b/.local/bin/mocpnotify @@ -0,0 +1,11 @@ +#!/bin/sh + +case $1 in + "next") + notify-send -a mocp -t 3000 "now playing" "$2 - $3 [$4]" + ;; + "stop") + notify-send -a mocp -t 3000 "mocp" "stopped playing" + ;; +esac + |
