2011/7/6 Michał Janke <[email protected]>: >>> >>> So awful.rules doesn't provide what you want. >>> But don't worry, you can have a callback! >>> >>> callback = function(c) >>> c.screen = mouse.screen >>> c:tags({ tags[c.screen][3] }) >>> end >>> >> >> Man, this is really crazy. I have the same problem: >> Create a rule that makes new windows appear on the screen I'm >> currently on. What magic is it, really? >> >> If I add "c.screen = mouse.screen" >> to the client "manage" (startup) signal, then awesome.rules are no >> longer respected. Drives me mad. >> > > I now see you meant to use callback as a rule > - this works partially for me; I have now > > { rule = { instance = "urxb" }, > callback = { function(c) > c.screen = mouse.screen > c:tags({tags[c.screen][3]}) > end } }, > > in place of > > { rule = { instance = "urxb" }, > properties = { tag = tags[1][3] } }, > > This makes my "urxb" clients to appear on the correct screen, but the > second part is not working - they always appear on the current tag. >
Sorry, but I need to bump this. I still couldn't solve the issue myself: for any program I can assign either a tag (using standard "tag=" property) OR the current screen (via a callback function, as suggested by Uli). Does anyone know a way to do both at the same time (make a program always appear on, say, 3rd tag of the _current_ screen)? -- To unsubscribe, send mail to [email protected].
