1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh SETME=${1:-100%} amixer controls|( IFS=, while read a b c _; do case "${c#name=}" in *Capture*|*Boost*) amixer cset "$a,$b,$c" "$SETME";; esac done )