I have enabled
altgr-intl keyboard layout. How can I remap such that Windows key acts as AltGr instead of right Alt key.
You could use
xmodmapto do this.
At a terminal, try entering:
xmodmap -e "keysym Super_L = Alt_R"
This command says: "When I press the key on the left (SuperL in this case), make it do what the key on the right does (AltR)." For that to work I'm assuming that the Windows key has the keysym
Super_L; however it may not on your computer.
To find out the exact keysyms on your system, run
xev from a terminal, and then press your Windows key and your Alt Gr key.
You should see part of the output along the lines of:
KeyRelease event, serial 33, synthetic NO, window 0x2800001, root 0x6a, subw 0x0, time 24394571, (-167,-89), root:(384,232), state 0x48, keycode 115 (keysym 0xffea, Alt_R), same_screen YES, XKeysymToKeycode returns keycode: 113 XLookupString gives 0 bytes: XFilterEvent returns: False
The part with keysym in brackets is what you're after. This tells you what keysyms to use in the
Once you have determined the
xmodmap command you want to use, you might like to put it in your
.bashrc file so that it is executed automatically every time you log in to KDE.