There are no examples in the manual and every file I've tried needs some geometry.
$ xkbcomp /usr/share/X11/xkb/symbols/ua tmp/ua.xkm
$ xkbprint tmp/ua.xkm
Cannot open "tmp/ua.xkm" to read geometry
$ xkbprint /usr/share/X11/xkb/symbols/ua
Error: Couldn't read geometry from XKM file "/usr/share/X11/xkb/symbols/ua"
Exiting
xkbprint :0 -o xkbprint_output.ps
To build on gioele's answer, to preview custom keyboard layout, you can also use
xkbcomp
like this:ua
being the desired keyboard layout.Inspect
setxkbmap -print
— it providesxkbcomp
with geometry, symbols, keycodes, ...The problem is that your are compiling with
xkbcomp
a symbol table, not a geometry.Try
or (without temp files and with a PDF output):