mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
powearrow: binclock code syntax improved
This commit is contained in:
parent
e99aed80d5
commit
e98d2eeb29
|
@ -7,13 +7,13 @@
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
local date = os.date
|
local date = os.date
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
local math = math
|
local math = math
|
||||||
local select = select
|
local select = select
|
||||||
local string = string
|
local string = string
|
||||||
|
|
||||||
local binclock = {}
|
local binclock = {}
|
||||||
|
|
||||||
|
@ -82,13 +82,13 @@ local function factory(args)
|
||||||
layout = wibox.widget.base.make_widget
|
layout = wibox.widget.base.make_widget
|
||||||
}
|
}
|
||||||
|
|
||||||
binclock.timer = gears.timer { timeout = binclock.show_seconds and 1 or 60 }
|
binclock.timer = gears.timer {
|
||||||
|
autostart = true,
|
||||||
binclock.timer:connect_signal("timeout", function()
|
timeout = binclock.show_seconds and 1 or 60,
|
||||||
binclock.widget:emit_signal("widget::redraw_needed")
|
callback = function()
|
||||||
end)
|
binclock.widget:emit_signal("widget::redraw_needed")
|
||||||
|
end
|
||||||
binclock.timer:start()
|
}
|
||||||
|
|
||||||
return binclock
|
return binclock
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,10 +6,11 @@
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local lain = require("lain")
|
local lain = require("lain")
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local wibox = require("wibox")
|
local wibox = require("wibox")
|
||||||
|
|
||||||
local math, string, tag, tonumber, type, os = math, string, tag, tonumber, type, os
|
local math, string, tag, tonumber, type, os = math, string, tag, tonumber, type, os
|
||||||
|
|
||||||
local theme = {}
|
local theme = {}
|
||||||
|
|
Loading…
Reference in a new issue