diff options
author | Linus Groh <mail@linusgroh.de> | 2021-02-01 19:14:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-02 16:53:11 +0100 |
commit | 7b50d3cda4ded2d371fb18a0dc6a8067c0cb87d6 (patch) | |
tree | 311e4046f1b2fb1bd2b3354aa42721f4ca3d5466 /Base/usr/share | |
parent | ee41d6e1540ea9e4828282c1ab82e849eef4915c (diff) | |
download | serenity-7b50d3cda4ded2d371fb18a0dc6a8067c0cb87d6.zip |
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
Diffstat (limited to 'Base/usr/share')
-rw-r--r-- | Base/usr/share/man/man1/keymap.md | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Base/usr/share/man/man1/keymap.md b/Base/usr/share/man/man1/keymap.md index 7f9c04f14b..7f139021be 100644 --- a/Base/usr/share/man/man1/keymap.md +++ b/Base/usr/share/man/man1/keymap.md @@ -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 ``` |