From ed451e1d7df0783bb3076a2cdec1c27fecb0a98e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 4 Aug 2023 22:25:34 +0300 Subject: [PATCH] fix audio module --- config/dwm/scripts/bar.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/dwm/scripts/bar.sh b/config/dwm/scripts/bar.sh index c077a322..2849e55a 100755 --- a/config/dwm/scripts/bar.sh +++ b/config/dwm/scripts/bar.sh @@ -30,8 +30,9 @@ battery() { } audio() { - get_vol=$(pamixer --get-volume-human) - if (get_vol == "muted") then + get_vol=$(pamixer --get-volume) + get_mute=$(pamixer --get-mute) + if [ get_mute = 'true' ]; then printf "^c$blue^ 󰝟^" else printf "^c$blue^ 󰕾 $get_vol"