]> git.phdru.name Git - audio-cdr-video.git/blob - audio/volume
Initail import
[audio-cdr-video.git] / audio / volume
1 #! /bin/sh
2
3 if pulseaudio --check; then
4    if [ "$1" = increase ]; then
5       vol=increase
6    elif [ "$1" = decrease ]; then
7       vol=decrease
8    elif [ "$1" = INCREASE ]; then
9       vol=increase
10       "$HOME"/lib/audio/pa-volume "$vol"
11    elif [ "$1" = DECREASE ]; then
12       vol=decrease
13       "$HOME"/lib/audio/pa-volume "$vol"
14    else
15       echo "Usage: $0 [increase|decrease|INCREASE|DECREASE]" >&2
16       exit 1
17    fi
18    exec "$HOME"/lib/audio/pa-volume "$vol"
19 else
20    exec "$HOME"/lib/audio/amixer-volume "$@"
21 fi