1

After spending hours, I found that xmodmap can be used to remap / key to Left Control key. I used following command:

 $ xmodmap -e "keycode 94 =  Control_L NoSymbol Control_L"

Using xev, I find that keycode 94 is the / key on which I want to remap.

But now this / key (keycode 94) is not working as Control key or even as / key. Any shortcut like Ctrl+C, Ctrl+V or Ctrl+A is not working.

How can I make this key work as Ctrl key properly?

I am using Linux Mint.

0

Modifiers like Control are somewhat special. The general procedure is something like:

clear control

! ...

keycode 94 = Control_L NoSymbol Control_L

! ...

add control = Control_L
add control = Control_R

You should place these lines in a file, say ~/.xmodmaprc, and call xmodmap ~/.xmodmaprc

  • Thank you for your answer. But I could not understand what does this mean. I am very new to Linux. I tried to put "Clear control" in terminal and it gave an error. Can you please elaborate – Luqman Saleem Aug 13 '18 at 8:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.