Making right Win-key to CTRL
Hi. My mini keyboard doesnt have right CTRL key, but instead it has Win and Menu keys which I dont use, so I wanted to map Win-key to CTRL with "xmodmap".
About that I've been following this LQ thread http://www.linuxquestions.org/questi...d.php?t=297987 First to findout that key code, with `xmodmap -pke` I've got this: Code:
keycode 8 = Can someone please tell me how can I map right (or both if there is too much work) Win-key which I dont use, to CTRL? Thanks in advance. |
Anyone, please??
|
I just checked on my system, and keycode 116 is the Menu key, not the Win key. 115 is the left Win key (assigned the value "Super_L"), 117 is the right Win key.
Try using "xev" to see what codes are generated by your keys - most likely they are the same (Menu is indeed 116), in which case you've been testing the wrong one :) |
No, unfortunately it isn't. This the output of "xev" when I've typed right Win and Menu keys:
Code:
KeyPress event, serial 29, synthetic NO, window 0x4000001, Please notice that if I try to map ALT to that key, it works and it behaves like ALT. |
In ~/.Xmodmap try adding "clear Control" before "keycode 115 = Control_L", then "add Control = Control_L Control_R" as such:
Code:
clear Control And naturally make sure that "xmodmap ~/.Xmodmap" is being called in .xinitrc |
I did'nt restart the session but instead I've made those two files (~/.xinitrc and ~/.Xmodmap) with content you proposed and then I'typed:
Code:
xmodmap ~/.Xmodmap Thanks a lot ciotog :) |
All times are GMT -5. The time now is 07:20 AM. |