Subject: Re: [bug#31735] [PATCH] Document xorg keymap configuration

From: [email-masked] (Ludovic Courtès)
Date: Fri, 08 Jun 2018 18:42:58 +0200

Hello,

Julien Lepiller <[email-masked]> skribis:

> From 2bb6a98052313dc40d62184dd62a0a625e2b17c1 Mon Sep 17 00:00:00 2001
> From: Julien Lepiller <[email-masked]>
> Date: Wed, 6 Jun 2018 19:01:42 +0200
> Subject: [PATCH] doc: Document xorg keymap configuration.
>
> * doc/guix.texi (Xorg display): Add an example xorg keymap configuration.

LGTM!  Though…

> +(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)))))))))

… I really hope we can soon improve on this and provide an abstract
mechanism to specify the keyboard layout for everything from GRUB to X.

Thanks,
Ludo’.