aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Layer-Rules.md
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-05-06 16:51:18 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-05-06 17:34:40 +0300
commit3e31c134a602dd876f2b446071e5802fa4a0c3ec (patch)
tree0c162b432ee4964e66d24521b3728b447d90afdb /wiki/Configuration:-Layer-Rules.md
parentfe682938db2a0aa6e6ffb105a51051a5946a8143 (diff)
downloadniri-3e31c134a602dd876f2b446071e5802fa4a0c3ec.tar.gz
niri-3e31c134a602dd876f2b446071e5802fa4a0c3ec.tar.bz2
niri-3e31c134a602dd876f2b446071e5802fa4a0c3ec.zip
Implement place-within-backdrop layer rule
Diffstat (limited to 'wiki/Configuration:-Layer-Rules.md')
-rw-r--r--wiki/Configuration:-Layer-Rules.md23
1 files changed, 22 insertions, 1 deletions
diff --git a/wiki/Configuration:-Layer-Rules.md b/wiki/Configuration:-Layer-Rules.md
index 84a8f7d6..8688295c 100644
--- a/wiki/Configuration:-Layer-Rules.md
+++ b/wiki/Configuration:-Layer-Rules.md
@@ -32,6 +32,8 @@ layer-rule {
}
geometry-corner-radius 12
+
+ place-within-backdrop true
}
```
@@ -129,7 +131,7 @@ That is, enabling shadows in the layout config section won't automatically enabl
// Add a shadow for fuzzel.
layer-rule {
match namespace="^launcher$"
-
+
shadow {
on
}
@@ -149,6 +151,25 @@ This setting will only affect the shadow—it will round its corners to match th
```kdl
layer-rule {
+ match namespace="^launcher$"
+
geometry-corner-radius 12
}
```
+
+#### `place-within-backdrop`
+
+<sup>Since: next release</sup>
+
+Set to `true` to place the surface into the backdrop visible in the [Overview](./Overview.md) and between workspaces.
+
+This will only work for *background* layer surfaces that ignore exclusive zones (typical for wallpaper tools).
+
+```kdl
+// Put swaybg inside the overview backdrop.
+layer-rule {
+ match namespace="^wallpaper$"
+
+ place-within-backdrop true
+}
+```