From 2edf1241febe9ea7011892955fbdd444fc03f664 Mon Sep 17 00:00:00 2001 From: Kobe Lipkens Date: Sat, 3 Sep 2016 16:44:48 +0200 Subject: [PATCH] widget.base: Fix cached output --- widgets/base.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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