Base: Update keymap man page to include new functionality

Adding examples on how to use keymap tool to set a list of keymaps
This commit is contained in:
Timur Sultanov 2022-01-22 12:04:30 +03:00 committed by Andreas Kling
parent c7bd47c87c
commit 6edb34aa56
Notes: sideshowbarker 2024-07-18 04:38:32 +09:00

View file

@ -5,30 +5,29 @@ keymap - load a keyboard layout
## Synopsis
```**sh
$ keymap [name|file]
$ keymap [--set-keymap keymap] [--set-keymaps keymaps]
```
## Description
The `keymap` utility can be used to set a keyboard layout using the given name or file.
The `keymap` utility can be used to configure the list of selected keyboard layout and switch between them.
Loading by name will search for keyboard layout files in `/res/keymaps/*.json`.
Layouts loaded from `/res/keymaps/*.json`.
## Examples
Get name of the currently loaded keymap:
Get name of the currently set keymap:
```sh
$ keymap
en-us
```
Load a keyboard layout by name:
Select a new list of keymaps:
```sh
$ keymap en-us
$ keymap --set-keymaps en-us,ru
```
Load a keyboard layout using a file:
Set a keymap:
```sh
$ keymap /res/keymaps/en-us.json
$ keymap ./map.json
$ keymap --set-keymap ru
```