mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +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
|
||||
|
||||
```**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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue