Created
August 10, 2016 16:27
-
-
Save G10DRAS/83ab3d025c66d2c535ba9712e4a8d191 to your computer and use it in GitHub Desktop.
Script to increse Volume
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VOL=`amixer get PCM | grep on] ` | |
VOL=`echo $VOL | cut -f 2 -d '[' | cut -f 1 -d '%' ` | |
VOL=$((VOL+10)) | |
if (("$VOL" > 100)); then | |
VOL=100 | |
elif (("$VOL" < 0)); then | |
VOL=0 | |
fi | |
amixer set PCM $VOL% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment