2024-02-19 19:41:33 -08:00
|
|
|
local gears = require("gears")
|
|
|
|
local wibox = require("wibox")
|
|
|
|
local beautiful = require("beautiful")
|
|
|
|
require("awful.hotkeys_popup.keys")
|
|
|
|
|
2024-02-18 20:26:15 -08:00
|
|
|
-- Clock
|
2024-02-18 14:31:14 -08:00
|
|
|
|
|
|
|
local clock = wibox.widget.textbox()
|
2024-02-19 19:41:33 -08:00
|
|
|
clock.font = beautiful.font_name .. "11"
|
|
|
|
gears.timer({
|
2024-02-18 14:31:14 -08:00
|
|
|
timeout = 60,
|
|
|
|
autostart = true,
|
|
|
|
call_now = true,
|
|
|
|
callback = function()
|
2024-02-19 19:41:33 -08:00
|
|
|
clock.markup = os.date(" %I:%M %p")
|
|
|
|
end,
|
|
|
|
})
|
2024-02-18 14:31:14 -08:00
|
|
|
|
|
|
|
return clock
|