diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-22 12:51:16 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-22 13:12:42 +0300 |
| commit | 5a0bda7ec48e5207dbfa22876157b192bdae54b9 (patch) | |
| tree | 66b41bbe81197d73322c65f8e9992fe404445d31 | |
| parent | b454fd5d9ee5b1fc9797a9ccbd8b3d0d1f49f05d (diff) | |
| download | niri-5a0bda7ec48e5207dbfa22876157b192bdae54b9.tar.gz niri-5a0bda7ec48e5207dbfa22876157b192bdae54b9.tar.bz2 niri-5a0bda7ec48e5207dbfa22876157b192bdae54b9.zip | |
wiki: Document negative struts
| -rw-r--r-- | wiki/Configuration:-Layout.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/wiki/Configuration:-Layout.md b/wiki/Configuration:-Layout.md index 2eac03a5..1b5c4ef9 100644 --- a/wiki/Configuration:-Layout.md +++ b/wiki/Configuration:-Layout.md @@ -52,6 +52,8 @@ Set gaps around (inside and outside) windows in logical pixels. The value will be rounded to physical pixels according to the scale factor of every output. For example, `gaps 0.5` on an output with `scale 2` will result in one physical-pixel wide gaps. +<sup>Since: 0.1.8</sup> You can emulate "inner" vs. "outer" gaps with negative `struts` values (see the struts section below). + ```kdl layout { gaps 16 @@ -284,3 +286,22 @@ layout { ```  + +<sup>Since: 0.1.8</sup> You can use negative values. +They will push the windows outwards, even outside the edges of the screen. + +You can use negative struts with matching gaps value to emulate "inner" vs. "outer" gaps. +For example, use this for inner gaps without outer gaps: + +```kdl +layout { + gaps 16 + + struts { + left -16 + right -16 + top -16 + bottom -16 + } +} +``` |
