aboutsummaryrefslogtreecommitdiffstats
path: root/volumecontrol
blob: 285d029729e3fd59c7cff1772353986cbfb95350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

if [[ -n "$2" ]]; then
	step=$2
else
	step=5
fi

case $1 in
	lower)
		amixer -D pulse -q set Master $step%-
		;;
	raise)
		amixer -D pulse -q set Master $step%+
		;;
	mute)
		amixer -D pulse -q set Master toggle
		;;
esac