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

Using append_layout to add to existing tabbed container

asked Apr 16 '15

gbitzes gravatar image

updated Jul 28 '15

i3convert gravatar image

Here's what I might have in a workspace:

tabbed container
   splitv
      window1
      window2
   splitv
      window3
      window4

And I'd like to run append_layout which will add window5 and window6 into the layout, ending up with this:

tabbed container
   splitv
      window1
      window2
   splitv
      window3
      window4
   splitv
      window5
      window6

Is this possible? In all my attempts to achieve it, it seems that append_layout creates a new splith on top of the tabbed container, and I end up with this:

splith
    tabbed container
       splitv
          window1
          window2
       splitv
          window3
          window4
    splitv
       window5
       window6

Using a single initial json file to build the entire workspace layout from the start is not an option in my use case.. Thanks!

1 answer

Sort by » oldest newest most voted
0

answered Apr 16 '15

i3convert gravatar image

In your case you can run the following commands, assuming that after loading the layout, either window5 or window6 is focused:

  1. Command focus parent ($mod+a in the standard configuration) to focus the entire container with window5 and window6.
  2. Command move left ($mod+Shift+Left) to move the container into the splitv container containing window3 and window4.
  3. Command move right ($mod+Shift+Left) to move the container out of the subcontainer with window3 and window4 into the tabbed container.

This is purely based on experimenting. Let me know if it works for you.

Comments

Your solution worked, thanks!

gbitzes gravatar imagegbitzes (Apr 16 '15)edit

Question Tools

Stats

Asked: Apr 16 '15

Seen: 53 times

Last updated: Apr 16