X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ddbf283f0ebbc6772d485fe76c5dccf338d3b837..f914e6411e53186843ad628e321d6ada2f128466:/widgets/alsa.lua diff --git a/widgets/alsa.lua b/widgets/alsa.lua index 8139d42..f73194b 100644 --- a/widgets/alsa.lua +++ b/widgets/alsa.lua @@ -16,9 +16,9 @@ local setmetatable = setmetatable -- ALSA volume -- lain.widgets.alsa -local alsa = helpers.make_widget_textbox() local function worker(args) + local alsa = { widget = wibox.widget.textbox() } local args = args or {} local timeout = args.timeout or 5 local settings = args.settings or function() end @@ -53,4 +53,4 @@ local function worker(args) return alsa end -return setmetatable(alsa, { __call = function(_, ...) return worker(...) end }) +return setmetatable({}, { __call = function(_, ...) return worker(...) end })