diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-12-28 00:22:38 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-12-28 00:22:38 +0100 |
commit | 461892a8d637fc10d7f1ddddc4bc27d443663e22 (patch) | |
tree | b95887c00c5f1330f48d4b98ed527b0dcec2f50e | |
parent | dfaf08245d80cbcaab96fa3b88ef6558146db4cf (diff) | |
download | awesome-configs-461892a8d637fc10d7f1ddddc4bc27d443663e22.tar.xz |
rc.lua: new tag setup for easier property expansion
-rw-r--r-- | rc.lua | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 -- }}} |