You are not logged in.

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

ak-coram
Member
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?

Offline

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

ayekat
Member
Registered: 2011-01-17
Posts: 1,611

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.


pkgshackscfgblag

Offline

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

seth
Member
Registered: 2012-09-03
Posts: 59,897

Re: Upgrading packages resets my keyboard layout

https://bugs.archlinux.org/task/77789
For a de-facto single user system (or if everyone wants that setting) use https://wiki.archlinux.org/title/Xorg/K … tion_files

Offline

Board footer

Powered by FluxBB