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 2013-07-09 17:32:58 +0000

Tohwi gravatar image

updated 2013-07-09 17:34:10 +0000

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?

edit retag flag offensive close merge delete

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 ( 2013-07-13 13:18:57 +0000 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-07-09 19:26:26 +0000

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.

edit flag offensive delete link more

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 ( 2013-07-09 21:55:19 +0000 )edit
0

answered 2013-07-09 18:17:38 +0000

Michael gravatar image

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-07-09 17:32:58 +0000

Seen: 2,206 times

Last updated: Jul 09 '13