forge
Explore
Log in

Don't you dare go Hollow

wiki: Document negative struts

Browse files at this commit

5a0bda7ec48e5207dbfa22876157b192bdae54b9Ivan MolodetskikhParent: b454fd5
wiki/Configuration:-Layout.mdmodified+21 -0
@@ -52,6 +52,8 @@ Set gaps around (inside and outside) windows in logical pixels.
52 The value will be rounded to physical pixels according to the scale factor of every output.52 The value will be rounded to physical pixels according to the scale factor of every output.
53 For example, `gaps 0.5` on an output with `scale 2` will result in one physical-pixel wide gaps.53 For example, `gaps 0.5` on an output with `scale 2` will result in one physical-pixel wide gaps.
54 54
55+<sup>Since: 0.1.8</sup> You can emulate "inner" vs. "outer" gaps with negative `struts` values (see the struts section below).
56+
55 ```kdl57 ```kdl
56 layout {58 layout {
57 gaps 1659 gaps 16
@@ -284,3 +286,22 @@ layout {
284 ```286 ```
285 287
286 ![](./img/struts.png)288 ![](./img/struts.png)
289+
290+<sup>Since: 0.1.8</sup> You can use negative values.
291+They will push the windows outwards, even outside the edges of the screen.
292+
293+You can use negative struts with matching gaps value to emulate "inner" vs. "outer" gaps.
294+For example, use this for inner gaps without outer gaps:
295+
296+```kdl
297+layout {
298+ gaps 16
299+
300+ struts {
301+ left -16
302+ right -16
303+ top -16
304+ bottom -16
305+ }
306+}
307+```