aboutsummaryrefslogtreecommitdiffstats
path: root/moc/.local/bin/mocpnotify
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-07-12 16:27:52 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-07-12 16:27:52 +0300
commite3bbee81de559c1b4dea7a83d46da3b4e00cc2a8 (patch)
tree697bca3add8a534bd6ed6a82308ef5869cc78393 /moc/.local/bin/mocpnotify
parent2d5fa70da78d05147a4055c51c983b93a4bc32dd (diff)
downloaddotfiles-e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8.tar.gz
dotfiles-e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8.zip
move to GNU stow approach on managing dotfiles
Diffstat (limited to 'moc/.local/bin/mocpnotify')
-rwxr-xr-xmoc/.local/bin/mocpnotify11
1 files changed, 11 insertions, 0 deletions
diff --git a/moc/.local/bin/mocpnotify b/moc/.local/bin/mocpnotify
new file mode 100755
index 0000000..f3aa72c
--- /dev/null
+++ b/moc/.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
+