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

notify-send -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
pkill -SIGRTMIN+10 i3blocks