aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Window-Rules.md
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-04-24 21:49:07 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-04-24 22:01:26 +0400
commit3e598c565e6e8ad4c34e93aec9a49e60d51d730e (patch)
tree95d3f12d04f3a416ba86915ebea01b7e0f66498e /wiki/Configuration:-Window-Rules.md
parente261b641ed62474676c90aaa4e734cdd1ecde703 (diff)
downloadniri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.tar.gz
niri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.tar.bz2
niri-3e598c565e6e8ad4c34e93aec9a49e60d51d730e.zip
Implement border window rule
Diffstat (limited to 'wiki/Configuration:-Window-Rules.md')
-rw-r--r--wiki/Configuration:-Window-Rules.md30
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.