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

18 lines
330 B
Lua
Raw Normal View History

local wibox = require("wibox")
local beautiful = require("beautiful")
local gears = require("gears")
local clock = wibox.widget.textbox()
clock.font = beautiful.font_name .. "11"
gears.timer({
timeout = 60,
autostart = true,
call_now = true,
callback = function()
clock.markup = os.date("%I:%M %p")
end,
})
return clock