diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-24 21:49:07 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-24 22:01:26 +0400 |
| commit | 3e598c565e6e8ad4c34e93aec9a49e60d51d730e (patch) | |
| tree | 95d3f12d04f3a416ba86915ebea01b7e0f66498e /wiki | |
| parent | e261b641ed62474676c90aaa4e734cdd1ecde703 (diff) | |
| download | niri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.tar.gz niri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.tar.bz2 niri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.zip | |
Implement border window rule
Diffstat (limited to 'wiki')
| -rw-r--r-- | wiki/Configuration:-Window-Rules.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/wiki/Configuration:-Window-Rules.md b/wiki/Configuration:-Window-Rules.md index 869350c3..b459f8c0 100644 --- a/wiki/Configuration:-Window-Rules.md +++ b/wiki/Configuration:-Window-Rules.md @@ -45,6 +45,16 @@ window-rule { block-out-from "screencast" // block-out-from "screen-capture" + border { + // off + on + width 4 + active-color "#ffc87f" + inactive-color "#505050" + active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view" + inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" + } + min-width 100 max-width 200 min-height 300 @@ -337,6 +347,26 @@ window-rule { } ``` +#### `border` + +<sup>Since: 0.1.6</sup> + +Override the border options for the window. + +This rule has the same options as the normal border config in the [layout](./Configuration:-Layout.md) section, so check the documentation there. + +However, in addition to `off` to disable the border, this window rule has an `on` flag that enables the border for the window even if the border is otherwise disabled. +The `on` flag has precedence over the `off` flag, in case both are set. + +``` +window-rule { + border { + on + width 8 + } +} +``` + #### Size Overrides You can amend the window's minimum and maximum size in logical pixels. |
