toml-config: allow specifying keymaps via RMLVO
This commit is contained in:
parent
6e400655c6
commit
d911de6007
4 changed files with 272 additions and 31 deletions
|
|
@ -3557,7 +3557,7 @@ Values of this type should have one of the following forms:
|
|||
|
||||
Defines a keymap by its XKB representation.
|
||||
|
||||
- Example:
|
||||
- Example 1:
|
||||
|
||||
```toml
|
||||
keymap = """
|
||||
|
|
@ -3570,6 +3570,16 @@ Defines a keymap by its XKB representation.
|
|||
"""
|
||||
```
|
||||
|
||||
- Example 2:
|
||||
|
||||
```toml
|
||||
keymap.rmlvo = {
|
||||
layout = "us,de",
|
||||
variants = "dvorak",
|
||||
options = "grp:ctrl_space_toggle",
|
||||
}
|
||||
```
|
||||
|
||||
#### A table
|
||||
|
||||
Defines or references a keymap.
|
||||
|
|
@ -3602,8 +3612,8 @@ The table has the following fields:
|
|||
|
||||
Defines a keymap by its XKB representation.
|
||||
|
||||
For each keymap defined in the top-level `keymaps` array, exactly one of `map`
|
||||
and `path` has to be defined.
|
||||
For each keymap defined in the top-level `keymaps` array, exactly one of
|
||||
`map`, `path`, and `rmlvo` has to be defined.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
|
|
@ -3614,11 +3624,20 @@ The table has the following fields:
|
|||
If the path is relative, it will be interpreted relative to the Jay config
|
||||
directory.
|
||||
|
||||
For each keymap defined in the top-level `keymaps` array, exactly one of `map`
|
||||
and `path` has to be defined.
|
||||
For each keymap defined in the top-level `keymaps` array, exactly one of
|
||||
`map`, `path`, and `rmlvo` has to be defined.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `rmlvo` (optional):
|
||||
|
||||
Creates a keymap from RMLVO names.
|
||||
|
||||
For each keymap defined in the top-level `keymaps` array, exactly one of
|
||||
`map`, `path`, and `rmlvo` has to be defined.
|
||||
|
||||
The value of this field should be a [Rmlvo](#types-Rmlvo).
|
||||
|
||||
|
||||
<a name="types-Libei"></a>
|
||||
### `Libei`
|
||||
|
|
@ -4099,6 +4118,62 @@ The table has the following fields:
|
|||
The numbers should be integers.
|
||||
|
||||
|
||||
<a name="types-Rmlvo"></a>
|
||||
### `Rmlvo`
|
||||
|
||||
An RMLVO keymap definition.
|
||||
|
||||
If a parameter is not given, a value from the environment or a default is used:
|
||||
|
||||
| name | default |
|
||||
| ---------------------- | ---------------------- |
|
||||
| `XKB_DEFAULT_RULES` | `evdev` |
|
||||
| `XKB_DEFAULT_MODEL` | `pc105` |
|
||||
| `XKB_DEFAULT_LAYOUT` | `us` |
|
||||
| `XKB_DEFAULT_VARIANTS` | |
|
||||
| `XKB_DEFAULT_OPTIONS` | |
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
keymap.rmlvo = { layout = "us,de", variants = "dvorak" }
|
||||
```
|
||||
|
||||
Values of this type should be tables.
|
||||
|
||||
The table has the following fields:
|
||||
|
||||
- `rules` (optional):
|
||||
|
||||
The name of the rules file.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `model` (optional):
|
||||
|
||||
The name of the device model.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `layout` (optional):
|
||||
|
||||
A comma-separated list of layouts.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `variants` (optional):
|
||||
|
||||
A comma-separated list of variants.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `options` (optional):
|
||||
|
||||
A comma-separated list of options.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
|
||||
<a name="types-SimpleActionName"></a>
|
||||
### `SimpleActionName`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue