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

32
widgets/text_clock.lua Normal file
View File

@@ -0,0 +1,32 @@
local awful = require("awful")
local beautiful = require("beautiful")
local wibox = require("wibox")
local lain = require("lain")
local markup = lain.util.markup
local _M = {}
function _M.get(icon)
if not icon then
icon = wibox.widget.imagebox(beautiful.clock_icon)
end
local clock = awful.widget.textclock(
markup(beautiful.clock_date_color, "%A %B %d ")
.. markup(beautiful.clock_text_color, ">")
.. markup(beautiful.clock_text_color, " %I:%M %p ")
)
return wibox.widget({
icon,
clock,
layout = wibox.layout.fixed.horizontal,
})
end
return setmetatable({}, {
__call = function(_, ...)
return _M.get(...)
end,
})