From a9fda5445550aaf50a8f9cf68bce8a9fe5813921 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 7 Jul 2012 12:08:10 +0200 Subject: [PATCH] widget: don't display a separator when no tasklist is needed --- rc/widgets.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/widgets.lua b/rc/widgets.lua index 329ea2f..b89159f 100644 --- a/rc/widgets.lua +++ b/rc/widgets.lua @@ -159,7 +159,7 @@ for s = 1, screen.count() do on(2, fswidget), on(2, separator), on(1, memwidget), on(1, separator), on(1, cpuwidget), on(1, separator), - tasklist[s], tasklist ~= "" and separator or "", + tasklist[s], tasklist[s] ~= "" and separator or "", layout = awful.widget.layout.horizontal.rightleft } end