I am using the Mac Canadian Multilingual keyboard with Ubuntu 16, shown below. The Canadian Multilingual text entry option works almost fine, but I have the following problems.
The left alt and right alt are swapped. I have to press on the right alt key in order to write the brackets
{and}(that makes coding and writing in Latex very difficult).The keys for ù and / are also swapped.
How can I fix this? I tried everything suggested in the related posts on this site (and elsewhere), to no avail.
I tried using an English configuration for my keyboard, only switching to French when necessary, but this makes me waste too much time.
Note: This problem is very serious for French-Canadian Ubuntu users. I must keep my MacBook air next to my Ubuntu desktop to write emails and to write in Latex.
Attempted fixes:
Using
xev, I found that the left alt is keycode 64, registered as Alt_L, right alt is keycode 108, registered as ISO_Level3_Shift. The commandxmodmap -e "keycode 64 = ISO_Level3_Shift"makes the left alt key unresponsive whitout fixing the problem.In the file '/usr/share/X11/xkb/symbols/ca', I swapped the content (what is in the brackets) between the two following lines:
key <TLDE> { [ slash, backslash, bar ] }; key <LSGT> { [ ugrave, Ugrave ] };While in the file '/usr/share/X11/xkb/symbols/level3' I swapped all appearances of LALT and RALT.
