Suppose I call shell-command from emacs for example (shell-command "evince"). Is it possible to move the application (in the present example evince) started this way automatically to desktop 5 in xmonad.
|
|
|
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. |
|||||
|
|
In the spirit of do one thing and do it well, Devil's Pie was created for these kinds of issues with any standards-compliant WM (such as properly-configured XMonad, also see the FAQ). 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. |
|||
|
|
|
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. |
||||
|
|
