From d059b49c8b7aaea1a30c9e6464035d4eb436fd25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Greguri=C4=87=20Ortolan?= Date: Mon, 7 Dec 2020 11:35:00 +0100 Subject: [PATCH] Simplify the volume query it is possible to use `--get-volume` to avoid having to strip the percent sign --- bar-functions/dwm_pulse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar-functions/dwm_pulse.sh b/bar-functions/dwm_pulse.sh index e4e9149..96395a2 100755 --- a/bar-functions/dwm_pulse.sh +++ b/bar-functions/dwm_pulse.sh @@ -7,7 +7,7 @@ # Dependencies: pamixer dwm_pulse () { - VOL=$(pamixer --get-volume-human | tr -d '%') + VOL=$(pamixer --get-volume) printf "%s" "$SEP1" if [ "$IDENTIFIER" = "unicode" ]; then