From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: 07/07: services: console-keymap: Deprecate. Date: Thu, 11 Apr 2019 22:00:06 -0400 Message-ID: <875zrkx9ry.fsf@netris.org> References: <20190405134511.7740.88403@vcs0.savannah.gnu.org> <20190405134516.BD1962158A@vcs0.savannah.gnu.org> <87v9zr7vpf.fsf@netris.org> <87tvfa29qs.fsf@gmail.com> <87r2adlr66.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hElVg-0003kK-67 for guix-devel@gnu.org; Thu, 11 Apr 2019 22:01:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hElVe-0008TO-BR for guix-devel@gnu.org; Thu, 11 Apr 2019 22:01:44 -0400 In-Reply-To: <87r2adlr66.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 07 Apr 2019 18:24:17 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, Alex Kost Hi Ludovic, Ludovic Court=C3=A8s writes: > Alex Kost skribis: > >> Mark H Weaver (2019-04-05 21:45 -0400) wrote: >> >>> Is there an alternative service to replace it? >> >> I wonder too! I see there is a new =E2=80=98keyboard-layout=E2=80=99 fi= eld, but if I >> understand (gnu system keyboard) correctly, it does not allow me to use >> my own file in "loadkeys" format. > > As you found out, this is deprecated in favor of =E2=80=98keyboard-layout= =E2=80=99, > which has a couple of advantages: it=E2=80=99s uniform (the same config w= orks > for GRUB, Linux, and Xorg), and it=E2=80=99s installed from the initrd, so > already effective when you type in your passphrase (see > ). > > =E2=80=98keyboard-layout=E2=80=99 definitely works for what you describe,= Mark (see the > examples in the manual.) Well, I described adding custom keybindings to the console keymap, for which I cannot find any examples in the manual. I see only examples of using the pre-existing layouts, variants, and options that are built in to XKB. On the other hand, I just found that adding: (keyboard-layout (keyboard-layout "us" #:options '("ctrl:nocaps"))) has the effect of adding all of the keyboard bindings that I personally want. For the curious: the "custom" bindings I wanted are just those that Xorg has by default, but that are missing from the default console keyboard map. Most notably, I had found that many (most?) Meta+Shift keyboard combinations did not work properly in Emacs at the console, until I added my "custom" bindings. However, these missing bindings are installed when my OS config has the above 'keyboard-layout' line. So, thank you for implementing this new keyboard configuration system, which is clearly a great improvement over what we had before, and which now allows me to remove rather large section of my OS config that held my keyboard map. On the other hand, if this new system does not support custom keymaps, it would be good to keep the old console-keymap-service around, even if tucked in a back room, renamed, and clearly marked "only for hackers". However, I don't feel strongly about it. As you say, hackers can cook up their own private service if they need to, I suppose. Regards, Mark