1
0
Fork 0
forked from wry/wry

config: add comm client criteria

This commit is contained in:
Julian Orth 2025-05-03 13:03:48 +02:00
parent bdabb7bbdd
commit cc734a135c
12 changed files with 73 additions and 2 deletions

View file

@ -571,6 +571,14 @@
"is-xwayland": {
"type": "boolean",
"description": "Matches if the client is/isn't Xwayland."
},
"comm": {
"type": "string",
"description": "Matches the `/proc/pid/comm` of the client verbatim."
},
"comm-regex": {
"type": "string",
"description": "Matches the `/proc/pid/comm` of the client with a regular expression."
}
},
"required": []

View file

@ -893,6 +893,18 @@ The table has the following fields:
The value of this field should be a boolean.
- `comm` (optional):
Matches the `/proc/pid/comm` of the client verbatim.
The value of this field should be a string.
- `comm-regex` (optional):
Matches the `/proc/pid/comm` of the client with a regular expression.
The value of this field should be a string.
<a name="types-ClientMatchExactly"></a>
### `ClientMatchExactly`

View file

@ -3251,6 +3251,14 @@ ClientMatch:
kind: boolean
required: false
description: Matches if the client is/isn't Xwayland.
comm:
kind: string
required: false
description: Matches the `/proc/pid/comm` of the client verbatim.
comm-regex:
kind: string
required: false
description: Matches the `/proc/pid/comm` of the client with a regular expression.
ClientMatchExactly: