You are not logged in.

#1 2023-09-03 20:32:29

Registered: 2023-09-03
Posts: 1

Upgrading packages resets my keyboard layout

I have the following in my

.xinitrc: setxkbmap us -option ctrl:nocaps

When I run

pacman -Syu

sometimes caps-lock isn't substituted for ctrl anymore. I'm not sure what package is causing this, but it's quite annoying. Upgrading packages shouldn't cause X keymap changes I guess. What could be the reason for this?


#2 2023-09-03 21:14:25

Registered: 2011-01-17
Posts: 1,562

Re: Upgrading packages resets my keyboard layout

Keyboard layout being reset sounds like udev is reloaded.

Some package updates may cause this; for instance systemd has /usr/share/libalpm/hooks/30-systemd-udev-reload.hook, which triggers a udev-reload if anything under /usr/lib/udev/rules.d/* changes.

Whether or not an automatic udev reload makes sense or not, I cannot judge. But I also tend to agree with you that I'd like as little automagic (re)starts happening behind my back.
I assume the Arch Linux packagers had a reason for doing this, but the corresponding commit message isn't exactly very informative.

{,META,RE}PKGBUILDSpacman-hacks (includes makemetapkg and remakepkg) │ dotfileslocaldir


#3 2023-09-04 03:59:37

Registered: 2012-09-03
Posts: 42,820

Re: Upgrading packages resets my keyboard layout
For a de-facto single user system (or if everyone wants that setting) use … tion_files


Board footer

Powered by FluxBB