On Tue 06 Feb 2024 at 00:11:43 (+0100), hw wrote:
> On Mon, 2024-02-05 at 20:59 +0000, Michael Kjörling wrote:
> > On 5 Feb 2024 21:06 +0100, from h...@adminart.net (hw):
> > > [...]
> > > --- and then I need to be able to change the keyboard layout in
> > > wayland sessions unless I use an US keyboard.  But I only have one
> > > of those.
> > 
> > Pretty sure /etc/default/keyboard has been a thing on Debian for just
> > about forever. I haven't dug into the details but it seems to date
> > back to 2006 which would put its first appearance at circa Sarge or
> > Etch (3.1/mid-2005 or 4.0/early-2007 respectively); possibly even
> > earlier, but that's as far back as the console-setup package history
> > goes.
> 
> Yeah it was an issue back then, and how do you know that there's such
> a thing as /etc/default/keyboard and what it means.

man keyboard perhaps? (First paragraph in Description.)

> Try to get a
> German Model M keyboard to work right with Xorg in, for example, 2010.
> 
> It starts with the question 'How many keys does it have?' and soon the
> question is 'How do I turn CapsLock into Ctrl?' and 'How do I put that
> into xorg.conf?' --- which eventually was omitted, so you had to bring
> that back, and that even in snippets, to get it to work.  Ugh ...

Would you get more help on the German list, as one might expect
people there to be using German layouts more frequently?

  caps:ctrl_modifier   Caps Lock is also a Ctrl

xorg.conf is only omitted because by default it is empty. I drop a
small file into xorg.conf.d just because the side buttons on one of
my mice are a nuisance. But I don't resent not having to specify
all those Screens, Monitors and Devices that used to be necessary.

> Even fvwm kinda never got it right because stuff would change in some
> ideosyncratic, unexpected way depending on if NumLock was on or off.
> So don't you dare to turn that off --- and for almost 30 years we had
> to manually switch on NumLock every time we started an X11 session and
> if we were to switch to a console, we had to turn it on again and then
> do something because it was screwed up after switching back (or the
> other way round).

As I have NumLock turned off, and never turn it on, I haven't had
occasion to use IgnoreModifiers in fvwm, but

  IgnoreModifiers 2

is meant to ignore that modifier.

> How can it be so difficult to get basic things like that right?  It
> still sucks because after more then 30 years, we still don't have a
> good way to change the keyboard layouts!

I presume you're now talking about wayland, though I don't think it's
been around for 30 years.

> > The one on my Bookworm system even has a comment right there on how to
> > use an entirely custom keymap, and that's also mentioned in the
> > keyboard(5) man page.
> 
> "In Debian systems the default keyboard layout is described in
>  /etc/default/keyboard and it is shared between X and the
>  console."
> 
> Xorg doesn't seem to be maintained anymore and is on the way out.
> 
> So how do you change the keyboard layout when using wayland?

I've no idea. I don't seem to have noticed that X is on the way out.

Cheers,
David.

Reply via email to