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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user