mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
Documentation: Update sync-local.sh keyboard layout example
This commit is contained in:
parent
e4db18e644
commit
5eb062d8d3
Notes:
sideshowbarker
2024-07-18 18:26:13 +09:00
1 changed files with 5 additions and 8 deletions
|
@ -227,20 +227,17 @@ To add a package from the ports collection to Serenity, for example curl, go int
|
|||
|
||||
## Customize disk image
|
||||
|
||||
To add, modify or remove files of the disk image's file system, e.g. to change the default keyboard layout, you can create a file with the exact name `sync-local.sh` in the project root (the same directory as `.clang-format`), with content like this:
|
||||
To add, modify or remove files of the disk image's file system, e.g. to change the default keyboard layout, you can create a shell script with the name `sync-local.sh` in the project root, with content like this:
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cat << 'EOF' >> mnt/etc/SystemServer.ini
|
||||
|
||||
[keymap]
|
||||
Executable=/bin/keymap
|
||||
Arguments=de
|
||||
User=anon
|
||||
cat << 'EOF' > mnt/etc/Keyboard.ini
|
||||
[Mapping]
|
||||
Keymap=de
|
||||
EOF
|
||||
```
|
||||
|
||||
This will configure your keymap to German (`de`) instead of US English. See [`Base/res/keymaps/`](../Base/res/keymaps/) for a full list.
|
||||
This will configure your keymap to German (`de`) instead of US English. See [`Base/res/keymaps/`](../Base/res/keymaps/) for a full list. Note that the `keymap` program itself will also modify the `/etc/Keyboard.ini` config file, but this way the change will persist across image rebuilds.
|
||||
|
|
Loading…
Add table
Reference in a new issue