1
0
Fork 0
forked from wry/wry

config: add auto-focus window rule

This commit is contained in:
Julian Orth 2025-05-03 15:33:02 +02:00
parent 51e752992f
commit b1ca98b488
12 changed files with 114 additions and 10 deletions

View file

@ -1904,6 +1904,10 @@
"latch": {
"description": "An action to execute when a window no longer matches the criteria.",
"$ref": "#/$defs/Action"
},
"auto-focus": {
"type": "boolean",
"description": "Whether newly mapped windows that match this rule get the keyboard focus.\n\nIf a window matches any rule for which this is false, the window will not be\nautomatically focused.\n"
}
},
"required": []

View file

@ -4203,6 +4203,15 @@ The table has the following fields:
The value of this field should be a [Action](#types-Action).
- `auto-focus` (optional):
Whether newly mapped windows that match this rule get the keyboard focus.
If a window matches any rule for which this is false, the window will not be
automatically focused.
The value of this field should be a boolean.
<a name="types-WindowTypeMask"></a>
### `WindowTypeMask`

View file

@ -3368,6 +3368,14 @@ WindowRule:
ref: Action
required: false
description: An action to execute when a window no longer matches the criteria.
auto-focus:
kind: boolean
required: false
description: |
Whether newly mapped windows that match this rule get the keyboard focus.
If a window matches any rule for which this is false, the window will not be
automatically focused.
WindowMatch: