From 6ae72eca77dac6c96fc8fdd7441ad420f437a914 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Mon, 25 May 2020 13:08:43 +0200 Subject: [PATCH] Fix icons in alsa dwmbar module --- .local/bin/scripts/dwmbar/alsa | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.local/bin/scripts/dwmbar/alsa b/.local/bin/scripts/dwmbar/alsa index c4680ea..5e792f4 100755 --- a/.local/bin/scripts/dwmbar/alsa +++ b/.local/bin/scripts/dwmbar/alsa @@ -1,9 +1,9 @@ #!/bin/sh [ "$(amixer sget Master | awk 'NR==5 { print $6 }')" = "[off]" ] && { - echo " mut" && exit 1 + echo " mut" && exit 1 } - + level=$(amixer sget Master | awk -F"[][]" '/dB/ { print $2 }') revel="${level%?}" @@ -12,11 +12,11 @@ v1="" v2="" v3="" -if [ "$revel" -lt 20 ]; then +if [ "$revel" -lt 35 ]; then echo "$v1" -elif [ "$revel" -lt 50 ]; then +elif [ "$revel" -lt 60 ]; then echo "$v2" -elif [ "$revel" -lt 75 ]; then +elif [ "$revel" -lt 100 ]; then echo "$v3" fi