I3 – How to change the mod key to AltGr and disable it for “normal” input

i3keyboard-layoutx11

I'd like to change the mod key to "AltGr" or "the right Alt key. Furthermore I'd like to disable the new mod key for any other input in Linux. So when I am writing text in my text editor I don't want to get any Greek signs when commanding i3.

Best Answer

See xmodmap.

Something like xmodmap -e "remove mod1 = Alt_R"

Related Question