1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 12:31:23 +00:00

powearrow: binclock code syntax improved

This commit is contained in:
Luke Bonham 2017-08-16 12:46:23 +02:00
parent e99aed80d5
commit e98d2eeb29
2 changed files with 19 additions and 18 deletions

View file

@ -82,13 +82,13 @@ local function factory(args)
layout = wibox.widget.base.make_widget
}
binclock.timer = gears.timer { timeout = binclock.show_seconds and 1 or 60 }
binclock.timer:connect_signal("timeout", function()
binclock.timer = gears.timer {
autostart = true,
timeout = binclock.show_seconds and 1 or 60,
callback = function()
binclock.widget:emit_signal("widget::redraw_needed")
end)
binclock.timer:start()
end
}
return binclock
end

View file

@ -10,6 +10,7 @@ local gears = require("gears")
local lain = require("lain")
local awful = require("awful")
local wibox = require("wibox")
local math, string, tag, tonumber, type, os = math, string, tag, tonumber, type, os
local theme = {}