Move battery thresholds to static defs.

This reduces per-prompt overhead a bit, as these
never change, so it was just useless string bashing
and parsing.
This commit is contained in:
2026-06-24 02:53:39 -04:00
parent 10992c1424
commit 16ba1a5897
2 changed files with 8 additions and 6 deletions
-6
View File
@@ -73,12 +73,6 @@ endif
@ prompt_hcolor = $prompt_hcolor % ${#reference_colors}
@ prompt_hsym = $prompt_hsym % ${#referencechars}
set critical_battery_level = 10
set low_battery_level = 20
set weak_battery_level = 33
set medium_battery_level = 50
set strong_battery_level = 75
while( ${prompt_hcolor} == 0 )
_debug colorshuffle