lazy push before updates

This commit is contained in:
Noella
2025-12-30 13:23:54 -07:00
parent 44ab8019bc
commit 34b678e020
30 changed files with 727 additions and 208 deletions

View File

@@ -0,0 +1,33 @@
local wibox = require("wibox")
local widgets = require("widgets")
local _M = {}
_M.battery_widget = widgets.battery(false)
_M.volume_widget = widgets.volume()
function _M.get()
return {
layout = wibox.layout.fixed.horizontal,
spacing = 7,
spacing_widget = wibox.widget.separator({
orientation = "vertical",
color = "#333",
thickness = 2,
span_ratio = 0.75,
}),
_M.volume_widget,
_M.battery_widget,
widgets.text_clock(),
}
end
function _M.get_battery_widget()
return _M.battery_widget
end
return setmetatable(_M, {
__call = function(_, ...)
return _M.get(...)
end,
})