From 99ed9a2ea95d1c0c9c66af6943566a464c03c3e5 Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 15 Oct 2017 10:18:28 -0700 Subject: first steps away from mate backend --- .config/herbstluftwm/pvol.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 .config/herbstluftwm/pvol.sh (limited to '.config/herbstluftwm/pvol.sh') 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 -- cgit v1.2.3