From 4a966baf7dd16675e11b3615a846ab664f8da39b Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Fri, 23 Dec 2016 19:07:37 -0600 Subject: desktop: tabify and remove empty lines from aumute --- desktop/bin/aumute | 44 ++++++++++++++++---------------------------- 1 file changed, 16 insertions(+), 28 deletions(-) (limited to 'desktop/bin') 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 -- cgit v1.2.3