Page 1 of 1
Transform "Alt gr" key to standart "Alt"
Posted: Sun May 15, 2011 8:31 pm
by olvin
What config I need to make Right Alt key work as a Left Alt? It does not work in shortcuts such as Alt-Left, I think because it works as Alt Gr. Can anyone help me?
I use Ubuntu 11.04.
Re: Transform "Alt gr" key to standart "Alt"
Posted: Mon May 16, 2011 7:53 am
by sportscliche
If I understand your question correctly, you are trying to edit mouse and key bindings. This is done via the lxde-rc.xml file located in the ~/.config directory. I'm not sure where this is exactly in Ubuntu (presumably Lubuntu) but this link should get you started:
https://wiki.archlinux.org/index.php/LXDE#Bindings
Re: Transform "Alt gr" key to standart "Alt"
Posted: Thu May 19, 2011 5:28 pm
by olvin
No, you do not understand me. The file is located in "~/.config/openbox/lxde-rc.xml". It allows to make your own shortcuts (and manage many others useful options) but it does not allow to remap the
Alt key

I will keep trying.
Re: Transform "Alt gr" key to standart "Alt"
Posted: Fri May 20, 2011 1:41 pm
by sportscliche
Maybe there is a difference with the Russian keyboard, because I do not know the meaning of left-alt and right-alt. All the rules for editing the key bindings (including ALT) are given by OpenBox:
http://openbox.org/wiki/Help:Bindings#Modifiers
Re: Transform "Alt gr" key to standart "Alt"
Posted: Mon May 23, 2011 1:26 pm
by lm8
I was trying to get my numeric keypad arrow keys to work like standard arrow keys. Only found one solution for that so far. Might work for making Alt gr act like Alt key too. It's not directly LXDE related though. There's a program called xev that can tell you what keycodes are in use when you press keys. Check what the keycodes are for your Alt gr key versus your Alt key. Use xmodmap to map the keycode you want to the Alt gr key. I use xmodmap -e on the command line, but you can add a line to the .Xdefaults file or the .config/openbox/autostart.sh file (if you're running openbox-session as the window manager).