diff options
Diffstat (limited to 'batteryarc-widget')
-rw-r--r-- | batteryarc-widget/batteryarc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua index 811eafe..48233f3 100644 --- a/batteryarc-widget/batteryarc.lua +++ b/batteryarc-widget/batteryarc.lua @@ -75,6 +75,8 @@ watch("acpi", 10, batteryarc.colors = { beautiful.widget_red } if status ~= 'Charging' and os.difftime(os.time(), last_battery_check) > 300 then -- if 5 minutes have elapsed since the last warning + last_battery_check = time() + show_battery_warning() end elseif charge > 15 and charge < 40 then |