XKBCLI-HOW-TO-TYPE(1)

πŸ“¦
version 1.13.2 Β· 6 versions
, in alpine 3.23, alpine 3.24, arch rolling, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ xkbcli-how-to-type β€” the "how do i even TYPE this" oracle ✨

okay bestie, welcome to xkbcli-how-to-type, part of the General Commands Manual squad πŸŽ€ she's literally the friend who tells you exactly which keys to smash to get a character. no cap.


🌸 NAME 🌸

xkbcli-how-to-type β€” query how to type a given Unicode code point or keysym πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

xkbcli-how-to-type [options] character/code point/keysym

that's it, that's the vibe. one lil argument and a pile of options 🫢


🌈 DESCRIPTION 🌈

xkbcli-how-to-type prints the key combinations (keycode + modifiers) in the keymap's layouts which would produce the given Unicode code point or keysym. she's showing you the recipe, not just the dish ✨

so, code point/keysym can be any of these three things:

  • a single character (and heads up, this requires a terminal which uses UTF-8 character encoding β€” if your terminal is stuck in the past, this one ain't happening 😭)
  • a Unicode code point, interpreted as hexadecimal if prefixed with 0x or U+, else as decimal
  • a keysym, if either of the previous interpretations failed or if --keysym is used. the parameter is then either a keysym name or a numeric value (hexadecimal if prefixed with 0x, else decimal). and note that values 0 – 9 are special: they are both names and numeric values. the default interpretation is names; use the hexadecimal form 0x0 – 0x9 in order to interpret as numeric values. iykyk πŸ”₯

πŸ“ EXAMPLES πŸ“

xkbcli-how-to-type --layout us 97
xkbcli-how-to-type --layout us 0x61
xkbcli-how-to-type --layout us U+0061
xkbcli-how-to-type --layout us a
Print the key combinations that produce the letter β€œa” (decimal code point: 97, hexadecimal code point: 61) in the default us layout. πŸ’–
xkbcli-how-to-type --layout us --keysym 97
xkbcli-how-to-type --layout us --keysym 0x61
xkbcli-how-to-type --layout us --keysym a
Print the key combinations that produce the keysym β€œa” (decimal code: 97, hexadecimal code: 61) in the default us layout. πŸŽ€

like. she literally ate that. same letter, two totally different readings, depending on whether you meant a code point or a keysym 🧚


πŸ’… OPTIONS πŸ’…

  • --keysym β€” Treat the argument as only as a keysym.
  • --disable-compose β€” Disable Compose support. bye compose, we're going raw 😌
  • --format keymap_format β€” Specify the keymap format (numeric or label, e.g. β€œv1”).
  • --keymap [= PATH] β€” Load the XKB keymap from a file, ignore RMLVO options. If PATH is empty or β€œ-”, read the stdin. yes bestie, she'll slurp it straight from stdin 🫢
  • --rules rules β€” The XKB ruleset.
  • --model model β€” The XKB model.
  • --layout layout β€” The XKB layout.
  • --variant variant β€” The XKB layout variant.
  • --options options β€” The XKB options.
  • --enable-environment-names β€” Allow to set the default RMLVO values via the following environment variables:
    • XKB_DEFAULT_RULES
    • XKB_DEFAULT_MODEL
    • XKB_DEFAULT_LAYOUT
    • XKB_DEFAULT_VARIANT
    • XKB_DEFAULT_OPTIONS
Note that this option may affect the default values of the previous options. ⚠️ like, she's not just reading the env, she's letting the env change her defaults. plot twist.
  • --verbose β€” Enable verbose debugging output. she starts oversharing πŸ’€
  • --help β€” Print a help message and exit.

πŸ‘‘ SEE ALSO πŸ‘‘

go read the docs bestie, they're iconic ⭐


Debian Β· September 11, 2024 β€” that's the source, version and date, mwah πŸ’‹ stay slay, go type something weird πŸŒˆβœ¨πŸ¦‹

πŸ“¦ where this page comes from