From 461892a8d637fc10d7f1ddddc4bc27d443663e22 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Tue, 28 Dec 2010 00:22:38 +0100 Subject: rc.lua: new tag setup for easier property expansion --- rc.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index 3b35d05..dec95a2 100644 --- a/rc.lua +++ b/rc.lua @@ -51,10 +51,11 @@ tags = { }} for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) - awful.tag.setproperty(tags[s][5], "mwfact", 0.13) - awful.tag.setproperty(tags[s][6], "hide", true) - awful.tag.setproperty(tags[s][7], "hide", true) + tags[s] = awful.tag(tags.names, s, tags.layout) + for i, t in ipairs(tags[s]) do + awful.tag.setproperty(t, "mwfact", i==5 and 0.13 or 0.5) + awful.tag.setproperty(t, "hide", (i==6 or i==7) and true) + end end -- }}} -- cgit v1.2.3