1
0
Fork 0
forked from wry/wry

config: add toplevel-tag window criteria

This commit is contained in:
Julian Orth 2025-05-01 17:31:42 +02:00
parent 5f1268cada
commit 6d3d4dcabb
15 changed files with 106 additions and 8 deletions

View file

@ -1819,6 +1819,14 @@
"just-mapped": {
"type": "boolean",
"description": "Matches if the window has/hasn't just been mapped.\n\nThis is true for one iteration of the compositor's main loop immediately after the\nwindow has been mapped.\n"
},
"tag": {
"type": "string",
"description": "Matches the toplevel-tag of the window verbatim."
},
"tag-regex": {
"type": "string",
"description": "Matches the toplevel-tag of the window with a regular expression."
}
},
"required": []

View file

@ -4073,6 +4073,18 @@ The table has the following fields:
The value of this field should be a boolean.
- `tag` (optional):
Matches the toplevel-tag of the window verbatim.
The value of this field should be a string.
- `tag-regex` (optional):
Matches the toplevel-tag of the window with a regular expression.
The value of this field should be a string.
<a name="types-WindowMatchExactly"></a>
### `WindowMatchExactly`

View file

@ -3511,6 +3511,14 @@ WindowMatch:
This is true for one iteration of the compositor's main loop immediately after the
window has been mapped.
tag:
kind: string
required: false
description: Matches the toplevel-tag of the window verbatim.
tag-regex:
kind: string
required: false
description: Matches the toplevel-tag of the window with a regular expression.
WindowMatchExactly: