X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/dc614905b0e55d80fcf78f28f3454833d513837a..49a4df385e953156e6d1e2ee0bcfd07d8501d0f4:/widgets/base.lua diff --git a/widgets/base.lua b/widgets/base.lua index 87b0c85..9d7b710 100644 --- a/widgets/base.lua +++ b/widgets/base.lua @@ -22,8 +22,6 @@ local function worker(args) local cmd = args.cmd or "" local settings = args.settings or function() end - base.widget = wibox.widget.textbox() - function base.update() output = helpers.read_pipe(cmd) if output ~= base.prev then @@ -35,7 +33,7 @@ local function worker(args) base.timer = helpers.newtimer(cmd, timeout, base.update, nostart, stoppable) - return setmetatable(base, { __index = base.widget }) + return base end return setmetatable({}, { __call = function(_, ...) return worker(...) end })