From d3c310e8859fa4ee7c2ff0a02912179c29262482 Mon Sep 17 00:00:00 2001 From: enkore Date: Tue, 9 Apr 2013 16:29:37 +0200 Subject: [PATCH] Fixed a bug where the battery alert would be displayed while charging --- i3pystatus/battery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/battery.py b/i3pystatus/battery.py index 7440a3f..c70e97c 100644 --- a/i3pystatus/battery.py +++ b/i3pystatus/battery.py @@ -155,7 +155,7 @@ class BatteryChecker(IntervalModule): else: fdict["status"] = "FULL" - if self.alert and fdict["percentage"] <= self.alert_percentage: + if self.alert and fdict["status"] == "DIS" and fdict["percentage"] <= self.alert_percentage: display_notification( title=self.alert_format_title.format(**fdict), body=self.alert_format_body.format(**fdict),