1
0
Fork 0
forked from wry/wry

config: add initial-tile-state window rule

This commit is contained in:
Julian Orth 2025-05-07 15:59:42 +02:00
parent b1ca98b488
commit 5e3465d861
16 changed files with 258 additions and 26 deletions

View file

@ -1664,6 +1664,14 @@
},
"required": []
},
"TileState": {
"type": "string",
"description": "Whether a window is tiled or floating.",
"enum": [
"tiled",
"floating"
]
},
"TransferFunction": {
"type": "string",
"description": "The transfer function of an output.\n",
@ -1908,6 +1916,10 @@
"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"
},
"initial-tile-state": {
"description": "Specifies if the window is initially mapped tiled or floating.",
"$ref": "#/$defs/TileState"
}
},
"required": []

View file

@ -3710,6 +3710,25 @@ The table has the following fields:
The value of this field should be a string.
<a name="types-TileState"></a>
### `TileState`
Whether a window is tiled or floating.
Values of this type should be strings.
The string should have one of the following values:
- `tiled`:
The window is tiled.
- `floating`:
The window is floating.
<a name="types-TransferFunction"></a>
### `TransferFunction`
@ -4212,6 +4231,12 @@ The table has the following fields:
The value of this field should be a boolean.
- `initial-tile-state` (optional):
Specifies if the window is initially mapped tiled or floating.
The value of this field should be a [TileState](#types-TileState).
<a name="types-WindowTypeMask"></a>
### `WindowTypeMask`

View file

@ -3376,6 +3376,10 @@ WindowRule:
If a window matches any rule for which this is false, the window will not be
automatically focused.
initial-tile-state:
ref: TileState
required: false
description: Specifies if the window is initially mapped tiled or floating.
WindowMatch:
@ -3602,3 +3606,13 @@ WindowTypeMask:
description: An array of masks that are OR'd.
items:
ref: WindowTypeMask
TileState:
description: Whether a window is tiled or floating.
kind: string
values:
- value: tiled
description: The window is tiled.
- value: floating
description: The window is floating.