summaryrefslogtreecommitdiff
path: root/battery-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2022-02-22 13:32:04 -0500
committerGitHub <noreply@github.com>2022-02-22 13:32:04 -0500
commitb8e3a861f4829b2c3820e9a40294a3d9125fbf23 (patch)
tree4835d20063a89c76893c83ca99bc083786d3d0b6 /battery-widget
parent90958abb48cb3353ae109123d9950b77ecf106d8 (diff)
parente3505480007d89e05902798ba5c6e5f0cdf897ef (diff)
Merge pull request #340 from Dzban-Diego/patch-1
No brattery - no popup
Diffstat (limited to 'battery-widget')
-rw-r--r--battery-widget/battery.lua2
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