The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Swallow existing window

asked 2015-07-24 19:44:29 +0000

gerw gravatar image

updated 2015-07-28 05:08:30 +0000

i3convert gravatar image

One of my workflows is as follows:

  • open xterm and navigate into a directory
  • set up a LaTeX-session (editor, latexmk, viewer)

It would be nice, if I could restore a layout and the (already existing) xterm window gets swallowed into its place. Is this possible? Currently, append_layout seems only capable to append the layout right of the existing window.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-24 20:07:08 +0000

i3convert gravatar image

updated 2015-07-24 20:10:05 +0000

I don't think swallowing of existing windows is possible, but I can see the following workarounds.

  1. Open the layout (which includes a terminal window) and only then navigate to where your LaTeX project is. (Easy to implement, but I think this is exactly what you wanted to avoid.)

  2. Open a layout with the additional windows. They will unfortunately open in the wrong place, at the top of the tree for the workspace. You then have to write a script that focuses all of them, moves them to the scratchpad, moves focus back to where you want the windows to show up, and moves them back from the scratchpad. (This is complicated and you may have to do it window by window.)

edit flag offensive delete link more


Thank you for your answer. Currently, I am using a different workaround, similar to 2.: I open the layout with the additional windows and move the terminal at its desired position.

gerw gravatar imagegerw ( 2015-07-25 19:51:36 +0000 )edit

Question Tools

1 follower


Asked: 2015-07-24 19:44:29 +0000

Seen: 113 times

Last updated: Jul 24