config: make ui dragging configurable
This commit is contained in:
parent
1dd20fb87b
commit
d8ee1ac19c
19 changed files with 255 additions and 12 deletions
|
|
@ -589,6 +589,10 @@
|
|||
"libei": {
|
||||
"description": "Configures the libei settings.\n\n- Example:\n\n ```toml\n libei.enable-socket = true\n ```\n",
|
||||
"$ref": "#/$defs/Libei"
|
||||
},
|
||||
"ui-drag": {
|
||||
"description": "Configures the ui-drag settings.\n\n- Example:\n\n ```toml\n ui-drag = { enabled = false, threshold = 20 }\n ```\n",
|
||||
"$ref": "#/$defs/UiDrag"
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
|
|
@ -1342,6 +1346,21 @@
|
|||
"flip-rotate-270"
|
||||
]
|
||||
},
|
||||
"UiDrag": {
|
||||
"description": "Describes ui-drag settings.\n\n- Example:\n\n ```toml\n ui-drag = { enabled = false, threshold = 20 }\n ```\n",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Enables or disables dragging of tiles and workspaces.\n\nThe default is `true`.\n"
|
||||
},
|
||||
"threshold": {
|
||||
"type": "integer",
|
||||
"description": "Sets the distance at which ui dragging starts.\n\nThe default is `10`.\n"
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
},
|
||||
"Vrr": {
|
||||
"description": "Describes VRR settings.\n\n- Example:\n\n ```toml\n vrr = { mode = \"always\", cursor-hz = 90 }\n ```\n",
|
||||
"type": "object",
|
||||
|
|
|
|||
|
|
@ -1154,6 +1154,18 @@ The table has the following fields:
|
|||
|
||||
The value of this field should be a [Libei](#types-Libei).
|
||||
|
||||
- `ui-drag` (optional):
|
||||
|
||||
Configures the ui-drag settings.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
ui-drag = { enabled = false, threshold = 20 }
|
||||
```
|
||||
|
||||
The value of this field should be a [UiDrag](#types-UiDrag).
|
||||
|
||||
|
||||
<a name="types-Connector"></a>
|
||||
### `Connector`
|
||||
|
|
@ -2981,6 +2993,40 @@ The string should have one of the following values:
|
|||
|
||||
|
||||
|
||||
<a name="types-UiDrag"></a>
|
||||
### `UiDrag`
|
||||
|
||||
Describes ui-drag settings.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
ui-drag = { enabled = false, threshold = 20 }
|
||||
```
|
||||
|
||||
Values of this type should be tables.
|
||||
|
||||
The table has the following fields:
|
||||
|
||||
- `enabled` (optional):
|
||||
|
||||
Enables or disables dragging of tiles and workspaces.
|
||||
|
||||
The default is `true`.
|
||||
|
||||
The value of this field should be a boolean.
|
||||
|
||||
- `threshold` (optional):
|
||||
|
||||
Sets the distance at which ui dragging starts.
|
||||
|
||||
The default is `10`.
|
||||
|
||||
The value of this field should be a number.
|
||||
|
||||
The numbers should be integers.
|
||||
|
||||
|
||||
<a name="types-Vrr"></a>
|
||||
### `Vrr`
|
||||
|
||||
|
|
|
|||
|
|
@ -2264,6 +2264,17 @@ Config:
|
|||
```toml
|
||||
libei.enable-socket = true
|
||||
```
|
||||
ui-drag:
|
||||
ref: UiDrag
|
||||
required: false
|
||||
description: |
|
||||
Configures the ui-drag settings.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
ui-drag = { enabled = false, threshold = 20 }
|
||||
```
|
||||
|
||||
|
||||
Idle:
|
||||
|
|
@ -2588,3 +2599,31 @@ Format:
|
|||
description: ""
|
||||
- value: xbgr16161616f
|
||||
description: ""
|
||||
|
||||
|
||||
UiDrag:
|
||||
kind: table
|
||||
description: |
|
||||
Describes ui-drag settings.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
ui-drag = { enabled = false, threshold = 20 }
|
||||
```
|
||||
fields:
|
||||
enabled:
|
||||
kind: boolean
|
||||
required: false
|
||||
description: |
|
||||
Enables or disables dragging of tiles and workspaces.
|
||||
|
||||
The default is `true`.
|
||||
threshold:
|
||||
kind: number
|
||||
integer_only: true
|
||||
required: false
|
||||
description: |
|
||||
Sets the distance at which ui dragging starts.
|
||||
|
||||
The default is `10`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue