Keyboard layout via text file
When I first made this install I remember modifying a text file to change some of my keyboard keys to fit my preferences (such as having the num row default to their symbols since I only use the numpad for numbers).
Now I updated my system, and the keyboard seems to be back in its original configuration, and I can't for the life of me find the text file again.
It was in a format sorta like:
q Q
w W
e E
Etc.
About this post
- Posted
- Archived
- Score
- 4 · 83% up
- Kind
- Text
- ID
- orrybz
5 comments
I suggest using
localectlthat will create a configuration text file in the/etc/X11folder.I have tried this and still can find anywhere to actually modify the keyboard layout, all I really want to do is make the num row use the symbols when not shifting, and use the numbers when shifting
Maybe you can do
localectl list-x11-keymap-optionsand see if there's an option for it?The file location I was talking about is
/etc/X11/xorg.conf.d/00-keyboard.conf.Edit: nvm i saw you found the solution
The keyboard layouts are in
/usr/share/X11/xkb/symbols. If you change these files directly, they will be overwritten when you update. But you can create a new layout (unless you use the special name "custom" it won't show up in the graphical preferences though).In the world of the modern linux desktop, you can also store xkb tree overyays in
~/.xkbor/etc/xkb. You can also register your custom keyboard layouts/options in the xml files. Note that this is only supported by libxkbcommon and not by the legacy display server.This was the solution! Thank you