Read more

How to remap your caps lock to a second Escape key

Tobias Kraze
July 19, 2011Software engineer at makandra GmbH

When have you last used your caps lock key? On purpose? Right...

In Gnome

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Make it an additional ESC key by going to System -> Preference -> Keyboard -> Layouts -> Options -> CapsLock key behavior and select "Make CapsLock an additional ESC".

On recent Ubuntus this option was removed so you have to resort to using dconf Show archive.org snapshot .

dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']"

Or, open Tweak advanced GNOME 3 settings and follow Keyboard & Mouse -> Additional Layout Options to chose the same option as described above.

In any X11 window manager

Simply run setxkbmap -option caps:escape. If you want it to happen every time, put it into some place where it get's executed automatically, like .xinitrc or .xsessionrc.
If you want to swap Escape and Caps Lock, you can use setxkbmap -option caps:swapescape.

Posted by Tobias Kraze to makandra dev (2011-07-19 20:54)