fix: battery
This commit is contained in:
parent
4721486543
commit
30708ecc1f
1 changed files with 3 additions and 1 deletions
|
@ -72,6 +72,8 @@ else:
|
|||
battery = B_DISCHARING + " "
|
||||
elif state == "Full":
|
||||
battery = B_FULL + " "
|
||||
elif state == "Charging":
|
||||
battery = B_CHARGING + " "
|
||||
elif state == "Unknown":
|
||||
battery = B_UNKNOWN + " " + B_FULL + " "
|
||||
else:
|
||||
|
@ -80,5 +82,5 @@ else:
|
|||
display = display.format(color, battery, percentleft)
|
||||
|
||||
print(display)
|
||||
if percentleft < 10:
|
||||
if percentleft < 15
|
||||
exit(33)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue