awful.util.spawn returns the PID of the spawned process. You could use those PIDs as keys to a table which contains a tuple of tag/screen numbers to move clients to. Once they are managed (i.e. in the managed signal handler) you can check for c.pid to get the PID of the newly managed client. If it happens to be a key in your table, use the values you set there to move the client whereever you want. This is an (untested) example:
scrtags = { }
scrtags[awful.util.spawn("one")] = { screen = 1, tag = 2 }
scrtags[awful.util.spawn("two")] = { screen = 2, tag = 3 }
client.connect_signal("manage", function (c)
if scrtags[c.pid] ~= nil then
c.screen = scrtags[c.pid].screen
c:tags({ screen[c.screen]:tags()[scrtags.tag] })
end
end)
--
$l="\n";$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)<1}while(
$i++<=$s){$t++if c r,r}die("Gregor Best, 0xDB9F9A7C, ".($t/$s*
4).$l)-;$s+=ord$$|$_ for split //,$p;srand($s|$$);eval$p;die$@
pgpTxy3g5lJw0.pgp
Description: PGP signature
