mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Implement is-window-cast-target window rule matcher
This commit is contained in:
@@ -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:
|
||||
|
||||

|
||||
|
||||
#### `at-startup`
|
||||
|
||||
<sup>Since: 0.1.6</sup>
|
||||
|
||||
Reference in New Issue
Block a user