aboutsummaryrefslogtreecommitdiff
path: root/vol.sh
blob: 180cfe6c7022a1255481548c55b268a31d396969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

sink="@DEFAULT_SINK@"

if [ "$1" = "mute" ]; then
	pactl set-sink-mute "$sink" toggle
else
	pactl set-sink-volume "$sink" "$1%"
fi

dunstify -r "$(dunstifyIDs.sh "vol")" -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+10 "$STATUS_BAR"