Commit 3ad8b1a

Eric Bower  ·  2026-10-08 13:14:16 -0400 EDT
parent 9feb4e2
chore: highlight bat if less than 20%
2 files changed,  +5, -2
+4, -1
......@@ -38,7 +38,10 @@ def get_battery():
3838 if f.read().strip() == "Charging":
3939 status = "CHR"
4040
41- return f"[[bat]]{status} {cap}%"
41+ out = f"[[bat]]{status} {cap}%"
42+ if int(cap) < 20:
43+ return f"{out} ^"
44+ return out
4245 except Exception:
4346 pass
4447
+1, -1
......@@ -1,5 +1,5 @@
11 {
2- "lastChangelogVersion": "1.0.3",
2+ "lastChangelogVersion": "1.0.4",
33 "packages": [
44 "npm:@deevus/pi-zmx",
55 "file:~/.pi/agent/extensions/qwen-remote.ts"