mirror of
https://github.com/streetturtle/awesome-wm-widgets.git
synced 2024-11-17 07:49:09 +01:00
Update battery.lua
This commit is contained in:
parent
fa9e92be98
commit
68c48c0a73
1 changed files with 4 additions and 3 deletions
|
@ -20,8 +20,9 @@ function showWarningWidgetPopup()
|
|||
title = "Battery dying",
|
||||
timeout = 5, hover_timeout = 0.5,
|
||||
position = "bottom_right",
|
||||
bg = "#ff1122",
|
||||
width = 160,
|
||||
bg = "#F06060",
|
||||
fg = "#EEE9EF",
|
||||
width = 200,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
@ -52,4 +53,4 @@ batteryWidgetTimer:start()
|
|||
-- timer to refresh battery warning
|
||||
batteryWarningTimer = timer({ timeout = 50 })
|
||||
batteryWarningTimer:connect_signal("timeout", function() showWarningWidgetPopup() end)
|
||||
batteryWarningTimer:start()
|
||||
batteryWarningTimer:start()
|
||||
|
|
Loading…
Reference in a new issue