diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-07-12 16:27:52 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-07-12 16:27:52 +0300 |
| commit | e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8 (patch) | |
| tree | 697bca3add8a534bd6ed6a82308ef5869cc78393 /moc/.local/bin/mocpnotify | |
| parent | 2d5fa70da78d05147a4055c51c983b93a4bc32dd (diff) | |
| download | dotfiles-e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8.tar.gz dotfiles-e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8.zip | |
move to GNU stow approach on managing dotfiles
Diffstat (limited to 'moc/.local/bin/mocpnotify')
| -rwxr-xr-x | moc/.local/bin/mocpnotify | 11 |
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 + |
