XKBPRINT(1)

๐Ÿ“ฆ
version 7.7+9build1 ยท 4 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– NAME ๐Ÿ’–

okay so meet xkbprint ๐ŸŽ€, the tool that turns an XKB keyboard description into a printable PostScript picture of your keyboard. It's literally the xkbprint - print an XKB keyboard description energy โœจ


โœจ SYNOPSIS โœจ

xkbprint [options] source [ output_file ]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay bestie, so xkbprint makes a printable or encapsulated PostScript (๐Ÿ‘‘ .eps) description of the XKB keyboard description you point it at with source. The source can be any compiled keymap (.xkm) file that includes a geometry description, or an X display specification. ๐Ÿ’…

If you give it an output_file, xkbprint writes there. If you don't, it just swaps the extension of your source file for .ps or .eps, depending on the format you asked for. ๐ŸŒธ

Now the lowkey tricky part ๐Ÿ™ˆ: if the source is a non-local X display, like :0, xkbprint adds the right prefix to the display spec and swaps the colon for a dash. For a local display, it uses server-n, where n is the display number. Iconic naming, no notes ๐Ÿ“


๐ŸŒˆ OPTIONS ๐ŸŒˆ

  • -?, -help โ€” prints a usage message, so you can check what's up anytime ๐Ÿ’œ
  • -color โ€” prints using the colours from the geometry file. By default you get a black-and-white keyboard, so this is the one for main-character colour ๐ŸŒˆ
  • -dflts โ€” tries to work out default names for any missing components, like keys ๐Ÿงš
  • -diffs โ€” shows symbols only where they're explicitly bound ๐Ÿ”
  • -eps โ€” makes an encapsulated PostScript file ๐Ÿฆ‹
  • -fit โ€” fits the keyboard image on the page. This is the default, so you basically get it for free โœจ
  • -full โ€” prints the keyboard at full size ๐Ÿ‘‘
  • -grid res โ€” prints a grid over the keyboard with res mm resolution ๐Ÿ“
  • -if fontName โ€” dumps an internal PostScript type 1 font to your output file, or to fontName.pfa if you didn't give one. > No keyboard description gets printed when you dump an internal font, so don't be confused when you only get the font ๐Ÿ™ƒ
  • -label type โ€” picks which labels go on the keys. The valid types are none, name, code, and symbols ๐Ÿท๏ธ
  • -lc <locale> โ€” sets the locale that KeySyms get resolved in ๐ŸŒ
  • -level1 โ€” generates level 1 PostScript ๐Ÿ’€
  • -level2 โ€” generates level 2 PostScript ๐Ÿ’…
  • -lg group โ€” prints symbols from keyboard groups, starting at group ๐Ÿซถ
  • -ll level โ€” prints symbols starting from shift level level ๐Ÿ”ฅ
  • -mono โ€” generates a black-and-white image of the keyboard. This is the default, so it's already giving classic โœจ
  • -n num โ€” prints num copies ๐Ÿ–จ๏ธ
  • -nkg num โ€” prints the symbols across num keyboard groups ๐ŸŒธ
  • -npk num โ€” how many keyboard images go on each page. For EPS files, this is the total number of keyboard images to print instead ๐ŸŽ€
  • -o file โ€” writes the output to file ๐Ÿ’Œ
  • -Rdirectory โ€” uses directory as the root directory, so every path name gets read relative to it ๐Ÿ“‚
  • -pict which โ€” controls when pictographs get used instead of keysym names. which can be all, none, or common, and common is the default ๐ŸŽจ
  • -synch โ€” forces synchronization for X requests. Lowkey a bit of a power move ๐Ÿ’ช
  • -version โ€” prints the program version and exits ๐Ÿงพ
  • -w level โ€” sets the warning level. 0 means no warnings and 10 means all of them. Choose your drama ๐Ÿšจ

๐Ÿซถ SEE ALSO ๐Ÿซถ

X(7), xkbcomp(1)


๐Ÿ’œ AUTHOR ๐Ÿ’œ

Erik Fortune, Silicon Graphics ๐Ÿ‘‘


Bestie, this page came from X Version 11, for xkbprint 1.0.6, and it's documented as XKBPRINT(1). Go print something gorgeous ๐Ÿฆ‹๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from