From d9f6c071b5770809c4ccac1520666a61e2b486c5 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 14 Jun 2024 22:09:18 +0545 Subject: [PATCH] fix --- config/hypr/scripts/Util.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/hypr/scripts/Util.sh b/config/hypr/scripts/Util.sh index 773da8c2..7a12908f 100755 --- a/config/hypr/scripts/Util.sh +++ b/config/hypr/scripts/Util.sh @@ -28,8 +28,8 @@ brightness() { case "$1" in --get) get_backlight ;; - --inc) change_backlight "+10%" ;; - --dec) change_backlight "10%-" ;; + --inc) change_backlight "+5%" ;; + --dec) change_backlight "5%-" ;; *) get_backlight ;; esac } @@ -76,10 +76,10 @@ volume() { } toggle_mic() { - if pamixer --default-source --get-mute; then - pamixer --default-source -u && notify-send -e -u low -i "$iDIR/microphone.png" "Microphone Switched ON" - else + if [ "$(pamixer --default-source --get-mute)" == "false" ]; then pamixer --default-source -m && notify-send -e -u low -i "$iDIR/microphone-mute.png" "Microphone Switched OFF" + elif [ "$(pamixer --default-source --get-mute)" == "true" ]; then + pamixer -u --default-source u && notify-send -e -u low -i "$iDIR/microphone.png" "Microphone Switched ON" fi }