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")
|
|
|
|
|
2024-02-18 20:26:15 -08:00
|
|
|
-- Clock
|
2024-02-18 14:31:14 -08:00
|
|
|
|
|
|
|
local date = wibox.widget.textbox()
|
2024-02-19 19:41:33 -08:00
|
|
|
date.font = beautiful.font_name .. "11"
|
|
|
|
gears.timer({
|
2024-02-18 14:31:14 -08:00
|
|
|
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,
|
|
|
|
})
|
2024-02-18 14:31:14 -08:00
|
|
|
|
|
|
|
return date
|