diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index b7b0c08..eda4ae2 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -9,16 +9,19 @@ # @description : volume block for dwmblocks ###################################################################### -[ "1" = $(pulsemixer --get-mute) ] && echo " 婢 --- " && exit vol="$(pulsemixer --get-volume | awk -F " " '{ printf "%d", $1 }')" -if [ "$vol" -gt "70" ]; then - icon="墳" -elif [ "$vol" -lt "30" ]; then - icon="奄" +if [ "1" = $(pulsemixer --get-mute) ]; then + icon="婢" else - icon="奔" + if [ "$vol" -gt "70" ]; then + icon="墳" + elif [ "$vol" -lt "30" ]; then + icon="奄" + else + icon="奔" + fi fi printf " %s %3d%% " $icon $vol