feat: cleanup bar
This commit is contained in:
parent
30708ecc1f
commit
f72ba5ca9d
3 changed files with 17 additions and 48 deletions
|
@ -64,7 +64,7 @@ else:
|
|||
'high': '#d4e157'
|
||||
}
|
||||
|
||||
display = "<span color=\"{}\">{} {}%</span>"
|
||||
display = "<span color=\"{}\">{}{}%</span>"
|
||||
battery = ""
|
||||
color = color(percentleft)
|
||||
|
||||
|
@ -73,7 +73,7 @@ else:
|
|||
elif state == "Full":
|
||||
battery = B_FULL + " "
|
||||
elif state == "Charging":
|
||||
battery = B_CHARGING + " "
|
||||
battery = B_CHARGING + " "
|
||||
elif state == "Unknown":
|
||||
battery = B_UNKNOWN + " " + B_FULL + " "
|
||||
else:
|
||||
|
@ -82,5 +82,5 @@ else:
|
|||
display = display.format(color, battery, percentleft)
|
||||
|
||||
print(display)
|
||||
if percentleft < 15
|
||||
if percentleft < 15:
|
||||
exit(33)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue