From 3d38cdb866bc6360b1d00d6b8ebdc695fa41bb0d Mon Sep 17 00:00:00 2001 From: Sam Delmerico Date: Sat, 16 Jun 2018 00:39:14 -0400 Subject: forgot to include update for low battery frequency --- battery-widget/battery.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'battery-widget') diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index b8e70bb..4cbc314 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -95,6 +95,8 @@ watch("acpi", 10, batteryType = "battery-empty%s-symbolic" 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 batteryType = "battery-caution%s-symbolic" -- cgit v1.2.3