You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
257 B

#!/usr/bin/env sh
incvol() {
amixer set Headphone 1+
echo 1 > /tmp/sxmo_bar
}
decvol() {
amixer set Headphone 1-
echo 1 > /tmp/sxmo_bar
}
echo $1 | grep up && echo 1 > /tmp/sxmo_bar && incvol
echo $1 | grep down && echo 1 > /tmp/sxmo_bar && decvol