X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..1c04624c0a41d4be60ff5367bf2fffc5d3e975ed:/widget/contrib/gpmdp.lua?ds=sidebyside diff --git a/widget/contrib/gpmdp.lua b/widget/contrib/gpmdp.lua index 94076c8..ed3aef2 100644 --- a/widget/contrib/gpmdp.lua +++ b/widget/contrib/gpmdp.lua @@ -21,7 +21,7 @@ local setmetatable = setmetatable -- lain.widget.contrib.gpmdp local gpmdp = {} -local function worker(args) +local function factory(args) local args = args or {} local timeout = args.timeout or 2 local notify = args.notify or "off" @@ -89,4 +89,4 @@ local function worker(args) return gpmdp end -return setmetatable(gpmdp, { __call = function(_, ...) return worker(...) end }) +return setmetatable(gpmdp, { __call = function(_, ...) return factory(...) end })