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