Assume the following situation (which is my normal way of working): 2 displays, a full screen terminal with tmux on workspace 1 on display 1. When launching a X application from that terminal it will open "in the background" of workspace 1 since the full screen terminal is always on top.
What I'm looking for is a convenient way (i.e. something I can bind to a shell alias/function) to launch an application on workspace N on display 2 instead. Ideally I'd also like to preserve my current working directory.
I got some of the way using:
i3 "workspace N; exec cd `pwd` && cmd"
This will however still launch a new workspace on the same display. Is there a more elegant way of doing this?