From 77d4ed943b9e03e8ccbf56c4d89373b4ca5578ee Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Wed, 9 Nov 2022 20:24:40 +0100 Subject: [PATCH] added % to volume --- dwmblocks_scripts/dwm_volume | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwmblocks_scripts/dwm_volume b/dwmblocks_scripts/dwm_volume index bc5469c..b2176c9 100755 --- a/dwmblocks_scripts/dwm_volume +++ b/dwmblocks_scripts/dwm_volume @@ -6,10 +6,10 @@ vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')" if [ $# -gt 0 ]; then stat="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)].*/\1/')" if [[ $(echo $stat) == "on" ]]; then - echo " 🔊 $vol" + echo " 🔊 $vol%" exit fi - echo " 🔇 $vol" + echo " 🔇 $vol%" exit fi