Comment # 30 on bug 1209594 from
> Which only happens if someone is running localectl set-x11-keymap ... the only person doing this I'm aware of until now is our reporter Luca Billi. ;-)

For what may be worth, I'm using that too :)

I find localectl is the easiest way to configure the keyboard from scripts and
such (I maintain an ansible thing to configure my PCs).
Of course, even among the nerds who may use anisble, most people just pick a
keyboard layout (say, "en" or "de") without setting any "advanced" option,
but.. I'm with you, Luca!

> Namely, if a user has configured KEYMAP != XKBLAYOUT, no sequence of set-keymap / set-x11-keymap will ever be able to reproduce that configuration and the user settings will be inevitably overidden.

It's not exactly like that... for example, I have:

��������� cat /etc/vconsole.conf
KEYMAP=us-altgr-intl
FONT=eurlatgr.psfu
FONT_MAP=
FONT_UNIMAP=
XKBLAYOUT=us
XKBMODEL=pc104
XKBVARIANT=altgr-intl
XKBOPTIONS=compose:menu,terminate:ctrl_alt_bksp

KEYMAP=us-altgr-intl combines what in XKB terms are the two variables
XKBLAYOUT=us and XKBVARIANT=altgr-intl and "sudo localectl set-keymap
us-altgr-intl" will set all three variables (see "grep us-altgr-intl
/usr/share/systemd/kbd-model-map")


You are receiving this mail because: