From unknown Sun Jun 22 07:59:37 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#31735] [PATCH] Document xorg keymap configuration Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Jun 2018 17:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31735 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 31735@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1528304775900 (code B ref -1); Wed, 06 Jun 2018 17:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jun 2018 17:06:15 +0000 Received: from localhost ([127.0.0.1]:36984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQbt0-0000ES-N5 for submit@debbugs.gnu.org; Wed, 06 Jun 2018 13:06:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQbsy-0000EE-B0 for submit@debbugs.gnu.org; Wed, 06 Jun 2018 13:06:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQbss-0002Fj-3F for submit@debbugs.gnu.org; Wed, 06 Jun 2018 13:06:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQbsr-0002Fa-Vj for submit@debbugs.gnu.org; Wed, 06 Jun 2018 13:06:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQbsq-0002CE-Qa for guix-patches@gnu.org; Wed, 06 Jun 2018 13:06:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQbsn-0002DG-LV for guix-patches@gnu.org; Wed, 06 Jun 2018 13:06:04 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:45398) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQbsn-0002Bq-A8 for guix-patches@gnu.org; Wed, 06 Jun 2018 13:06:01 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 358e2d86 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Wed, 6 Jun 2018 17:08:18 +0000 (UTC) Date: Wed, 6 Jun 2018 19:05:53 +0200 From: Julien Lepiller Message-ID: <20180606190553.4675fe0d@lepiller.eu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/LpDAcanpHekJe1b8zWwe0gT" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --MP_/LpDAcanpHekJe1b8zWwe0gT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, this patch adds an example configuration for using a different keyboard layout in xorg. --MP_/LpDAcanpHekJe1b8zWwe0gT Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-doc-Document-xorg-keymap-configuration.patch =46rom 2bb6a98052313dc40d62184dd62a0a625e2b17c1 Mon Sep 17 00:00:00 2001 From: Julien Lepiller 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. --- doc/guix.texi | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index e1353842e..cb81d8f01 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -11851,6 +11851,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 layo= ut +than the default US keymap. For instance, to use the ``b=C3=A9po'' 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 =3D> + (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 configura= tion +to keyboards. Without this line, other devices such as touchpad may not w= ork +correctly because they will be attached to the wrong driver. In this exam= ple, +the user typically used @code{setxkbmap fr bepo} to set their favorite key= map +once logged in. The first argument corresponds to the layout, while the s= econd +argument corresponds to the variant. The @code{xkb_variant} line can be o= mitted +to select the default variant. @end deffn =20 @deffn {Scheme Procedure} screen-locker-service @var{package} [@var{progra= m}] --=20 2.17.0 --MP_/LpDAcanpHekJe1b8zWwe0gT-- From unknown Sun Jun 22 07:59:37 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#31735] [PATCH] Document xorg keymap configuration Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Jun 2018 16:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31735 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Julien Lepiller Cc: 31735@debbugs.gnu.org Received: via spool by 31735-submit@debbugs.gnu.org id=B31735.152847619412075 (code B ref 31735); Fri, 08 Jun 2018 16:44:01 +0000 Received: (at 31735) by debbugs.gnu.org; 8 Jun 2018 16:43:14 +0000 Received: from localhost ([127.0.0.1]:39912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRKTp-00038g-CC for submit@debbugs.gnu.org; Fri, 08 Jun 2018 12:43:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRKTn-00038R-BU for 31735@debbugs.gnu.org; Fri, 08 Jun 2018 12:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRKTd-0003Vu-9l for 31735@debbugs.gnu.org; Fri, 08 Jun 2018 12:43:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRKTd-0003Vo-63; Fri, 08 Jun 2018 12:43:01 -0400 Received: from [193.50.110.75] (port=52632 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fRKTc-0000q2-Nq; Fri, 08 Jun 2018 12:43:01 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180606190553.4675fe0d@lepiller.eu> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 Prairial an 226 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 08 Jun 2018 18:42:58 +0200 In-Reply-To: <20180606190553.4675fe0d@lepiller.eu> (Julien Lepiller's message of "Wed, 6 Jun 2018 19:05:53 +0200") Message-ID: <874lidjkkt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, Julien Lepiller skribis: > From 2bb6a98052313dc40d62184dd62a0a625e2b17c1 Mon Sep 17 00:00:00 2001 > From: Julien Lepiller > 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=E2=80=A6 > +(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 =3D> > + (slim-configuration > + (inherit config) > + (startx (xorg-start-command > + #:configuration-file > + (xorg-configuration-file > + #:extra-config > + (list bepo-evdev))))))))) =E2=80=A6 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=E2=80=99. From unknown Sun Jun 22 07:59:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Julien Lepiller Subject: bug#31735: closed (Re: [bug#31735] [PATCH] Document xorg keymap configuration) Message-ID: References: <20180608204010.148f639f@lepiller.eu> <20180606190553.4675fe0d@lepiller.eu> X-Gnu-PR-Message: they-closed 31735 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 31735@debbugs.gnu.org Date: Fri, 08 Jun 2018 18:41:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1528483262-22500-1" This is a multi-part message in MIME format... ------------=_1528483262-22500-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #31735: [PATCH] Document xorg keymap configuration which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 31735@debbugs.gnu.org. --=20 31735: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31735 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1528483262-22500-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 31735-done) by debbugs.gnu.org; 8 Jun 2018 18:40:20 +0000 Received: from localhost ([127.0.0.1]:39958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRMJA-0005pq-CM for submit@debbugs.gnu.org; Fri, 08 Jun 2018 14:40:20 -0400 Received: from lepiller.eu ([89.234.186.109]:54656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRMJ8-0005ph-I4 for 31735-done@debbugs.gnu.org; Fri, 08 Jun 2018 14:40:18 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id d47af0cc (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <31735-done@debbugs.gnu.org>; Fri, 8 Jun 2018 18:42:39 +0000 (UTC) Date: Fri, 8 Jun 2018 20:40:10 +0200 From: Julien Lepiller To: 31735-done@debbugs.gnu.org Subject: Re: [bug#31735] [PATCH] Document xorg keymap configuration Message-ID: <20180608204010.148f639f@lepiller.eu> In-Reply-To: <874lidjkkt.fsf@gnu.org> References: <20180606190553.4675fe0d@lepiller.eu> <874lidjkkt.fsf@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31735-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Le Fri, 08 Jun 2018 18:42:58 +0200, ludo@gnu.org (Ludovic Court=C3=A8s) a =C3=A9crit : >=20 > =E2=80=A6 I really hope we can soon improve on this and provide an abstra= ct > mechanism to specify the keyboard layout for everything from GRUB to > X. Same here. Anyway, pushed as 136a1e8b577a5f44e7ff35e24d81d13be922f2af. >=20 > Thanks, > Ludo=E2=80=99. ------------=_1528483262-22500-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Jun 2018 17:06:15 +0000 Received: from localhost ([127.0.0.1]:36984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQbt0-0000ES-N5 for submit@debbugs.gnu.org; Wed, 06 Jun 2018 13:06:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQbsy-0000EE-B0 for submit@debbugs.gnu.org; Wed, 06 Jun 2018 13:06:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQbss-0002Fj-3F for submit@debbugs.gnu.org; Wed, 06 Jun 2018 13:06:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQbsr-0002Fa-Vj for submit@debbugs.gnu.org; Wed, 06 Jun 2018 13:06:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQbsq-0002CE-Qa for guix-patches@gnu.org; Wed, 06 Jun 2018 13:06:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQbsn-0002DG-LV for guix-patches@gnu.org; Wed, 06 Jun 2018 13:06:04 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:45398) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQbsn-0002Bq-A8 for guix-patches@gnu.org; Wed, 06 Jun 2018 13:06:01 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 358e2d86 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Wed, 6 Jun 2018 17:08:18 +0000 (UTC) Date: Wed, 6 Jun 2018 19:05:53 +0200 From: Julien Lepiller To: guix-patches@gnu.org Subject: [PATCH] Document xorg keymap configuration Message-ID: <20180606190553.4675fe0d@lepiller.eu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/LpDAcanpHekJe1b8zWwe0gT" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) --MP_/LpDAcanpHekJe1b8zWwe0gT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, this patch adds an example configuration for using a different keyboard layout in xorg. --MP_/LpDAcanpHekJe1b8zWwe0gT Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-doc-Document-xorg-keymap-configuration.patch =46rom 2bb6a98052313dc40d62184dd62a0a625e2b17c1 Mon Sep 17 00:00:00 2001 From: Julien Lepiller 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. --- doc/guix.texi | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index e1353842e..cb81d8f01 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -11851,6 +11851,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 layo= ut +than the default US keymap. For instance, to use the ``b=C3=A9po'' 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 =3D> + (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 configura= tion +to keyboards. Without this line, other devices such as touchpad may not w= ork +correctly because they will be attached to the wrong driver. In this exam= ple, +the user typically used @code{setxkbmap fr bepo} to set their favorite key= map +once logged in. The first argument corresponds to the layout, while the s= econd +argument corresponds to the variant. The @code{xkb_variant} line can be o= mitted +to select the default variant. @end deffn =20 @deffn {Scheme Procedure} screen-locker-service @var{package} [@var{progra= m}] --=20 2.17.0 --MP_/LpDAcanpHekJe1b8zWwe0gT-- ------------=_1528483262-22500-1--