At Mon, 1 Jun 2009 11:03:29 +0200
Matthias Kirschner wrote:

> [...]
> Hm, either I don't understand the bash script above or I misunderstood
> you in the first place. I thought you have a solution to define that
> when I start awesome on tag 1 the view mode is "max", on tag 2 it is
> "fairv", on tag 3 it is "fairh", ...
> [...]

I have a neat solution for that:

 config = { }
 config.tags = {
     { name = "α", layout = layouts[3] },
     { name = "β", layout = layouts[1], mwfact = 0.8 },
     { name = "γ", layout = layouts[3] },
     { name = "δ", layout = layouts[1] },
     { name = "ε", layout = layouts[1], mwfact = 0.28 },
     { name = "ζ", layout = layouts[6] },
 }
 tags = { }
 for s = 1, screen.count() do
     tags[s] = { }
     for i, v in ipairs(config.tags) do
         tags[s][i] = tag(v.name)
         tags[s][i].screen = s
         awful.tag.setproperty(tags[s][i], "layout", v.layout)
         awful.tag.setproperty(tags[s][i], "mwfact", v.mwfact)
         awful.tag.setproperty(tags[s][i], "nmaster", v.nmaster)
         awful.tag.setproperty(tags[s][i], "ncols", v.ncols)
         awful.tag.setproperty(tags[s][i], "icon", v.icon)
     end
     tags[s][1].selected = true
 end

Replace your tag creation loop with that piece of code and adjust the tag 
settings in the table config.tags. It allows setting of layout, mwfact, 
nmaster, ncols and the tag icon.

-- 
GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- O M-- V PS+ PE- Y+ PGP+++ t+ 5 X+ R tv+ b++ DI+++ D+++ G+
e- h! r y+

    Gregor Best

Attachment: signature.asc
Description: PGP signature

Reply via email to