Hi, so you do not want setslave globally (check out your manage signal 
handler, I personally always preferred that behaviour)? 

Here's something you can do then (I'm a little rusty take it as pseudo 
code):

tags = {
 names  =   { "term",     "emacs" },
 layout =   { layouts[2], layouts[1] }
}

for s = 1, scount do
 tags[s] = awful.tag(tags.names, s, tags.layout)

 for i, t in ipairs(tags[s]) do
   awful.tag.setproperty(t, "setslave", i==2 and true  or false)
   --
   -- Stephen can set many other properties here to default his
   -- Emacs tag to specific width ratio between master and slave
   -- columns etc. etc.
   --awful.tag.setproperty(t, "mwfact", i==2 and 0.3 or 0.5)
 end
end

--<snip>

client.add_signal("manage", function (c, startup)
--<snip>

 -- Client placement
 if not startup then
  -- Put windows at the end of others instead of 
  -- setting them as a master
  --awful.client.setslave(c)
  --
  -- Or do it selectively for certain tags only
  if awful.tag.getproperty(awful.tag.selected(mouse.screen), "setslave") then
    awful.client.setslave(c)
  end
--<snip>




-- 
Adrian C. (anrxc) | anrxc..sysphere.org | PGP ID: D20A0618
PGP FP: 02A5 628A D8EE 2A93 996E  929F D5CB 31B7 D20A 0618

-- 
To unsubscribe, send mail to [email protected].

Reply via email to