summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2023-01-17 21:42:30 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2023-01-17 21:42:30 -0600
commit3e14d5d8d88b9b3f806cc14f55258b067e4aeed3 (patch)
treef2870d3fcb3014e130fdf70787798cff2412007c
parent4b773f86a6923119687e31fda109ca63ab2f707b (diff)
downloadscripts-3e14d5d8d88b9b3f806cc14f55258b067e4aeed3.tar.xz
scripts-3e14d5d8d88b9b3f806cc14f55258b067e4aeed3.zip
volume script
-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
}
}
}