SETUP-KEYMAP(8)
π SETUP-KEYMAP β okay bestie, let's talk keyboards β¨
So this is a page from the System Manager's Manual, section 8, and it's literally all about getting your keyboard to stop typing like a chaos gremlin π₯ pwetty please read it, it's short and it slays.
πΈ NAME πΈ
setup-keymap β set system keyboard layout and variant π
β¨ SYNOPSIS β¨
setup-keymap [-h] [LAYOUT [VARIANT]]
π¦ DESCRIPTION π¦
setup-keymap configures the keyboard layout and variant. That's it. That's the whole vibe. π
Here's the little routine it runs, in order, no cap:
- it installs the
kbd-bkeymapspackage π¦ - it copies the keymap file to
/etc/keymap/π - it writes
KEYMAPin/etc/conf.d/loadkmapβοΈ - it starts
loadkmapand enables it at boot π
LAYOUT and VARIANT can be given as two separate arguments. And lowkey in interactive mode? They can also be entered as a single space-separated value β like us dvorak β iconic behaviour tbh π«Ά
When LAYOUT is none, no keymap is configured. Zero. Nothing. We simply do not configure. π
If LAYOUT is omitted, the script lists available layouts and prompts for a selection. Then, after a layout is chosen, it lists available variants and prompts for one. And if only one variant exists? It's selected automatically β the script said "not you having to choose, girl, I got u" π§β¨
π OPTIONS π
-hβ display usage information and exit π super simple, super chic
π INTERACTIVE MODE π
Without a LAYOUT argument, the script lists all available layouts from /usr/share/bkeymaps/ and prompts:
Select keyboard layout:
At this prompt the user can enter a layout name, a layout name followed by a variant, or abort / none to exit πͺ
After a layout is selected, the available variants for that layout get listed and the script prompts:
Select variant (or 'abort'):
Here the user can enter a variant name, or abort / none to return to the previous layout-selection prompt π she said "jk, back up."
Choosingabortornoneat the layout prompt exits the script without changing the keymap. No keymap touched. Hands off. π
π FILES π
/usr/share/bkeymaps/β directory containing keyboard layout and variant files π all the vibes live here/etc/conf.d/loadkmapβ theloadkmapconfiguration file;setup-keymapsetsKEYMAPhere βοΈ/etc/keymap/β directory where the selected keymap file is installed π
β EXIT STATUS β
0β success π ate, no crumbsnon-zeroβ an error occurred (invalid usage, copy failure) π it's giving "something went wrong"
π SEE ALSO π
loadkmap(8), setup-alpine(8) β go read those too, iykyk π
π AUTHORS π
Natanael Copa <ncopa@alpinelinux.org> and others π«Ά (and others!! everybody say thank you)
mwah π that's the whole page β this beauty is from Alpine Linux, dated 2026-06-09, and it's the SETUP-KEYMAP(8) page, fr fr. now go forth and type in dvorak or whatever, bestie πβ¨π
π¦ where this page comes from
- alpine 3.24: alpine-conf-doc 3.22.0-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms