container: autotile uses major axis as first split
This commit is contained in:
parent
dc62d2240f
commit
c1b2c7f17c
8 changed files with 83 additions and 11 deletions
|
|
@ -438,9 +438,9 @@ pub fn get_corner_radius() -> f32 {
|
|||
/// Enables or disables autotiling.
|
||||
///
|
||||
/// When enabled, newly tiled windows alternate split orientation from the
|
||||
/// focused tiled window: the first split uses the containing group's direction,
|
||||
/// then subsequent splits wrap the focused window in the perpendicular
|
||||
/// direction.
|
||||
/// focused tiled window by splitting the focused tile along its largest axis.
|
||||
/// On an empty workspace, the first split uses the workspace output's largest
|
||||
/// axis.
|
||||
///
|
||||
/// The default is `false`.
|
||||
pub fn set_autotile(enabled: bool) {
|
||||
|
|
|
|||
|
|
@ -1215,7 +1215,7 @@
|
|||
},
|
||||
"autotile": {
|
||||
"type": "boolean",
|
||||
"description": "Configures whether autotiling is enabled by default.\n\nWhen enabled, newly mapped tiled windows alternate their split\norientation automatically. This can also be toggled at runtime via the\n`enable-autotile`, `disable-autotile`, and `toggle-autotile` actions.\n\nThe default is `false`.\n"
|
||||
"description": "Configures whether autotiling is enabled by default.\n\nWhen enabled, newly mapped tiled windows alternate their split\norientation automatically by splitting the focused tile along its\nlargest axis. On an empty workspace, the first split uses the largest\naxis of the output, so landscape outputs start horizontally and portrait\noutputs start vertically. This can also be toggled at runtime via the\n`enable-autotile`, `disable-autotile`, and `toggle-autotile` actions.\n\nThe default is `false`.\n"
|
||||
},
|
||||
"modes": {
|
||||
"description": "Configures the input modes.\n\nModes can be used to define shortcuts that are only active when the mode is\nactive.\n\n- Example\n\n ```toml\n [modes.\"navigation\".shortcuts]\n w = \"focus-up\"\n a = \"focus-left\"\n s = \"focus-down\"\n d = \"focus-right\"\n r = \"focus-above\"\n f = \"focus-below\"\n q = \"focus-prev\"\n e = \"focus-next\"\n ```\n\nModes can be activated with the `push-mode` and `latch-mode` actions.\n",
|
||||
|
|
@ -2628,4 +2628,4 @@
|
|||
"required": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3188,7 +3188,10 @@ Config:
|
|||
Configures whether autotiling is enabled by default.
|
||||
|
||||
When enabled, newly mapped tiled windows alternate their split
|
||||
orientation automatically. This can also be toggled at runtime via the
|
||||
orientation automatically by splitting the focused tile along its
|
||||
largest axis. On an empty workspace, the first split uses the largest
|
||||
axis of the output, so landscape outputs start horizontally and portrait
|
||||
outputs start vertically. This can also be toggled at runtime via the
|
||||
`enable-autotile`, `disable-autotile`, and `toggle-autotile` actions.
|
||||
|
||||
The default is `false`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue