GEN_KEYMAP(1)

πŸ’– GEN_KEYMAP(1) β€” bestie, it's the gen_keymap era πŸ’–

okay so picture this: a lil program called gen_keymap, living its best life in the LOCAL section of the manual, and it's about to make keyboard maps make sense. no cap. it's a whole vibe. let's get into it πŸ¦‹


✨ NAME ✨

gen_keymap β€” generate a keyboard map decision tree 🌳


🌸 SYNOPSIS 🌸

gen_keymap list ...

literally that's it. give it a list, it does the thing πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so gen_keymap takes a whole set of keyboard maps and generates a decision tree out of them, and the whole point of that tree is to help a user figure out which keyboard map is theirs πŸ‘‘

here's the vibe: the program that's using the decision tree typically asks the user to press some keys 🫢. at every single step, it looks at the keycode that came back, and it uses that to prune the list of possible keyboard maps β€” chop chop chop β€” until there is only one left. one map. the main character. periodt. ✨


πŸ’– OPTIONS πŸ’–

  • --version β€” show the program's version number and dip. bye bestie πŸ‘‹
  • -?, --help β€” show the help text. the classic. iconic. πŸŽ€
  • -v, --verbose β€” be more verbose. more words, more lore, more everything πŸ’¬
  • -mMINLEN, --minlen=MINLEN β€” keymaps that are too short get skipped entirely (default: 30 entries). tiny maps, we don't know her πŸ™ˆ
  • -g, --graph β€” generate a .dot file that is hopefully nice-looking. hopefully!! fingers crossed fr fr 🌈
  • --maps β€” print out the keymaps that are about to be processed. a little sneak peek πŸ‘€
  • -i, --installer β€” input files are in d-i map form. noted πŸ“
  • -IDIRS, --inc=DIRS, --include=DIRS β€” add a directory to the search path. more places to look, more chances to find her πŸ”
  • -oFILENAME, --output=FILENAME β€” set the output file (default: stdout). where the magic lands πŸ’«
  • -fFILTER, --filter=FILTER β€” include only the branches leading to these keymaps. selective. we love that πŸ’…
  • -uUSEONLY, --useonly=USEONLY β€” start generating the tree based only on these keymaps. 🧚
okay so here's the tea on --filter vs --useonly, because they lowkey sound the same but they are NOT: --filter generates the whole tree and then prunes it, while --useonly only generates a reduced tree to begin with. this may have implications for performance on large trees. so like, pick accordingly, bestie. performance is real 😭
  • -sSKIP, --skip=SKIP β€” keymaps to skip. not today, not ever πŸ’€
  • -t, --test β€” test the generated maps. gotta make sure they ate πŸ”₯
  • --interactive β€” ask the user to choose among indistinguishable keymaps. when two maps are giving the exact same energy and you need a human to break the tie 🀝

πŸ‘‘ AUTHORS πŸ‘‘

gen_keymap was written by Matthias Urlichs <smurf@debian.org>. πŸ’œ

this manual page was written by Colin Watson <cjwatson@ubuntu.com>. 🫢


and that's the whole page, bestie!! thanks for reading, you're doing amazing sweetie πŸŒΈπŸ’–

cute lil sign-off: this one came from Ubuntu, dated September 5, 2006, and it's filed under GEN_KEYMAP(1). historic. legendary. we stan a 2006 classic βœ¨πŸ‘‘