Home » Questions » Computers [ Ask a new question ]

Gnome: Map AltGr key to Alt

Gnome: Map AltGr key to Alt

I have an annoying UK keyboard which has an Alt Gr key where the right Alt key is on a US keyboard. This is really annoying when using Gnome which makes heavy use of the Alt/Meta key.

Asked by: Guest | Views: 27
Total answers/comments: 2
Guest [Entry]

"xmodmap

The 'shift, lock, control, modN' on the left are what X sees and cares about. The keysyms on the right map to them. Mode_switch is your AltGr key. Move it to join the others at mod1:

xmodmap -e 'clear mod5'
xmodmap -e 'add mod1 = Mode_switch'"
Guest [Entry]

"gnome-tweak-tool lets you do this with a GUI:

Typing -> Key to choose 3rd level -> Right Alt key never chooses 3rd level"