X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b371de56f8bf19f982a4f6887f2110444b590f74..42505f946ee6bac3f593c84e29a1bea923d07d02:/widgets/abase.lua diff --git a/widgets/abase.lua b/widgets/abase.lua index 075d615..98f7818 100644 --- a/widgets/abase.lua +++ b/widgets/abase.lua @@ -12,7 +12,7 @@ local wibox = require("wibox") local setmetatable = setmetatable --- Basic template for custom widgets +-- Basic template for custom widgets -- Asynchronous version -- lain.widgets.abase @@ -27,8 +27,7 @@ local function worker(args) function abase.update() async.request(cmd, function(f) - output = f:read("*a") - f:close() + output = f widget = abase.widget settings() end)