I made a cool, little script that will edit my /usr/share/X11/xkb/symbols/pc
file automatically. It is useful when I want to switch between a Mac or Windows keyboard.
The one problem I've encountered is that I have to log out and then log back in after editing the file in order for the edited configuration to take effect.
I've tried deleting my xkb cache (/var/lib/xkb/*.xkm
), but that did work.
Any help would be greatly appreciated. Cheers.
.../symbols/pc
file regularly isn't recommended. XKB probably already knows the differences; you just need to know what to tell it to load. if these are different physical keyboards you're switching between, specifying a model will probably do what you want:setxkbmap -model apple -layout us
vs-model pc105
. – quixotic Oct 25 '17 at 20:40