diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-06-06 10:44:44 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-06-06 10:44:44 -0500 |
commit | 89c94c83531e2a0f0751079e975e28142f3c87dc (patch) | |
tree | b11eb59058b66caf49b4d75569249c47a8ad1396 /i3blocks | |
parent | 0888a59c3dffb48d9744af0331d6788124799345 (diff) |
fix(i3blocks): fix bug in volume blocklet
Diffstat (limited to 'i3blocks')
-rwxr-xr-x | i3blocks/.local/lib/i3blocks/i3blocks-volume | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i3blocks/.local/lib/i3blocks/i3blocks-volume b/i3blocks/.local/lib/i3blocks/i3blocks-volume index 4733add..40854e7 100755 --- a/i3blocks/.local/lib/i3blocks/i3blocks-volume +++ b/i3blocks/.local/lib/i3blocks/i3blocks-volume @@ -43,7 +43,7 @@ def get_volume(): def print_status(): match get_volume(): case None: - print(flush=True) + output = {} case v if is_muted(): output = { "full_text": f" {ICONS["mute"]} {v}% ", @@ -54,7 +54,7 @@ def print_status(): output = {"full_text": f" {ICONS["high"]} {v}% "} case v if v > 33: output = {"full_text": f" {ICONS["medium"]} {v}% "} - case _: + case v: output = {"full_text": f" {ICONS["low"]} {v}% "} print(json.dumps(output, ensure_ascii=False), flush=True) |