unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org, Alex Kost <alezost@gmail.com>
Subject: Re: 07/07: services: console-keymap: Deprecate.
Date: Thu, 11 Apr 2019 22:00:06 -0400	[thread overview]
Message-ID: <875zrkx9ry.fsf@netris.org> (raw)
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")

Hi Ludovic,

Ludovic Courtès <ludo@gnu.org> writes:

> Alex Kost <alezost@gmail.com> 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 ‘keyboard-layout’ field, 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 ‘keyboard-layout’,
> which has a couple of advantages: it’s uniform (the same config works
> for GRUB, Linux, and Xorg), and it’s installed from the initrd, so
> already effective when you type in your passphrase (see
> <https://issues.guix.info/issue/34929>).
>
> ‘keyboard-layout’ 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

  parent reply	other threads:[~2019-04-12  2:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190405134511.7740.88403@vcs0.savannah.gnu.org>
     [not found] ` <20190405134516.BD1962158A@vcs0.savannah.gnu.org>
2019-04-06  1:45   ` 07/07: services: console-keymap: Deprecate Mark H Weaver
2019-04-06 19:51     ` Alex Kost
2019-04-07 16:24       ` Ludovic Courtès
2019-04-11 19:04         ` Alex Kost
2019-04-12 21:01           ` Ludovic Courtès
2019-04-12  2:00         ` Mark H Weaver [this message]
2019-04-12 21:09           ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zrkx9ry.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).