10
170 Chapter 12: Keyboard Configuration
server configuration file, in the keyboard configuration file, or passed to the server
from setxkbmap.
The manpage for setxkbmap notes that it may fail if it is run on a system that has different
XKB components than the server does, because xkbcomp may not find the
components specified by setxkbmap. In that case, you may run xkbcomp on the client
side:
$ setxkbmap -layout ca -print | xkbcomp - $DISPLAY
This will automatically upload the keymap to the server after compilation.
It is also possible to save a compiled keymap??”but this is depreciated in favor of
rules-based configuration.
12.10 Viewing or Printing a Keyboard Layout
If you??™re using a keyboard layout that doesn??™t match they physical keycaps on your
keyboard, it may be useful to print (or view) a picture of the layout. The xkbprint
program uses the XKB geometry component to generate Postscript or Encapsulated
Postscript images of keyboard layouts.
The simplest way to run xkbprint is to provide a displayspec for the keymap source
as well as a destination filename:
$ xkbprint $DISPLAY keyboard.ps
This will generate a single Postscript file containing an image of the first two levels of
the first keyboard group, as shown in Figure 12-1.
Pages:
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271