summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbar/volume4
1 files 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
}
}
}