battery-full
This commit is contained in:
parent
c91c792a7d
commit
de4bc9e70f
@ -131,6 +131,7 @@ class BatteryChecker(IntervalModule):
|
||||
("charging_color", "The charging color"),
|
||||
("critical_color", "The critical color"),
|
||||
("not_present_color", "The not present color."),
|
||||
("no_text_full","Don't display text when battery is full - 100%"),
|
||||
)
|
||||
battery_ident = "BAT0"
|
||||
format = "{status} {remaining}"
|
||||
@ -150,6 +151,7 @@ class BatteryChecker(IntervalModule):
|
||||
charging_color = "#00ff00"
|
||||
critical_color = "#ff0000"
|
||||
not_present_color = "#ffffff"
|
||||
no_text_full = False
|
||||
|
||||
path = None
|
||||
|
||||
@ -170,7 +172,7 @@ class BatteryChecker(IntervalModule):
|
||||
"color": self.not_present_color,
|
||||
}
|
||||
return
|
||||
|
||||
if self.no_text_full:
|
||||
if battery.percentage() > 99.9:
|
||||
self.output = {
|
||||
"full_text": ""
|
||||
|
Loading…
Reference in New Issue
Block a user