mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +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:
parent
ee41d6e154
commit
7b50d3cda4
Notes:
sideshowbarker
2024-07-18 22:38:06 +09:00
Author: https://github.com/linusg
Commit: 7b50d3cda4
Pull-request: https://github.com/SerenityOS/serenity/pull/5215
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue