Is there a tool to quickly create custom keyboard layouts?
For example to achieve this: https://tex.stackexchange.com/a/86559/1871
Producing Unicode characters in secondary layers, but based on US international (Alt GR-dead keys)
This is mainly to type math in using Unicode, but keeping the default layer to be US international.
Maybe there is one prepared already that is pretty general, if so then how to install it?
This question is not about generating short-cuts in a particular application but to change the system's keyboard layout.
Best Answer
I think this tool might work for you although I've never used it. keyboardlayouteditor
If it doesn't work then with a little patience you can create a custom keyboard layout by yourself.
I know it's not a quick way to do it but by doing it this way you will learn something.
If you decide to do it by yourself then the only thing you need to do is edit a file located in /usr/share/x11/xkb/symbols.
Inside the folder "symbols" you will find all the keyboard layout files.
Backup the file you want to use, in your case the "us" file.
To backup the file open a terminal and type:
Now open the "us" file:
You will see something like this:
The
key <xxxx>
entries are the name of the keys and the{[]};
entries are the symbolsThe image below will show you the key codes:
Now to create your custom keyboard layout you need to replace the contents of
{[]};
with the symbol names you want.For example in order to replace the exclamation mark with the dollar symbol change the following line
to this:
After you finish editing your custom keyboard save the file and restart your computer.
In case you want to go back to your original "us" keyboard layout open a terminal and type the following:
For further reading: