SETUP-KEYMAP(8)

πŸ“¦ version 3.22.0, in alpine 3.24

πŸ’… 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-bkeymaps package πŸ“¦
  • it copies the keymap file to /etc/keymap/ πŸ“
  • it writes KEYMAP in /etc/conf.d/loadkmap ✍️
  • it starts loadkmap and 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."

Choosing abort or none at 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 β€” the loadkmap configuration file; setup-keymap sets KEYMAP here ✍️
  • /etc/keymap/ β€” directory where the selected keymap file is installed 🏠

⭐ EXIT STATUS ⭐

  • 0 β€” success πŸŽ‰ ate, no crumbs
  • non-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