Skip to content

Instantly share code, notes, and snippets.

@G10DRAS
Created August 10, 2016 16:27
Show Gist options
  • Save G10DRAS/83ab3d025c66d2c535ba9712e4a8d191 to your computer and use it in GitHub Desktop.
Save G10DRAS/83ab3d025c66d2c535ba9712e4a8d191 to your computer and use it in GitHub Desktop.
Script to increse Volume
#!/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