added "toggle" option to "split" command

as requested in #1814
This commit is contained in:
Johannes Lange
2016-01-04 17:31:47 +01:00
parent a9f31b9dc9
commit 8bfd06c3dd
5 changed files with 62 additions and 13 deletions

View File

@ -1750,20 +1750,24 @@ get placed below the current one (splitv).
If you apply this command to a split container with the same orientation,
nothing will happen. If you use a different orientation, the split containers
orientation will be changed (if it does not have more than one window). Use
+layout toggle split+ to change the layout of any split container from splitv
to splith or vice-versa.
orientation will be changed (if it does not have more than one window).
The +toggle+ option will toggle the orientation of the split container if it
contains a single window. Otherwise it makes the current window a split
container with opposite orientation compared to the parent container.
Use +layout toggle split+ to change the layout of any split container from
splitv to splith or vice-versa.
*Syntax*:
-------------------------
split vertical|horizontal
-------------------------
--------------------------------
split vertical|horizontal|toggle
--------------------------------
*Example*:
------------------------------
-------------------------------
bindsym $mod+v split vertical
bindsym $mod+h split horizontal
------------------------------
bindsym $mod+t split toggle
-------------------------------
=== Manipulating layout