From ef58c5a6fa530c9343ca64748a2f35f5f39c7213 Mon Sep 17 00:00:00 2001 From: Lorian Coltof Date: Tue, 22 Dec 2015 11:38:03 +0100 Subject: [PATCH] Added the bar_design option in the format of the battery module --- i3pystatus/battery.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/i3pystatus/battery.py b/i3pystatus/battery.py index f181a41..e7ad98d 100644 --- a/i3pystatus/battery.py +++ b/i3pystatus/battery.py @@ -131,7 +131,8 @@ class BatteryChecker(IntervalModule): * `{status}` * `{no_of_batteries}` — The number of batteries included * `{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 = ( @@ -277,6 +278,7 @@ class BatteryChecker(IntervalModule): "consumption": self.consumption(batteries), "remaining": TimeWrapper(0, "%E%h:%M"), "bar": make_bar(self.percentage(batteries)), + "bar_design": make_bar(self.percentage(batteries, design=True)), } status = self.battery_status(batteries)