diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2016-12-23 19:07:37 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2016-12-23 19:07:37 -0600 |
commit | 4a966baf7dd16675e11b3615a846ab664f8da39b (patch) | |
tree | 6b45516bcef006a0a474d7de864c728daa692433 /desktop/bin | |
parent | 18680d3e75010502072a06039fc3b16a355aa36f (diff) |
desktop: tabify and remove empty lines from aumute
Diffstat (limited to 'desktop/bin')
-rwxr-xr-x | desktop/bin/aumute | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/desktop/bin/aumute b/desktop/bin/aumute index 0bef6a3..0a23aed 100755 --- a/desktop/bin/aumute +++ b/desktop/bin/aumute @@ -34,41 +34,29 @@ MUTERC="$HOME/.aumixrc.mute" function __mute() { - - if [ -e "$MUTERC" ]; then - aumix -v 0; aumix -w 0 - else - aumix -f "$MUTERC" -S - aumix -v 0; aumix -w 0 - fi - + if [ -e "$MUTERC" ]; then + aumix -v 0; aumix -w 0 + else + aumix -f "$MUTERC" -S + aumix -v 0; aumix -w 0 + fi } function __unmute () { - - if [ -e "$MUTERC" ]; then - aumix -f "$MUTERC" -L > /dev/null - rm -f "$MUTERC" - else - aumix -L > /dev/null - fi - + if [ -e "$MUTERC" ]; then + aumix -f "$MUTERC" -L > /dev/null + rm -f "$MUTERC" + else + aumix -L > /dev/null + fi } if [ "$1" = "--force-mute" ]; then - - __mute; - + __mute; elif [ "$1" = "--force-unmute" ]; then - - __unmute; - + __unmute; elif [ -e "$MUTERC" ]; then - - __unmute; - + __unmute; else - - __mute; - + __mute; fi |