From 73b86a65a57d20561dfe33d17e3123e883f2be90 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 29 Jul 2012 20:29:38 +0200 Subject: [PATCH] tags: when only one screen, don't display tag names With the addition of icons, tag list became a bit long. If we have only one screen, don't display names. --- rc/tags.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rc/tags.lua b/rc/tags.lua index 8e312ba..a73f1c4 100644 --- a/rc/tags.lua +++ b/rc/tags.lua @@ -30,7 +30,11 @@ for i = 1, #tags do -- Name config.tags[tags[i].name] = tags[i] if tags[i].name ~= tostring(i) then - tags[i].name = tostring(i) .. "↭" .. tags[i].name + if screen.count() > 1 then + tags[i].name = tostring(i) .. "↭" .. tags[i].name + else + tags[i].name = tostring(i) + end end -- Properties