#/!bin/bash # # unmute all mixers and set volumes to $1 # # Urs Beyerle # AMIXER=$( which amixer ) if [ "$AMIXER" = "" ]; then echo "Sorry command amixer not found." exit 1 fi VOLUME=$1 [ "$VOLUME" = "" ] && VOLUME=60 VOLUME="${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/null done echo "done."