config: allow configuring the simple IM
This commit is contained in:
parent
58b9830aaa
commit
2f22a61710
15 changed files with 367 additions and 7 deletions
|
|
@ -361,7 +361,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"description": "Sets the log level of the compositor..\n\n- Example:\n\n ```toml\n [shortcuts]\n alt-j = { type = \"set-log-level\", level = \"debug\" }\n ```\n",
|
||||
"description": "Sets the log level of the compositor.\n\n- Example:\n\n ```toml\n [shortcuts]\n alt-j = { type = \"set-log-level\", level = \"debug\" }\n ```\n",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
|
|
@ -1049,6 +1049,10 @@
|
|||
"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"
|
||||
},
|
||||
"simple-im": {
|
||||
"description": "Configures the simple, XCompose based input method.\n\nBy default, the input method is enabled. \n\nEven if the input method is enabled, it will only be used if there is no\nrunning external IM.\n\n- Example:\n\n ```toml\n [simple-im]\n enabled = false\n ```\n",
|
||||
"$ref": "#/$defs/SimpleIm"
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
|
|
@ -1835,9 +1839,24 @@
|
|||
"create-mark",
|
||||
"jump-to-mark",
|
||||
"clear-modes",
|
||||
"pop-mode"
|
||||
"pop-mode",
|
||||
"enable-simple-im",
|
||||
"disable-simple-im",
|
||||
"toggle-simple-im-enabled",
|
||||
"reload-simple-im"
|
||||
]
|
||||
},
|
||||
"SimpleIm": {
|
||||
"description": "Describes the settings of the simple, XCompose based input method.\n\n- Example:\n\n ```toml\n [simple-im]\n enabled = false\n ```\n",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the input method is enabled.\n\nEven if the input method is enabled, it will only be used if there is no\nrunning external IM.\n"
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
},
|
||||
"Status": {
|
||||
"description": "The configuration of a status program whose output will be shown in the bar.\n\n- Example:\n\n ```toml\n [status]\n format = \"i3bar\"\n exec = \"i3status\"\n ```\n",
|
||||
"type": "object",
|
||||
|
|
|
|||
|
|
@ -538,7 +538,7 @@ This table is a tagged union. The variant is determined by the `type` field. It
|
|||
|
||||
- `set-log-level`:
|
||||
|
||||
Sets the log level of the compositor..
|
||||
Sets the log level of the compositor.
|
||||
|
||||
- Example:
|
||||
|
||||
|
|
@ -2145,6 +2145,24 @@ The table has the following fields:
|
|||
|
||||
The value of this field should be a [WorkspaceDisplayOrder](#types-WorkspaceDisplayOrder).
|
||||
|
||||
- `simple-im` (optional):
|
||||
|
||||
Configures the simple, XCompose based input method.
|
||||
|
||||
By default, the input method is enabled.
|
||||
|
||||
Even if the input method is enabled, it will only be used if there is no
|
||||
running external IM.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[simple-im]
|
||||
enabled = false
|
||||
```
|
||||
|
||||
The value of this field should be a [SimpleIm](#types-SimpleIm).
|
||||
|
||||
|
||||
<a name="types-Connector"></a>
|
||||
### `Connector`
|
||||
|
|
@ -4177,6 +4195,53 @@ The string should have one of the following values:
|
|||
|
||||
Pops the topmost mode from the input-mode stack.
|
||||
|
||||
- `enable-simple-im`:
|
||||
|
||||
Enables the simple, XCompose based input method.
|
||||
|
||||
Even if the input method is enabled, it will only be used if there is no
|
||||
running external IM.
|
||||
|
||||
- `disable-simple-im`:
|
||||
|
||||
Disables the simple, XCompose based input method.
|
||||
|
||||
- `toggle-simple-im-enabled`:
|
||||
|
||||
Toggles whether the simple, XCompose based input method is enabled.
|
||||
|
||||
- `reload-simple-im`:
|
||||
|
||||
Reloads the simple, XCompose based input method.
|
||||
|
||||
This is useful if you change the XCompose files after starting the compositor.
|
||||
|
||||
|
||||
|
||||
<a name="types-SimpleIm"></a>
|
||||
### `SimpleIm`
|
||||
|
||||
Describes the settings of the simple, XCompose based input method.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[simple-im]
|
||||
enabled = false
|
||||
```
|
||||
|
||||
Values of this type should be tables.
|
||||
|
||||
The table has the following fields:
|
||||
|
||||
- `enabled` (optional):
|
||||
|
||||
Whether the input method is enabled.
|
||||
|
||||
Even if the input method is enabled, it will only be used if there is no
|
||||
running external IM.
|
||||
|
||||
The value of this field should be a boolean.
|
||||
|
||||
|
||||
<a name="types-Status"></a>
|
||||
|
|
|
|||
|
|
@ -497,7 +497,7 @@ Action:
|
|||
ref: Theme
|
||||
set-log-level:
|
||||
description: |
|
||||
Sets the log level of the compositor..
|
||||
Sets the log level of the compositor.
|
||||
|
||||
- Example:
|
||||
|
||||
|
|
@ -1033,6 +1033,23 @@ SimpleActionName:
|
|||
description: Disables all previously set input modes, clearing the input-mode stack.
|
||||
- value: pop-mode
|
||||
description: Pops the topmost mode from the input-mode stack.
|
||||
- value: enable-simple-im
|
||||
description: |
|
||||
Enables the simple, XCompose based input method.
|
||||
|
||||
Even if the input method is enabled, it will only be used if there is no
|
||||
running external IM.
|
||||
- value: disable-simple-im
|
||||
description: |
|
||||
Disables the simple, XCompose based input method.
|
||||
- value: toggle-simple-im-enabled
|
||||
description: |
|
||||
Toggles whether the simple, XCompose based input method is enabled.
|
||||
- value: reload-simple-im
|
||||
description: |
|
||||
Reloads the simple, XCompose based input method.
|
||||
|
||||
This is useful if you change the XCompose files after starting the compositor.
|
||||
|
||||
|
||||
Color:
|
||||
|
|
@ -2881,6 +2898,23 @@ Config:
|
|||
```toml
|
||||
workspace-display-order = "sorted"
|
||||
```
|
||||
simple-im:
|
||||
ref: SimpleIm
|
||||
required: false
|
||||
description: |
|
||||
Configures the simple, XCompose based input method.
|
||||
|
||||
By default, the input method is enabled.
|
||||
|
||||
Even if the input method is enabled, it will only be used if there is no
|
||||
running external IM.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[simple-im]
|
||||
enabled = false
|
||||
```
|
||||
|
||||
|
||||
Idle:
|
||||
|
|
@ -4195,3 +4229,25 @@ ClientCapabilities:
|
|||
description: An array of masks that are OR'd.
|
||||
items:
|
||||
ref: ClientCapabilities
|
||||
|
||||
|
||||
SimpleIm:
|
||||
kind: table
|
||||
description: |
|
||||
Describes the settings of the simple, XCompose based input method.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[simple-im]
|
||||
enabled = false
|
||||
```
|
||||
fields:
|
||||
enabled:
|
||||
kind: boolean
|
||||
required: false
|
||||
description: |
|
||||
Whether the input method is enabled.
|
||||
|
||||
Even if the input method is enabled, it will only be used if there is no
|
||||
running external IM.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue