From 9feb1b7281b2e8ad0979b9f35c0e4bb672569add Mon Sep 17 00:00:00 2001 From: enkore Date: Mon, 7 Oct 2013 11:52:30 +0200 Subject: [PATCH] Partial merge of #19 --- i3pystatus/battery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i3pystatus/battery.py b/i3pystatus/battery.py index 42d2941..04fff39 100644 --- a/i3pystatus/battery.py +++ b/i3pystatus/battery.py @@ -128,7 +128,7 @@ class BatteryChecker(IntervalModule): alert = False alert_percentage = 10 alert_format_title = "Low battery" - alert_format_body = "Battery {battery_ident} has only {percentage:.2f}% ({remaining_hm}) remaining!" + alert_format_body = "Battery {battery_ident} has only {percentage:.2f}% ({remaining:%E%hh:%Mm}) remaining!" path = None @@ -171,6 +171,7 @@ class BatteryChecker(IntervalModule): body=formatp(self.alert_format_body, **fdict), icon="battery-caution", urgency=2, + timeout=60, ) fdict["status"] = self.status[fdict["status"]]