diff options
author | Julien Lepiller <julien@lepiller.eu> | 2018-06-06 19:01:42 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2018-06-08 20:38:18 +0200 |
commit | 136a1e8b577a5f44e7ff35e24d81d13be922f2af (patch) | |
tree | 3dd3c6df41b7cd2d26ed9ce34c551a624efe9e10 /doc/guix.texi | |
parent | ca82bdfdfbb6d2dae5875158ed418cc823bc5799 (diff) | |
download | guix-136a1e8b577a5f44e7ff35e24d81d13be922f2af.tar.gz |
doc: Document xorg keymap configuration.
* doc/guix.texi (Xorg display): Add an example xorg keymap configuration.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 965ac420ff..6ed4799dfc 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -11857,6 +11857,44 @@ resolutions---e.g., @code{((1024 768) (640 480))}. Last, @var{extra-config} is a list of strings or objects appended to the configuration file. It is used to pass extra text to be added verbatim to the configuration file. + +@cindex keymap +@cindex keyboard layout +This procedure is especially useful to configure a different keyboard layout +than the default US keymap. For instance, to use the ``bépo'' keymap by +default on the display manager: + +@example +(define bepo-evdev + "Section \"InputClass\" + Identifier \"evdev keyboard catchall\" + Driver \"evdev\" + MatchIsKeyboard \"on\" + Option \"xkb_layout\" \"fr\" + Option \"xkb_variant\" \"bepo\" +EndSection") + +(operating-system + ... + (services + (modify-services %desktop-services + (slim-service-type config => + (slim-configuration + (inherit config) + (startx (xorg-start-command + #:configuration-file + (xorg-configuration-file + #:extra-config + (list bepo-evdev))))))))) +@end example + +The @code{MatchIsKeyboard} line specifies that we only apply the configuration +to keyboards. Without this line, other devices such as touchpad may not work +correctly because they will be attached to the wrong driver. In this example, +the user typically used @code{setxkbmap fr bepo} to set their favorite keymap +once logged in. The first argument corresponds to the layout, while the second +argument corresponds to the variant. The @code{xkb_variant} line can be omitted +to select the default variant. @end deffn @deffn {Scheme Procedure} screen-locker-service @var{package} [@var{program}] |