1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:07:34 +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 ## Synopsis
```**sh ```**sh
# keymap <name|file> # keymap [name|file]
``` ```
## Description ## Description
@ -16,13 +16,19 @@ Loading by name will search for keyboard layout files in `/res/keymaps/*.json`.
## Examples ## Examples
Get name of the currently loaded keymap:
```sh
$ keymap
en-us
```
Load a keyboard layout by name: Load a keyboard layout by name:
```sh ```sh
# keymap en-us $ keymap en-us
``` ```
Load a keyboard layout using a file: Load a keyboard layout using a file:
```sh ```sh
# keymap /res/keymaps/en-us.json $ keymap /res/keymaps/en-us.json
# keymap ./map.json $ keymap ./map.json
``` ```