From: Armaan Bhojwani Date: Wed, 3 Feb 2021 14:19:11 +0000 (-0500) Subject: Status: switch to using `cut` to parse volume X-Git-Tag: v0.0.1~48 X-Git-Url: https://git.armaanb.net/?a=commitdiff_plain;h=438dc327acc4e5b19ec1f5afef05be82489a110a;hp=a54989a8b084b12bcdd22e319f30efe2ffd22f6a;p=bin.git Status: switch to using `cut` to parse volume --- 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)"