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

Moving a leaf to another container

asked 2015-10-27 00:44:20 +0000

constantine gravatar image

updated 2015-10-27 00:47:01 +0000

I am in this situation, where the "desktop container" has four children (leaves):

  1. Window One
  2. Window Two
  3. Window Three
  4. Window Four

How can I make it have two children, having Window One and Two inside a Vertical split, and the same for Windows Three and Four?

With pictures, I want to go from this: Picture 1 from-this

to this: Picture 2 to-this

Making Windows Two and Four floating and drag'n'dropping on the titlebars of One and Three would be a nice feature I suppose.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-10-27 02:16:03 +0000

i3convert gravatar image

(I'll use standard keybindings and specify corresponding i3 commands.)

You can do this as follows:

  1. Repeat $mod+Left until you focus Window One (command focus left)
  2. Press $mod+v to split in vertical orientation (command split v)
  3. Press $mod+Right to focus Window Two (command focus right)
  4. Press $mod+Shift+Left to move Window Two left, which will put it under Window One (command move left)

Then you can repeat this with Windows 3 and 4.

edit flag offensive delete link more

Comments

Wow! At last, I have finally made it! And now I can also put 2 on top of 1 in the vertical split by focusing 1 and then `$mod+Left` and `$mod+Right`. Thanks!

constantine gravatar imageconstantine ( 2015-10-27 18:03:16 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2015-10-27 00:44:20 +0000

Seen: 89 times

Last updated: Oct 27