X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/0b80b45bc9bca17f08e8055d364bac17f96129bd..2697333bdcc6d1ec84e28e76892a007e62ecad2c:/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)