X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/907fb6ff8ea724f0642075be615ac77c26ac62bb..f63a7fd098e3826e397c16938968a1a840150abe:/widgets/base.lua?ds=inline diff --git a/widgets/base.lua b/widgets/base.lua index 2f377f7..272163c 100644 --- a/widgets/base.lua +++ b/widgets/base.lua @@ -26,9 +26,12 @@ local function worker(args) base.widget = wibox.widget.textbox('') function base.update() - output = read_pipe(cmd) - widget = base.widget - settings() + if output ~= abase.prev then + output = read_pipe(cmd) + widget = base.widget + settings() + abase.prev = output + end end newtimer(cmd, timeout, base.update)