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

Is it possible to dynamically switch a container layout type ?

asked 2013-03-29 15:04:17 +0000

syl20bnr gravatar image

Dear i3 community,

Is it possible to switch a parent container from vertical to horizontal layout (and vice versa) ? I struggle sometimes to make a H container with 3 terminals in the bottom of the screen to be a V container and on the left or right of the screen.

Cheers, syl20bnr

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2013-03-29 15:08:41 +0000

Michael gravatar image

The command you are looking for is

layout splitv

or

layout splith

for vertical/horizontal split, respectively.

edit flag offensive delete link more
0

answered 2013-04-01 21:27:44 +0000

ppeev gravatar image

you want to press your mod key + e to achieve what you want. what the other user told you is how to change the layout before opening a new container. $mod+e changes them on the fly.

edit flag offensive delete link more

Comments

“the other user” named the command, which works on the fly. See the userguide, you can bind commands to keys ($mod+e is bound to layout toggle split by default) or send them interactively using i3-msg.

Michael gravatar imageMichael ( 2013-04-02 11:01:46 +0000 )edit

yep, sorry I thought you meant split h and split v, but still I think it will be easier for the man to just press $mod+e to achieve what he wanted(switch between vertical and horizontal AND vice versa) with one button combo which is already binded, instead of making room for two new button combos...

ppeev gravatar imageppeev ( 2013-04-02 11:08:34 +0000 )edit

Question Tools

Stats

Asked: 2013-03-29 15:04:17 +0000

Seen: 528 times

Last updated: Apr 01 '13