diff options
author | Klimczewski <62210828+Dzban-Diego@users.noreply.github.com> | 2022-02-22 18:33:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 18:33:36 +0100 |
commit | e3505480007d89e05902798ba5c6e5f0cdf897ef (patch) | |
tree | 4835d20063a89c76893c83ca99bc083786d3d0b6 | |
parent | 90958abb48cb3353ae109123d9950b77ecf106d8 (diff) |
No brattery - no pop up
This small change disables popup notifications when the battery is disconnected.
-rw-r--r-- | battery-widget/battery.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |