summaryrefslogtreecommitdiff
path: root/dot/local/bin/amixer-capture.sh
blob: 0578c725ec5a983a447ebbd23d5355987afd2cef (plain)
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
)