Ubuntu 18.04 - Swap Caps Lock and Ctrl

Ubuntu 18.04, Swap Caps lock and Ctrl - No installation

  1. Open ~/.Xmodmap

    gedit ~/.Xmodmap
    

    Contenst of the ~/.Xmodmap:

    keycode 37 = Caps_Lock NoSymbol Caps_Lock
    keycode 66 = Control_L NoSymbol Control_L
    
  2. Modify:

    keycode 66 = Caps_Lock NoSymbol Caps_Lock
    keycode 37 = Control_L NoSymbol Control_L
    
  3. Save the file and apply config

    xmodmap ~/.Xmodmap
    

댓글