X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e0d4a89435d68714c0cee849625e0b14edca3d1c..bf3a9ba5efb874ad6370a3083afd409361e2912a:/widgets/base.lua?ds=inline 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 })