The US International keyboard allows to add diacritics by means of dead keys. Specifically:
`a maps to à and
'a maps to á.
In X, using the international or the standard US keyboard, I would like instead to set mappings like this:
a` maps to á and
a' maps to à.
As you can see, I would like the dead key to be typed after the base letter and also I prefer to swap the acute and grave accent dead keys. (This makes typing much faster and natural for me and, in case the dead key functionality is disabled, words with attached diacritics are more readable).
Can you address me to the proper tools/config files to achieve this?
In case it is relevant to the answer, my distro is Arch Linux.