Could anyone please tell me how to remap my Super(left) key to Ctrl key?
I mean Super(left) should work as Ctrl key.
|
Could anyone please tell me how to remap my Super(left) key to Ctrl key? I mean Super(left) should work as Ctrl key. |
||||
|
To make major changes to your keyboard, including remapping characters and changing modifiers, you need to use the xmodmap utility - see
Now the commandsWhat you want to do is a two-step process. First you unmap Super from its modifier, then you map it to control.
If you want to undo this later on, just run the same commands with the appropriate arguments. No Super_R?The output of xmodmap -pm might given you several keys named Super_L but none named Super_R). If it did, you now have several extra keys assigned to Control, but none assigned to Super. You'll have to rename one key. (NB: it might give you several Super_L and at least one Super_R. This is fine.) The key names in the table all have a hex number in parentheses next to them. This number is the physical keycode of the key on your keyboard (it can vary by model). If you need to change one Super_L to Super_R, first find the keycode you want to be associated to Super_R (aren't sure which is the correct one? Run
to rename the key, then
to assign it to Super. |
|||||||||||||||||||||
|
|
Command line:
Or put in
|
|||
|
|
|
Try with this:
Put the above lines in your |
|||
|
|
|
On Ubuntu, you can edit XKBOPTIONS="altwin:ctrl_win" Which:
Read
|
|||
|
|
Windowskey on PC keyboards andCommandkey on Apple keyboards. I'm no entirly sure what the other key you describe is – nhed Sep 6 '16 at 2:46