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

Bind containers to workspace that created them

asked 2014-04-20 09:58:04 +0000

matael gravatar image

updated 2014-04-21 09:15:23 +0000

Hi,

I'm using GNU/Octave a lot, and when I launch a script with several plots and switch workspace, the plot windows appear on the new workspace.

Ok, clarification : On workspace 1, I launch a term with GNU/Octave. In Octave, I start a script. The script will do some computations (which can last several minutes) and plot figures in new containers (one per figure). I will switch workspace once the script is started (i don't like to wait), but I want the plot containers to appear on the same workspaces as GNU/Octave.

How can I make them appear on the old one ?

Thanks !

EDIT : Clarification

edit retag flag offensive close merge delete

Comments

1

I can't understand how can you open a program even with several windows and when you switch workspace, then one of the window appears on the workspace you just switch ??? Could you clarify the situation.

phairland gravatar imagephairland ( 2014-04-21 06:14:23 +0000 )edit

I edited the original post.

matael gravatar imagematael ( 2014-04-21 08:42:33 +0000 )edit

1 answer

Sort by » oldest newest most voted
3

answered 2014-04-21 17:37:05 +0000

phairland gravatar image

updated 2014-04-21 17:40:44 +0000

Check the user's guide 4.12 section entitled: Automatically putting clients on specific workspaces

It might help checking the name/class of the window that opens into the workspace. Then create a rule in your i3 config that specifies that every time certain class of window opens will put it in a specific workspace.

Syntax:

assign <criteria> [→] workspace

Examples:

# Assign URxvt terminals to workspace 2
assign [class="URxvt"] 2

# Same thing, but more precise (exact match instead of substring)
assign [class="^URxvt$"] 2

# Same thing, but with a beautiful arrow :)
assign [class="^URxvt$"] → 2

# Assignment to a named workspace
assign [class="^URxvt$"] → work

# Start urxvt -name irssi
assign [class="^URxvt$" instance="^irssi$"] → 3
edit flag offensive delete link more

Comments

Yes, I know that but it would perfect if the windows could appear on the same workspace as the application that instanciate them without rule (no matter if the workspace is on focus or not)

matael gravatar imagematael ( 2014-04-21 17:50:59 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-20 09:58:04 +0000

Seen: 190 times

Last updated: Apr 21 '14