aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/services/time.lua
blob: ec33b311e2f8af99d663eb382423d835bbf0944a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local gobject = require "gears.object"

local current = os.date "*t"

local M = gobject {
    class = {
        update_current_date = function(self)
            current = os.date "*t"
            self:emit_signal("current", current)
        end,
        get_current_date = function()
            return current
        end
    },
    enable_properties = true,
}

return M