aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/pvol.sh
blob: 5c7b3519611c9be3355b1c60e46467f7982f5d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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