diff options
Diffstat (limited to 'dot/local/bin/amixer-capture.sh')
-rwxr-xr-x | dot/local/bin/amixer-capture.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dot/local/bin/amixer-capture.sh b/dot/local/bin/amixer-capture.sh new file mode 100755 index 0000000..0578c72 --- /dev/null +++ b/dot/local/bin/amixer-capture.sh | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | SETME=${1:-100%} | ||
4 | |||
5 | amixer controls|( | ||
6 | IFS=, | ||
7 | while read a b c _; do | ||
8 | case "${c#name=}" in *Capture*|*Boost*) | ||
9 | amixer cset "$a,$b,$c" "$SETME";; | ||
10 | esac | ||
11 | done | ||
12 | ) | ||