dotfiles/.config/awesome/ui/top-panel/widgets/date.lua

20 lines
378 B
Lua
Raw Normal View History

2024-02-19 19:41:33 -08:00
local gears = require("gears")
local wibox = require("wibox")
2024-02-20 19:13:52 -08:00
local beautiful = require("beautiful").get()
2024-02-19 19:41:33 -08:00
require("awful.hotkeys_popup.keys")
-- Clock
local date = wibox.widget.textbox()
2024-02-19 19:41:33 -08:00
date.font = beautiful.font_name .. "11"
gears.timer({
timeout = 60,
autostart = true,
call_now = true,
callback = function()
date.markup = os.date(" %a %b %d")
2024-02-19 19:41:33 -08:00
end,
})
return date