mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 11:00:29 +00:00
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:
parent
c7bd47c87c
commit
6edb34aa56
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/TSultanov Commit: https://github.com/SerenityOS/serenity/commit/6edb34aa560 Pull-request: https://github.com/SerenityOS/serenity/pull/12010
1 changed files with 8 additions and 9 deletions
|
@ -5,30 +5,29 @@ keymap - load a keyboard layout
|
||||||
## Synopsis
|
## Synopsis
|
||||||
|
|
||||||
```**sh
|
```**sh
|
||||||
$ keymap [name|file]
|
$ keymap [--set-keymap keymap] [--set-keymaps keymaps]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Description
|
## 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
|
## Examples
|
||||||
|
|
||||||
Get name of the currently loaded keymap:
|
Get name of the currently set keymap:
|
||||||
```sh
|
```sh
|
||||||
$ keymap
|
$ keymap
|
||||||
en-us
|
en-us
|
||||||
```
|
```
|
||||||
|
|
||||||
Load a keyboard layout by name:
|
Select a new list of keymaps:
|
||||||
```sh
|
```sh
|
||||||
$ keymap en-us
|
$ keymap --set-keymaps en-us,ru
|
||||||
```
|
```
|
||||||
|
|
||||||
Load a keyboard layout using a file:
|
Set a keymap:
|
||||||
```sh
|
```sh
|
||||||
$ keymap /res/keymaps/en-us.json
|
$ keymap --set-keymap ru
|
||||||
$ keymap ./map.json
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue