X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/293091d2674bb5b37d461b7989a39b7048800794..2697333bdcc6d1ec84e28e76892a007e62ecad2c:/widgets/abase.lua diff --git a/widgets/abase.lua b/widgets/abase.lua index 1c132cd..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("*all") - f:close() - widget = abase.widget - settings() + output = f + if output ~= abase.prev then + widget = abase.widget + settings() + abase.prev = output + end end) end