XKBPRINT(1)
๐ 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 tofontName.pfaif 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 arenone,name,code, andsymbols๐ท๏ธ-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 beall,none, orcommon, andcommonis 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.0means no warnings and10means all of them. Choose your drama ๐จ
๐ซถ SEE ALSO ๐ซถ
๐ 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
- debian trixie: x11-xkb-utils 7.7+9
- ubuntu noble: x11-xkb-utils 7.7+8build2
- ubuntu questing: x11-xkb-utils 7.7+9
- ubuntu resolute: x11-xkb-utils 7.7+9build1
- ubuntu stonking: x11-xkb-utils 7.7+9build1
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms