Documentation: Update sync-local.sh keyboard layout example

This commit is contained in:
Linus Groh 2021-05-09 15:31:52 +01:00
parent e4db18e644
commit 5eb062d8d3
Notes: sideshowbarker 2024-07-18 18:26:13 +09:00

View file

@ -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.