From e3505480007d89e05902798ba5c6e5f0cdf897ef Mon Sep 17 00:00:00 2001 From: Klimczewski <62210828+Dzban-Diego@users.noreply.github.com> Date: Tue, 22 Feb 2022 18:33:36 +0100 Subject: No brattery - no pop up This small change disables popup notifications when the battery is disconnected. --- battery-widget/battery.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index fc8c56f..f7f76b5 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -157,7 +157,7 @@ local function worker(user_args) level_widget.text = string.format('%d%%', charge) end - if (charge >= 0 and charge < 15) then + if (charge >= 1 and charge < 15) then batteryType = "battery-empty%s-symbolic" if enable_battery_warning and status ~= 'Charging' and os.difftime(os.time(), last_battery_check) > 300 then -- if 5 minutes have elapsed since the last warning -- cgit v1.2.3