From 3e14d5d8d88b9b3f806cc14f55258b067e4aeed3 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Tue, 17 Jan 2023 21:42:30 -0600 Subject: volume script --- bar/volume | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bar/volume b/bar/volume index 3e86809..4a4b4a8 100755 --- a/bar/volume +++ b/bar/volume @@ -6,7 +6,7 @@ FS="[][]" while (cmd | getline) { if (NF > 1) { vol=int($2) - if ($6 == "off") + if ($4 == "off") icon="񂁳" else if (vol > 70) icon="񂁲" @@ -17,7 +17,7 @@ while (cmd | getline) { else icon="񂁯" #printf "%s %s | %05.2fdB", icon, $2, $4 - print icon" "$2" | "$4 + print icon" "$2 } } } -- cgit v1.2.3