Added the bar_design option in the format of the battery module

This commit is contained in:
Lorian Coltof 2015-12-22 11:38:03 +01:00 committed by enkore
parent 731749f0e3
commit ef58c5a6fa

View File

@ -131,7 +131,8 @@ class BatteryChecker(IntervalModule):
* `{status}` * `{status}`
* `{no_of_batteries}` The number of batteries included * `{no_of_batteries}` The number of batteries included
* `{battery_ident}` the same as the setting * `{battery_ident}` the same as the setting
* `{bar}` bar displaying the percentage graphically * `{bar}` bar displaying the relative percentage graphically
* `{bar_design}` bar displaying the absolute percentage graphically
""" """
settings = ( settings = (
@ -277,6 +278,7 @@ class BatteryChecker(IntervalModule):
"consumption": self.consumption(batteries), "consumption": self.consumption(batteries),
"remaining": TimeWrapper(0, "%E%h:%M"), "remaining": TimeWrapper(0, "%E%h:%M"),
"bar": make_bar(self.percentage(batteries)), "bar": make_bar(self.percentage(batteries)),
"bar_design": make_bar(self.percentage(batteries, design=True)),
} }
status = self.battery_status(batteries) status = self.battery_status(batteries)