From 953a64459a4a77e94d6e07570140f67ddede859c Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 9 Oct 2024 14:36:48 -0400 Subject: [PATCH] Changed charging indicator to display charging even when battery is full. --- monitors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitors.py b/monitors.py index cb6658b..0f9f193 100644 --- a/monitors.py +++ b/monitors.py @@ -121,7 +121,7 @@ class BatteryMonitor: battery_plugged = battery.power_plugged else: bat_status = open('/sys/class/power_supply/BAT1/status', 'r').read().strip() - battery_plugged = (bat_status == 'Charging') + battery_plugged = (bat_status != 'Discharging') return battery_percentage, battery_plugged