LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Remapping keyboard - xmodmap doesn't work (https://www.linuxquestions.org/questions/slackware-14/remapping-keyboard-xmodmap-doesnt-work-886679/)

saavedra29 06-16-2011 05:15 AM

Remapping keyboard - xmodmap doesn't work
 
Hello, i have slackware 13.37-64 bit with xfce.
I have a "microsoft wired keyboard 600" keyboard and want to remap it to use the right win key as ctrl. With xev i see that the keycode for the specific win key is 134. Then i run
Code:

xmodmap -e "keycode 134 = Control_L"
but nothing changes. Even if i manually configure the .Xmodmap file in my /home i see no change at all. I have searched through the net but have found no other solution.
Can you help?

saavedra29 06-16-2011 10:31 AM

I run xmodmap -pke and it shows that it has changed. But it doesn't work.
By the way, when i tried to change it with a letter, for example "e" it worked. The problem is with the ctrl key.

jmccue 06-16-2011 10:52 AM

Hi,

Try adding 3 lines below to ~/.Xmodemap

remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L

That automatically turns CapsLock into another Ctl key (at least for me) when using "startx"

Or you can process the file using:
xmodmap ~/.Xmodmap

HTH
John

saavedra29 06-16-2011 12:22 PM

jmccue you gave me a very good example since i have no ideas about this.
So i configured my .Xmodmap as
Code:

remove Mod4 = Super_R
keysym Super_R = Control_R
add control = Control_R

and it worked.
Thank you very much!


All times are GMT -5. The time now is 04:52 AM.