How to set a custom keymap and make sure, that it is not overwritten by system?

7,240

The best solution is probably to create a custom keymap.

A good step-by-step answer can be found here in this SuperUser Q&A titled: How to change console keymap in Linux?

Share:
7,240

Related videos on Youtube

Adam Ryczkowski
Author by

Adam Ryczkowski

Updated on September 18, 2022

Comments

  • Adam Ryczkowski
    Adam Ryczkowski over 1 year

    I use custom keymap, that diffentiates between left and right Ctrl:

    remove control = Control_R
    clear mod3
    add Mod3 = Control_R
    

    When I load it with xmodmap myxmap, it works only as long, as one of the events happens:

    • Connect a HID (USB mouse, keyboard)
    • Press CtrlAltFx to switch to text terminal

    After that, I have to repeat the xmodmap myxmap command. I lived with it for over a year now, but it gets more and more annoying. Is there any way to tell the Linux Mint (Cinnamon edition) to keep my own version of assignment of Control_R key?

    The issue concerns (but is not limited to) Linux Mint 14-16 Cinnamon 64 bit.

  • SarahG
    SarahG over 10 years
    This is what I ended up doing and it works the best.
  • Adam Ryczkowski
    Adam Ryczkowski over 10 years
    Do you know, what is the name of Mod3 in keymaps?