The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Opening new applications in a specific workspace

asked Jul 9 '13

Tohwi gravatar image

updated Jul 9 '13

Is it possible to always open new applications in a specific workspace?

When you open big applications or apps displaying windows when opening (e.g., libreoffice, eclipse...), this is quite annoying to have them open in current workspace. You have to wait for them to load, unless you have specifically specified that this application has to move to some workspace. That's why I'd like new windows to always open in a dedicated workspace.

I tried doing: assign [class="*"] 9 but wildcards don't seem to be handled. Besides, even if it worked, I see a problem: even after moving an application to another workspace, its windows would keep opening in workspace 9.

Is there a way to do this?

Comments

I may have a way to accomplish what you're asking, but it involves setting and eventually deleting a mark on a window. The latter doesn't seem possible, so I'm waiting for comments on a bug report about this: https://github.com/i3/i3/issues/1051

ack006 gravatar imageack006 (Jul 13 '13)edit

2 answers

Sort by » oldest newest most voted
0

answered Jul 9 '13

Tohwi gravatar image

This is not really what I was asking, but it actually helped me.

A matching is already applied on the class name given to the "assign" option, so what I tried to do can be achieved by giving an empty class name. i3 will refuse class="", but doing something like class="^" will work fine.

However, with this solution I will still have the problem that any new window will be created in workspace 9, not only windows of new applications.

Comments

i3 does not keep track of where the window was spawned from. You could possibly achieve that with IPC. Or you could make two config files, one with this match-all rule, and one without. You then can then tell i3 to reload the config file, and point to the other one. An ugly hack, but if it works...

joepd gravatar imagejoepd (Jul 9 '13)edit
0

answered Jul 9 '13

Michael gravatar image

See last paragraph of http://i3wm.org/docs/userguide.html#automaticallyputtingclientsonspecificworkspaces

Question Tools

1 follower

Stats

Asked: Jul 9 '13

Seen: 2,206 times

Last updated: Jul 09 '13