Prev | Current Page 260 | Next

Chris Tyler

"X Power Tools"


Figure 12-1. xkbprint output with no options, loading the keymap directly from the X server
12.10
12.10 Viewing or Printing a Keyboard Layout 171
If you defined more than two levels, use the -ll option to select the starting level;
this is most commonly used to specify that the image should start with level 3, which
causes the third and fourth level to be included:
$ xkbprint -ll 3 $DISPLAY keyboard.ps
In a similar way, you can select the starting group with -lg:
$ xkbprint -lg 2 $DISPLAY keyboard.ps
When reading the keymap from the server, xkbprint will show only one keyboard
image. However, if you use a compiled keymap as input, xkbprint will draw multiple
keyboard groups as separate images, which is usually ideal for a reference sheet. You
can obtain the current keymap from the server and place it in a file using xkbcomp:
$ xkbcomp -xkm $DISPLAY -o keymap.xkm
$ xkbprint keymap.xkm keyboard.ps
The output is shown in Figure 12-2.
Figure 12-2. xkbprint output from a keyboard map file loaded from the X server
12.10
172 Chapter 12: Keyboard Configuration
An additional page can be generated, showing the keyboard layout of the third and
fourth levels, shown in Figure 12-3.
$ xkbprint -ll 3 keymap.


Pages:
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272