diff options
author | Andrew Cady <d@jerkface.net> | 2018-07-27 10:56:34 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2018-07-27 10:56:34 -0400 |
commit | cd530b56afc9732cd8cbbdb6e3a116c892ebdd64 (patch) | |
tree | 3082e8a92846b0d3300ab3264747b854533a4304 /dot | |
parent | 191034467f9ff8b649b6c659243d33d35e69f889 (diff) |
amixer-enable-mic: optional verbosity
Diffstat (limited to 'dot')
-rwxr-xr-x | dot/local/bin/amixer-enable-mic | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dot/local/bin/amixer-enable-mic b/dot/local/bin/amixer-enable-mic index 9362b88..f9a09be 100755 --- a/dot/local/bin/amixer-enable-mic +++ b/dot/local/bin/amixer-enable-mic | |||
@@ -3,6 +3,15 @@ | |||
3 | SETME=${1:-100%} | 3 | SETME=${1:-100%} |
4 | SETME_BOOST=${2:-50%} | 4 | SETME_BOOST=${2:-50%} |
5 | 5 | ||
6 | amixer() | ||
7 | { | ||
8 | set -- amixer "$@" | ||
9 | if [ "$VERBOSE" ]; then | ||
10 | printf "+ %s\n" "$*" >&2 | ||
11 | fi | ||
12 | command "$@" | ||
13 | } | ||
14 | |||
6 | enable_recording() | 15 | enable_recording() |
7 | { | 16 | { |
8 | local DEV="$1" | 17 | local DEV="$1" |