Change keyboard layout with r_shift and r_alt in Lubuntu(LXQt)

keyboard shortcutskeyboard-layoutlubuntulxdeUbuntu

I want change my keyboard layout, like Windows with right Shift and right Alt. But now just can one time change. left Shift + left Alt is working but right Shift and right Alt work for one time.

My settings:
enter image description here

Best Answer

I don't know if this is the right way but this way worked for me.

Edit your secondary keyboard layout symbols language file in path:

/usr/share/X11/xkb/symbols/

Example: for Persian(Iran) language:

/usr/share/X11/xkb/symbols/ir

And delete all the following lines of code from the file:

include "level3(ralt_switch)"

You can use Replace(Ctrl+H) option in your editor.

reboot at the end.

Related Question