diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-12 12:09:44 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-12 02:32:44 -0700 |
| commit | 737e99ec6949d648c39f5ab7ad7af52c0e8602b5 (patch) | |
| tree | e53b9fac479e93bf0993ab6ac34fa70f120ec6af /wiki/Configuration:-Layout.md | |
| parent | c3cb42f04d065c0e481ca66ae2a3edce7c5aac74 (diff) | |
| download | niri-737e99ec6949d648c39f5ab7ad7af52c0e8602b5.tar.gz niri-737e99ec6949d648c39f5ab7ad7af52c0e8602b5.tar.bz2 niri-737e99ec6949d648c39f5ab7ad7af52c0e8602b5.zip | |
Add preset window heights to wiki & default config
Diffstat (limited to 'wiki/Configuration:-Layout.md')
| -rw-r--r-- | wiki/Configuration:-Layout.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/wiki/Configuration:-Layout.md b/wiki/Configuration:-Layout.md index 1b5c4ef9..47be65f8 100644 --- a/wiki/Configuration:-Layout.md +++ b/wiki/Configuration:-Layout.md @@ -17,6 +17,12 @@ layout { default-column-width { proportion 0.5; } + preset-window-heights { + proportion 0.33333 + proportion 0.5 + proportion 0.66667 + } + focus-ring { // off width 4 @@ -134,6 +140,29 @@ layout { > > Either way, `default-column-width {}` is most useful for specific windows, in form of a [window rule](https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules) with the same syntax. +### `preset-window-heights` + +<sup>Since: 0.1.9</sup> + +Set the heights that the `switch-preset-window-height` action (Mod+Shift+R) toggles between. + +`proportion` sets the height as a fraction of the output height, taking gaps into account. +The default preset heights are <sup>1</sup>⁄<sub>3</sub>, <sup>1</sup>⁄<sub>2</sub> and <sup>2</sup>⁄<sub>3</sub> of the output. + +`fixed` sets the height in logical pixels exactly. + +```kdl +layout { + // Cycle between 1/3, 1/2, 2/3 of the output, and a fixed 720 logical pixels. + preset-window-heights { + proportion 0.33333 + proportion 0.5 + proportion 0.66667 + fixed 720 + } +} +``` + ### `focus-ring` and `border` Focus ring and border are drawn around windows and indicate the active window. |
