X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/0d5c25ffd4ed4d5c1a06b1f0b731b1cb6db79b8b..c0d58a78fbddbce7e1722b6722534ec76b3b06fb:/widgets/abase.lua?ds=sidebyside diff --git a/widgets/abase.lua b/widgets/abase.lua index 20cc955..98f7818 100644 --- a/widgets/abase.lua +++ b/widgets/abase.lua @@ -10,10 +10,9 @@ local newtimer = require("lain.helpers").newtimer local async = require("lain.asyncshell") local wibox = require("wibox") -local io = io local setmetatable = setmetatable --- Basic template for custom widgets +-- Basic template for custom widgets -- Asynchronous version -- lain.widgets.abase @@ -28,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)