aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/pvol.sh
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-10-15 10:18:28 -0700
committerkatherine <shmibs@shmibbles.me>2017-10-15 10:18:28 -0700
commit99ed9a2ea95d1c0c9c66af6943566a464c03c3e5 (patch)
tree678e2aef1d7b0f6b3925f713ab1a252221c2d734 /.config/herbstluftwm/pvol.sh
parentcac1dda765feb39b2308b0dbc56c1da889e6216c (diff)
downloaddotfiles-99ed9a2ea95d1c0c9c66af6943566a464c03c3e5.tar.gz
first steps away from mate backend
Diffstat (limited to '.config/herbstluftwm/pvol.sh')
-rwxr-xr-x.config/herbstluftwm/pvol.sh20
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