From f239dd824f6d4fb53679b563f22972f8235ffcd6 Mon Sep 17 00:00:00 2001 From: djib Date: Thu, 7 Nov 2024 14:30:20 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20double=20percentage=20sign=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status.sh b/status.sh index 4d3aeb7..971180b 100755 --- a/status.sh +++ b/status.sh @@ -19,7 +19,7 @@ battery_info=$(upower --show-info $(upower --enumerate |\ grep 'BAT') |\ egrep "state|percentage" |\ awk -v ORS=" " '{print $2}' |\ -awk '{printf "%s%% (%s)", $2, $1}') +awk '{printf "%s (%s)", $2, $1}') # "amixer -M" gets the mapped volume for evaluating the percentage which # is more natural to the human ear according to "man amixer".