From 5a0bda7ec48e5207dbfa22876157b192bdae54b9 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 22 Jul 2024 12:51:16 +0300 Subject: wiki: Document negative struts --- wiki/Configuration:-Layout.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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. +Since: 0.1.8 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 { ``` ![](./img/struts.png) + +Since: 0.1.8 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 + } +} +``` -- cgit