X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e1450f8828c1be4e290cec0a34538ebe6cb86b50..4173f5bec3008deb306191fe7049e78e77763e5e:/widgets/abase.lua?ds=sidebyside diff --git a/widgets/abase.lua b/widgets/abase.lua index 8ffdf0e..fb20d76 100644 --- a/widgets/abase.lua +++ b/widgets/abase.lua @@ -27,10 +27,12 @@ local function worker(args) function abase.update() async.request(cmd, function(f) - output = f:read("*a") - f:close() - widget = abase.widget - settings() + output = f + if output ~= abase.prev then + widget = abase.widget + settings() + abase.prev = output + end end) end