From 1a63b2438d1d552080b36c211de1996359d2c289 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Fri, 23 Dec 2016 19:44:52 -0600 Subject: desktop: simplify mute script logic slightly --- desktop/bin/aumute | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/desktop/bin/aumute b/desktop/bin/aumute index 0a23aed..2829235 100755 --- a/desktop/bin/aumute +++ b/desktop/bin/aumute @@ -34,12 +34,10 @@ MUTERC="$HOME/.aumixrc.mute" function __mute() { - if [ -e "$MUTERC" ]; then - aumix -v 0; aumix -w 0 - else + if [ ! -e "$MUTERC" ]; then aumix -f "$MUTERC" -S - aumix -v 0; aumix -w 0 fi + aumix -v 0; aumix -w 0 } function __unmute () { -- cgit v1.2.3