mirror of
https://github.com/streetturtle/awesome-wm-widgets.git
synced 2024-11-15 19:48:04 +01:00
Merge pull request #340 from Dzban-Diego/patch-1
No brattery - no popup
This commit is contained in:
commit
b8e3a861f4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue