I can move to an empty tag, launch openoffice, go back to browser while it’s loading, and it’ll load on the tab I launched it on. Magic!
Add the following somewhere (pretty much anywhere, but after the inclusion of awful, and before the hook_manage function)
spawn = awful.util.spawn
move_to = {}
awful.util.spawn = function (spawnwhat, screen)
screen = screen or mouse.screen
local current_tag = awful.tag.selected(screen)
move_to[#move_to+1] = {tag=current_tag, screen=screen}
spawn(spawnwhat, screen)
end
Now add to hook_manage
if #move_to then c.screen = move_to[#move_to].screen awful.client.movetotag(move_to[#move_to].tag, c) move_to.remove() end

No comments yet
Comments feed for this article