Note: This was originally posted on AskUbuntu. However, since it got little traction, I chose to also post it here. I hope you don't mind it much. It's related to
X11anyway, so I think it will not be only applicable to Ubuntu.
As far as I know, Ubuntu's Key Bindings are all exposed on the files inside the
/usr/share/X11/xkb/symbols folder. I've sometimes used the
pc file to make some changes to some keys. However, I would like to know if there is a best practice on how to override the keys, preferably without overwriting these core files.
For example, is there a way of creating a user keyboard setting that would override the default one (like most good code editors do nowadays, such as VS Code)? It would also be much better if this method used the terminal or saved the settings in a file, so I could easily reproduce it in other machines.
More specifically, right now, in my use case, I'm looking to customize my