X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..0f2cbcb56767d9944d80653ff67e6bdb617d3560:/widget/imap.lua?ds=sidebyside diff --git a/widget/imap.lua b/widget/imap.lua index 1049d03..0f7fde5 100644 --- a/widget/imap.lua +++ b/widget/imap.lua @@ -6,19 +6,18 @@ --]] -local helpers = require("lain.helpers") -local naughty = require("naughty") -local wibox = require("wibox") -local string = { format = string.format, - gsub = string.gsub } -local type = type -local tonumber = tonumber -local setmetatable = setmetatable +local helpers = require("lain.helpers") +local naughty = require("naughty") +local wibox = require("wibox") +local string = { format = string.format, + gsub = string.gsub } +local type = type +local tonumber = tonumber -- Mail IMAP check -- lain.widget.imap -local function worker(args) +local function factory(args) local imap = { widget = wibox.widget.textbox() } local args = args or {} local server = args.server @@ -84,4 +83,4 @@ local function worker(args) return imap end -return setmetatable({}, { __call = function(_, ...) return worker(...) end }) +return factory