I'm trying to configure my Ubuntu 18.04 to switch between Arabic and English using Right Shift and Right Alt. I've been working on it for several days and I've checked tons of solutions out there but none of them seems to be working with Arabic. I think that I've found the cause of the problem. When the keyboard is set to English, the Right Alt button's name in the keyboard layout form is Alt R which is pretty normal. But when I set it to Arabic, the name of Alt R is changed to be Level 3 Shift. Check the pictures to get me.
Alt-Left is the same in both layouts and that's why its working fine with me but I'm used to Alt-Right and I wanna get it to work, I've tried to remap Level 3 shift to be Alt R but I couldn't. How to make it works? Thanks in advance.