config: add auto-focus window rule
This commit is contained in:
parent
51e752992f
commit
b1ca98b488
12 changed files with 114 additions and 10 deletions
|
|
@ -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": []
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue