9cpmyg
Last Updated: February 25, 2016
·
586
· dcunit3d

Remap Capslock to Escape

Having escape a little closer makes the world a better place.

This is nice for Vim, but it feels great to be able to quickly cancel out of things as well. Works in OSX and Linux.

In OSX

PCKeyboardHack

In Linux

Xmodmap

May need to adjust keycodes to your hardware. So run xev from command line to get the correct keycodes.

  • Make sure Xmodmap is reference when X11 starts
  • Configure ~/.Xmodmap
  • https://gist.github.com/4188488
  • Gist maps Escape to Hyper as well
  • Configure shortcuts