mirror of
https://github.com/streetturtle/awesome-wm-widgets.git
synced 2024-11-17 07:49:09 +01:00
forgot to include update for low battery frequency
This commit is contained in:
parent
bfe818b11e
commit
3d38cdb866
2 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue