From 438dc327acc4e5b19ec1f5afef05be82489a110a Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Wed, 3 Feb 2021 09:19:11 -0500 Subject: [PATCH 1/1] Status: switch to using `cut` to parse volume --- status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status b/status index 46d9b63..9ebab1c 100755 --- a/status +++ b/status @@ -10,7 +10,7 @@ power_set() { } volume_set() { - echo "$(amixer sget Master | tail -n 1 | tail -c +21)" + echo "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)" } notify-send "$(time_set)" "$(power_set)\n$(volume_set)" -- 2.39.2