El vie 02 dic 2011 11:10:49 CLST, Matthew Hague escribió:
{ rule = { class = "Chromium.*" , name = ".*Abrir.*" }, properties = {tag = tags[mouse.screen][2]}}, -- I use it in spanishI think this will not work as hoped because it chooses mouse.screen when the rules are loaded, not dynamically. My fix for this is to do the following: { rule = {<blah> }, callback = totag(2) }, And elsewhere in rc.lua, define: function totag(i) return function (c) local screentags = screen[mouse.screen]:tags() c:tags({screentags[i]}) c.screen = mouse.screen awful.tag.viewonly(screentags[i]) end end The line "awful.tag.viewonly(...) is to automatically switch to the right tag, so delete it if you don't want this behaviour. If you do, you might also find you need to make sure switchtotag is not set to true by your rules (it causes some weirdness, but i forget what). Well, this is my hack anyway :) Best, Matt
i tried your hack, but it the "open file" window is still raising at the first screen :(
-- To unsubscribe, send mail to [email protected].
