1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

Base: Update keymap(1) manpage

- Keymap name/file is now optional
- No root shell required (/bin/keymap is setuid root)
- Add example for getting the current keymap name
This commit is contained in:
Linus Groh 2021-02-01 19:14:42 +01:00 committed by Andreas Kling
parent ee41d6e154
commit 7b50d3cda4

View file

@ -5,7 +5,7 @@ keymap - load a keyboard layout
## Synopsis
```**sh
# keymap <name|file>
# keymap [name|file]
```
## Description
@ -16,13 +16,19 @@ Loading by name will search for keyboard layout files in `/res/keymaps/*.json`.
## Examples
Get name of the currently loaded keymap:
```sh
$ keymap
en-us
```
Load a keyboard layout by name:
```sh
# keymap en-us
$ keymap en-us
```
Load a keyboard layout using a file:
```sh
# keymap /res/keymaps/en-us.json
# keymap ./map.json
$ keymap /res/keymaps/en-us.json
$ keymap ./map.json
```