X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3a056ccaebc84a3bb98d3fab54298eea58544a35..c23c2660e9b1ab45f97703e6c916c4e96c339b00:/widgets/base.lua diff --git a/widgets/base.lua b/widgets/base.lua index 2f377f7..cd84e36 100644 --- a/widgets/base.lua +++ b/widgets/base.lua @@ -27,8 +27,11 @@ local function worker(args) function base.update() output = read_pipe(cmd) - widget = base.widget - settings() + if output ~= base.prev then + widget = base.widget + settings() + base.prev = output + end end newtimer(cmd, timeout, base.update)