]> git.phdru.name Git - audio-cdr-video.git/blob - audio/amixer-volume
Initail import
[audio-cdr-video.git] / audio / amixer-volume
1 #! /bin/sh
2
3 if [ "$1" = increase ]; then
4    vol="2%+"
5 elif [ "$1" = decrease ]; then
6    vol="2%-"
7 elif [ "$1" = INCREASE ]; then
8    vol="10%+"
9 elif [ "$1" = DECREASE ]; then
10    vol="10%-"
11 else
12    echo "Usage: $0 [increase|decrease|INCREASE|DECREASE]" >&2
13    exit 1
14 fi
15
16 exec amixer -c`cat $HOME/misc/alsa-card` set PCM,0 "$vol"