Add layer matcher to layer-rule

This commit is contained in:
Ivan Molodetskikh
2026-02-21 13:37:56 +03:00
parent f022b3c504
commit 6bcaaf9d21
7 changed files with 113 additions and 3 deletions
+17
View File
@@ -14,6 +14,7 @@ Here are all matchers and properties that a layer rule could have:
layer-rule {
match namespace="waybar"
match at-startup=true
match layer="top"
// Properties that apply continuously.
opacity 0.5
@@ -69,6 +70,22 @@ layer-rule {
}
```
#### `layer`
<sup>Since: next release</sup>
Matches surfaces on this layer-shell layer.
Can be `"background"`, `"bottom"`, `"top"`, or `"overlay"`.
```kdl
// Make all overlay-layer surfaces FLOAT.
layer-rule {
match layer="overlay"
baba-is-float true
}
```
### Dynamic Properties
These properties apply continuously to open layer-shell surfaces.