Rev 1 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed
#/!bin/bash## unmute all mixers and set volumes to $1## Urs Beyerle#AMIXER=$( which amixer )if [ "$AMIXER" = "" ]; thenecho "Sorry command amixer not found."exit 1fiVOLUME=$1[ "$VOLUME" = "" ] && VOLUME=60VOLUME="${VOLUME}%"echo -n "Set all mixer controls to $VOLUME ... "# search mixer controls and unmute them$AMIXER scontrols | cut -d"'" -f 2 | while read mixer; do$AMIXER set "$mixer" $VOLUME unmute >/dev/null 2>/dev/nulldoneecho "done."