Gnome-shell auto-move-windows

So lately I've been trying to switch from my favorite tiling window managers (wmii, awesome) to gnome-shell to try out what's new.

One thing I always liked is being able to create some rules about specific programs being moved to a specific workspace automatically.

I found out that this is possible with the gnome-shell plugin "auto-move-windows" (from the gnome-shell-extensions repository) although this is not very well documented. I thought I'd share the information on how to do this as this does not appear to be blogged/documented yet (sorry If I missed some...).

I'll keep it short on this one with an example:

# gsettings set org.gnome.shell.extensions.auto-move-windows application-list "['<application>.desktop:<workspace-number>',...]"
gsettings set org.gnome.shell.extensions.auto-move-windows application-list "['firefox.desktop:2','evolution.desktop:3','xchat.desktop:4','empathy.desktop:4','soffice.desktop:5']"

I'm sure you get the point here and you can adjust this example to your own preference so I'll leave it at that.

/dev/out

4 comments

6
May

Lucas Vieites's picture
Hi, I' like to know how to obtain the name of the application to use in the application list. Is it the name of the executable? or some obscure X-Window internal name? Thanks,
6
May

bdeferme's picture

Lucas,

Most of the time this will be the name of the executable, with .desktop appended to it, you can get a list of the names though by looking in the following directory:

/usr/share/applications
16
Nov

John Brier's picture
Thank you for this bit of information. I'm on Fedora 16 and firefox.desktop:2 was not working. I checked in /usr/share/applications and I could see that the name of the .desktop for firefox in F16 is mozilla-firefox.desktop.
10
May

 GS Extensions: Auto Move Windows &amp;amp;raquo; GnomeShell: Th's picture
[...] The second problem I encountered is the lack of documentation which I happily found here. [...]