#! /bin/sh if [ "$1" = increase ]; then vol="2%+" elif [ "$1" = decrease ]; then vol="2%-" elif [ "$1" = INCREASE ]; then vol="10%+" elif [ "$1" = DECREASE ]; then vol="10%-" else echo "Usage: $0 [increase|decrease|INCREASE|DECREASE]" >&2 exit 1 fi exec amixer -c"`cat \"$HOME\"/.config/alsa-card`" set PCM,0 "$vol"