X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/907fb6ff8ea724f0642075be615ac77c26ac62bb..a6959d99c42658eae495ec0c229d5fe102b42234:/widgets/abase.lua diff --git a/widgets/abase.lua b/widgets/abase.lua index 98f7818..fb20d76 100644 --- a/widgets/abase.lua +++ b/widgets/abase.lua @@ -28,8 +28,11 @@ local function worker(args) function abase.update() async.request(cmd, function(f) output = f - widget = abase.widget - settings() + if output ~= abase.prev then + widget = abase.widget + settings() + abase.prev = output + end end) end