diff options
-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 |