tree: add window-management mode
This commit is contained in:
parent
1a73bbd075
commit
70a8f47288
20 changed files with 644 additions and 9 deletions
|
|
@ -573,6 +573,10 @@
|
|||
"focus-follows-mouse": {
|
||||
"type": "boolean",
|
||||
"description": "Configures whether moving the mouse over a window automatically moves the keyboard\nfocus to that window.\n\nThe default is `true`.\n"
|
||||
},
|
||||
"window-management-key": {
|
||||
"type": "string",
|
||||
"description": "Configures a key that will enable window management mode while pressed.\n\nIn window management mode, floating windows can be moved by pressing the left\nmouse button and all windows can be resize by pressing the right mouse button.\n\n- Example:\n\n ```toml\n window-management-key = \"Alt_L\"\n ```\n"
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
|
|
@ -1110,7 +1114,9 @@
|
|||
"reload-config-to",
|
||||
"consume",
|
||||
"forward",
|
||||
"none"
|
||||
"none",
|
||||
"enable-window-management",
|
||||
"disable-window-management"
|
||||
]
|
||||
},
|
||||
"Status": {
|
||||
|
|
|
|||
|
|
@ -1095,6 +1095,21 @@ The table has the following fields:
|
|||
|
||||
The value of this field should be a boolean.
|
||||
|
||||
- `window-management-key` (optional):
|
||||
|
||||
Configures a key that will enable window management mode while pressed.
|
||||
|
||||
In window management mode, floating windows can be moved by pressing the left
|
||||
mouse button and all windows can be resize by pressing the right mouse button.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
window-management-key = "Alt_L"
|
||||
```
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
|
||||
<a name="types-Connector"></a>
|
||||
### `Connector`
|
||||
|
|
@ -2434,6 +2449,17 @@ The string should have one of the following values:
|
|||
As a special case, if this is the action of a shortcut, the shortcut will be
|
||||
unbound. This can be used in modes to unbind a key.
|
||||
|
||||
- `enable-window-management`:
|
||||
|
||||
Enables window management mode.
|
||||
|
||||
In window management mode, floating windows can be moved by pressing the left
|
||||
mouse button and all windows can be resize by pressing the right mouse button.
|
||||
|
||||
- `disable-window-management`:
|
||||
|
||||
Disables window management mode.
|
||||
|
||||
|
||||
|
||||
<a name="types-Status"></a>
|
||||
|
|
|
|||
|
|
@ -692,6 +692,15 @@ SimpleActionName:
|
|||
|
||||
As a special case, if this is the action of a shortcut, the shortcut will be
|
||||
unbound. This can be used in modes to unbind a key.
|
||||
- value: enable-window-management
|
||||
description: |
|
||||
Enables window management mode.
|
||||
|
||||
In window management mode, floating windows can be moved by pressing the left
|
||||
mouse button and all windows can be resize by pressing the right mouse button.
|
||||
- value: disable-window-management
|
||||
description: |
|
||||
Disables window management mode.
|
||||
|
||||
|
||||
Color:
|
||||
|
|
@ -2127,6 +2136,20 @@ Config:
|
|||
focus to that window.
|
||||
|
||||
The default is `true`.
|
||||
window-management-key:
|
||||
kind: string
|
||||
required: false
|
||||
description: |
|
||||
Configures a key that will enable window management mode while pressed.
|
||||
|
||||
In window management mode, floating windows can be moved by pressing the left
|
||||
mouse button and all windows can be resize by pressing the right mouse button.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
window-management-key = "Alt_L"
|
||||
```
|
||||
|
||||
|
||||
Idle:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue