diff options
author | shmibs <shmibs@gmail.com> | 2017-11-27 01:08:51 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2017-11-27 01:08:51 -0700 |
commit | c688f7bce20158661f377e9679c3b2ce8b963fc6 (patch) | |
tree | cd0b66a81272918b7bb622c2b905d699ad058ab5 /.config/herbstluftwm/pvol.sh | |
parent | 66b00763352ccbc4af59259472a39249dc4345d6 (diff) | |
parent | a0f41b26800251aa05cbd042c8852ec8e212a95b (diff) | |
download | dotfiles-c688f7bce20158661f377e9679c3b2ce8b963fc6.tar.gz |
Merge branch 'master' of github.com:shmibs/dotfiles
Diffstat (limited to '.config/herbstluftwm/pvol.sh')
-rwxr-xr-x | .config/herbstluftwm/pvol.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/herbstluftwm/pvol.sh b/.config/herbstluftwm/pvol.sh new file mode 100755 index 0000000..5c7b351 --- /dev/null +++ b/.config/herbstluftwm/pvol.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# i patched dunst to clear all on SIGUSR1 +killall -SIGUSR1 dunst + +# race condition, obvs, but this is hopefully time enough +case "$1" in + down) + pavolume voldown --quiet 2 + ;; + up) + pavolume volup --quiet 2 + ;; + mute) + pavolume mutetoggle --quiet + ;; + *) + pavolume show + ;; +esac |