From: Kobe Lipkens Date: Sat, 3 Sep 2016 14:44:48 +0000 (+0200) Subject: widget.base: Fix cached output X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/2edf1241febe9ea7011892955fbdd444fc03f664?ds=sidebyside widget.base: Fix cached output --- diff --git a/widgets/base.lua b/widgets/base.lua index e1ce297..cd84e36 100644 --- a/widgets/base.lua +++ b/widgets/base.lua @@ -26,8 +26,8 @@ local function worker(args) base.widget = wibox.widget.textbox('') function base.update() + output = read_pipe(cmd) if output ~= base.prev then - output = read_pipe(cmd) widget = base.widget settings() base.prev = output