Skip to content

Instantly share code, notes, and snippets.

@ndom91
Last active May 31, 2019 21:09
Show Gist options
  • Save ndom91/7e540c21d3667721005467d90a900369 to your computer and use it in GitHub Desktop.
Save ndom91/7e540c21d3667721005467d90a900369 to your computer and use it in GitHub Desktop.
Remap ESC -> CAPS (Distro Agnostic)

Replace Caps Lock with Esc

Use setxkbmap to remap the key (does not require a daemon and is independant of your desktop environment or window manager). Don't forget to add the command before the exec gnome-session (or similar) line in your ~/.xinitrc or ~/.xsession.

setxkbmap -option caps:escape

setxkbmap can be found in extra/xorg-setxkbmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment