So I’ve been fighting this too long but I’ve trying to make my keymap changes persistent. Anytime my keyboard is hotplugged (switching with my KM switch) or using my package manager my key map is reset. Is there a way to make changes stick other than spamming cron jobs constantly setting the changes?!
I wrote a hook for my package manager and I’ve been trying to get a udev rule to trigger an setxkbmap command / script but this runs fine but doesn’t apply settings and eventually if run by udev rules enough I get “Output queue is full” in my logs and things get whacky.
As a relevant aside why the hell doesn’t lvl1 have a KM Switch or even better a software assisted KM switch!?
**UPDATE I actually got it via xorg.conf.d. Setting the options in an inputClass section actually survives whatever the package manager does post install and power events from hotswapping mice and keyboards.