Suppose I call
emacs for example
(shell-command "evince"). Is it possible to move the application (in the present example
evince) started this way automatically to desktop
Some configuration along the lines (adopted from this tutorial, I do not know if this way of matching Evince actually works, maybe some other way (see the docs) is needed) of
should do the job. Note that Devil's Pie has been mentioned quite often around here, there might be more useful information just a click away.
A pure xmonad configuration is possible for that. In your
You can see the className of given Window with
More on that can be found in the Xmonad FAQ.
Here's an approach using
And then write a function in emacs
Whenever you call a program through the emacs function it will change the class name of the window as long as the PID of the window is the same as the function that called it otherwise the script will time out after six seconds.