~yerinalexey/dotfiles

ref: 3e5f5bb153a6b51b116c17d23e674cfaee4c82b1 dotfiles/scripts/update-volume -rwxr-xr-x 338 bytes
3e5f5bb1Alexey Yerin river: fix issues with new version 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# Update ALSA volume
# Usage: update-volume up
#        update-volume down

case "$1" in
	up) amixer set Master 5%+ ;;
	down) amixer set Master 5%- ;;
	*)
		printf "Unknown argument: %s\n" "$1"
		exit 1
	;;
esac

newvol"$(amixer sget Master | grep "Mono:" | awk -F"[][]" '{ print $2 }')"
printf "%s\n" "$newvol" >> /tmp/wob-in