1
0
Fork 0
forked from wry/wry

config: workspace display order

This commit is contained in:
Stipe Kotarac 2025-07-26 10:52:46 +02:00 committed by Julian Orth
parent 40328d7c4a
commit e570152dde
17 changed files with 237 additions and 11 deletions

View file

@ -991,6 +991,10 @@
"description": "",
"$ref": "#/$defs/InputMode"
}
},
"workspace-display-order": {
"description": "Configures the order of workspaces displayed.\n\nThe default is `manual`.\n\n- Example:\n\n ```toml\n workspace-display-order = \"sorted\"\n ```\n",
"$ref": "#/$defs/WorkspaceDisplayOrder"
}
},
"required": []
@ -2179,6 +2183,14 @@
}
]
},
"WorkspaceDisplayOrder": {
"type": "string",
"description": "The order of workspaces displayed.\n",
"enum": [
"manual",
"sorted"
]
},
"XScalingMode": {
"type": "string",
"description": "The scaling mode of X windows.\n\n- Example:\n\n ```toml\n xwayland = { scaling-mode = \"downscaled\" }\n ```\n",

View file

@ -1976,6 +1976,20 @@ The table has the following fields:
The value of this field should be a table whose values are [InputModes](#types-InputMode).
- `workspace-display-order` (optional):
Configures the order of workspaces displayed.
The default is `manual`.
- Example:
```toml
workspace-display-order = "sorted"
```
The value of this field should be a [WorkspaceDisplayOrder](#types-WorkspaceDisplayOrder).
<a name="types-Connector"></a>
### `Connector`
@ -4761,6 +4775,25 @@ An array of masks that are OR'd.
Each element of this array should be a [WindowTypeMask](#types-WindowTypeMask).
<a name="types-WorkspaceDisplayOrder"></a>
### `WorkspaceDisplayOrder`
The order of workspaces displayed.
Values of this type should be strings.
The string should have one of the following values:
- `manual`:
Workspaces are not sorted and can be manually dragged.
- `sorted`:
Workspaces are sorted alphabetically and cannot be manually dragged.
<a name="types-XScalingMode"></a>
### `XScalingMode`

View file

@ -2122,7 +2122,6 @@ Theme:
description: The name of the font to use.
Config:
kind: table
description: |
@ -2802,8 +2801,21 @@ Config:
q = "focus-prev"
e = "focus-next"
```
Modes can be activated with the `push-mode` and `latch-mode` actions.
workspace-display-order:
ref: WorkspaceDisplayOrder
required: false
description: |
Configures the order of workspaces displayed.
The default is `manual`.
- Example:
```toml
workspace-display-order = "sorted"
```
Idle:
@ -4006,3 +4018,14 @@ InputMode:
The complex shortcuts of this mode.
See the same field in the top-level `Config` object for a description.
WorkspaceDisplayOrder:
kind: string
description: |
The order of workspaces displayed.
values:
- value: manual
description: Workspaces are not sorted and can be manually dragged.
- value: sorted
description: Workspaces are sorted alphabetically and cannot be manually dragged.