X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..83ad59e0e7df53d257f1d70d0fe623a3e3b5596b:/widget/contrib/moc.lua?ds=sidebyside diff --git a/widget/contrib/moc.lua b/widget/contrib/moc.lua index fda50fc..f841e31 100644 --- a/widget/contrib/moc.lua +++ b/widget/contrib/moc.lua @@ -21,7 +21,7 @@ local setmetatable = setmetatable -- lain.widget.contrib.moc local moc = {} -local function worker(args) +local function factory(args) local args = args or {} local timeout = args.timeout or 2 local music_dir = args.music_dir or os.getenv("HOME") .. "/Music" @@ -98,4 +98,4 @@ local function worker(args) return moc end -return setmetatable(moc, { __call = function(_, ...) return worker(...) end }) +return setmetatable(moc, { __call = function(_, ...) return factory(...) end })