1
0
Fork 0
forked from wry/wry

config: add WM_CLASS window criteria

This commit is contained in:
Julian Orth 2025-05-03 13:37:23 +02:00
parent 6d3d4dcabb
commit faa0b27ef8
15 changed files with 159 additions and 10 deletions

View file

@ -1827,6 +1827,22 @@
"tag-regex": {
"type": "string",
"description": "Matches the toplevel-tag of the window with a regular expression."
},
"x-class": {
"type": "string",
"description": "Matches the X class of the window verbatim."
},
"x-class-regex": {
"type": "string",
"description": "Matches the X class of the window with a regular expression."
},
"x-instance": {
"type": "string",
"description": "Matches the X instance of the window verbatim."
},
"x-instance-regex": {
"type": "string",
"description": "Matches the X instance of the window with a regular expression."
}
},
"required": []

View file

@ -4085,6 +4085,30 @@ The table has the following fields:
The value of this field should be a string.
- `x-class` (optional):
Matches the X class of the window verbatim.
The value of this field should be a string.
- `x-class-regex` (optional):
Matches the X class of the window with a regular expression.
The value of this field should be a string.
- `x-instance` (optional):
Matches the X instance of the window verbatim.
The value of this field should be a string.
- `x-instance-regex` (optional):
Matches the X instance of the window with a regular expression.
The value of this field should be a string.
<a name="types-WindowMatchExactly"></a>
### `WindowMatchExactly`

View file

@ -3519,6 +3519,22 @@ WindowMatch:
kind: string
required: false
description: Matches the toplevel-tag of the window with a regular expression.
x-class:
kind: string
required: false
description: Matches the X class of the window verbatim.
x-class-regex:
kind: string
required: false
description: Matches the X class of the window with a regular expression.
x-instance:
kind: string
required: false
description: Matches the X instance of the window verbatim.
x-instance-regex:
kind: string
required: false
description: Matches the X instance of the window with a regular expression.
WindowMatchExactly: