From e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Mon, 12 Jul 2021 16:27:52 +0300 Subject: move to GNU stow approach on managing dotfiles --- moc/.local/bin/mocpnotify | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 moc/.local/bin/mocpnotify (limited to 'moc/.local') 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 + -- cgit v1.2.3