#! /bin/sh if pulseaudio --check; then if [ "$1" = increase ]; then vol=increase elif [ "$1" = decrease ]; then vol=decrease elif [ "$1" = INCREASE ]; then vol=increase "$HOME"/lib/audio/pa-volume "$vol" elif [ "$1" = DECREASE ]; then vol=decrease "$HOME"/lib/audio/pa-volume "$vol" else echo "Usage: $0 [increase|decrease|INCREASE|DECREASE]" >&2 exit 1 fi exec "$HOME"/lib/audio/pa-volume "$vol" else exec "$HOME"/lib/audio/amixer-volume "$@" fi