aboutsummaryrefslogblamecommitdiff
path: root/.local/bin/sb_volume.sh
blob: c769ddd81eccadbc9a0a5ecf093bbf7cebb312a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                      
#!/bin/sh

case $BUTTON in
	# Left mouse click
	1) amixer -q sset Master toggle ;;

	# Mouse wheel up
	4) amixer -q sset Master 1%+ ;;

	# Mouse wheel down
	5) amixer -q sset Master 1%- ;;
esac

amixer get Master | awk -F'[][]' 'END{ print toupper($(NF-1))": "$2 }'