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 2015-04-16 20:47:50 +0000

gbitzes gravatar image

updated 2015-07-28 05:14:15 +0000

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!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-16 22:24:27 +0000

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.

edit flag offensive delete link more

Comments

Your solution worked, thanks!

gbitzes gravatar imagegbitzes ( 2015-04-16 23:43:09 +0000 )edit

Question Tools

Stats

Asked: 2015-04-16 20:47:50 +0000

Seen: 53 times

Last updated: Apr 16