Implement is-window-cast-target window rule matcher

This commit is contained in:
Ivan Molodetskikh
2025-02-11 09:52:05 +03:00
parent 216753678a
commit 29b7a41692
5 changed files with 94 additions and 3 deletions
+37
View File
@@ -34,6 +34,7 @@ window-rule {
match is-focused=false
match is-active-in-column=true
match is-floating=true
match is-window-cast-target=true
match at-startup=true
// Properties that apply once upon window opening.
@@ -239,6 +240,42 @@ window-rule {
}
```
#### `is-window-cast-target`
<sup>Since: next release</sup>
Can be `true` or `false`.
Matches `true` for windows that are target of an ongoing window screencast.
```kdl
// Indicate screencasted windows with red colors.
window-rule {
match is-window-cast-target=true
focus-ring {
active-color "#f38ba8"
inactive-color "#7d0d2d"
}
border {
inactive-color "#7d0d2d"
}
shadow {
color "#7d0d2d70"
}
tab-indicator {
active-color "#f38ba8"
inactive-color "#7d0d2d"
}
}
```
Example:
![](https://github.com/user-attachments/assets/375b381e-3a87-4e94-8676-44404971d893)
#### `at-startup`
<sup>Since: 0.1.6</sup>