aboutsummaryrefslogtreecommitdiff
path: root/vol.sh
blob: 127ff374fa5cd490a254b25d8e668cd84f81201a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
sink=$(pactl list sinks | grep "^Sink " | cut -d'#' -f2)
if [ $1 = "mute" ]; then
	pactl set-sink-mute $sink toggle
else
	pactl set-sink-volume $sink $1%
fi

notify-send -h string:x-canonical-private-synchronous:vol -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
pkill -SIGRTMIN+10 i3blocks