diff --git a/include/sway/layout.h b/include/sway/layout.h index 8cc513d8..d7fe748d 100644 --- a/include/sway/layout.h +++ b/include/sway/layout.h @@ -76,4 +76,5 @@ void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, .. enum swayc_layouts default_layout(swayc_t *output); bool is_auto_layout(enum swayc_layouts layout); + #endif diff --git a/sway/layout.c b/sway/layout.c index faab9196..377dad47 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -821,10 +821,6 @@ void update_geometry(swayc_t *container) { } } -bool is_auto_layout(enum swayc_layouts layout) { - return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST); -} - /** * Layout application prototypes */ @@ -1503,3 +1499,7 @@ enum swayc_layouts default_layout(swayc_t *output) { return L_VERT; } } + +bool is_auto_layout(enum swayc_layouts layout) { + return (layout >= L_AUTO_FIRST) && (layout <= L_AUTO_LAST); +} diff --git a/sway/sway.5.txt b/sway/sway.5.txt index eece4b5b..cbff6cef 100644 --- a/sway/sway.5.txt +++ b/sway/sway.5.txt @@ -87,11 +87,20 @@ They are expected to be used with **bindsym** or at runtime through **swaymsg**( _splitv_, _toggle split_, _stacking_, _tabbed_, _auto_left_, _auto_right_, _auto_top, _auto_bottom_. +**layout** auto :: + Cycles between available auto layouts. + **layout** :: Modify the number of master elements, respectively slave columns, in the focused container. can be a positive or negative integer. These commands only have an effect if the focused container uses one of the "auto" layouts. +**layout** toggle split:: + Cycles between available split layouts. + +**layout** promote:: + Swap the focused element with the first in the one of the auto layouts. + **move** :: Moves the focused container _left_, _right_, _up_, or _down_. Moving to _prev_ or _next_ swaps the container with its sibling in the same container. Move