![]() |
How do I get xmodmap to work in LXDE?
As I have a Mac, I'd like to map the cauliflower keys to ctrl, as in GNOME. I created an .xmodmap file, and it was loaded, but the remapping did not work. The xmodmap file is:
keycode 133 = Control_L NoSymbol Control_L keycode 134 = Control_R NoSymbol Control_R I got the keycodes from running xmodmap -pke. So how do I get this to work? |
Try adding this line to your ~/.xinitrc:
Code:
xmodmap ~/.xmodmap |
Thank you; I'll try that. I don't have a .xinitrc, (just did a fresh install of lubuntu on a new disk), but I'll create one.
|
Sorry - did not work. I think .xinitrc only makes sense when you don't use a display manager but login to the console and use startx.
|
I thought that LXDE probably ignored it, but I thought it was worth a try.
I couldn't find anything about how to run a script on LXDE startup. Maybe someone else knows. |
I just modified my .xmodmap to read
keycode 133 = 0xffe3 keycode 134 = 0xffe4 and the modified keycodes are correctly displayed by the xev command - both Apple keys show the keycodes of the corresponding ctrl keys - but the desktop is not responding. I had the same problem in xfce. I'll have a look at the xfce forums next. P.S. I also created a file $HOME/.config/autostart/xmodmap.desktop (with lxshortcut) that runs the command xmodmap ~/.xmodmap. This may be useful to some people but my problem does not seem to be xmodmap related. xmodmap seems to be working correctly, but LXDE does not recognize the keys. Updating X with the xswat repo and installing console-tools did not help either. Maybe this is a Lubuntu issue. I'll try Openbox in Debian. |
Solved - but not with xmodmap. There is another solution that actually works, and I have posted it here:
http://www.linuxquestions.org/questi...penbox-885949/ |
| All times are GMT -5. The time now is 12:30 PM. |