2015-04-14

caps lock as ctrl and esc

Map your caps lock button to control when held down, and esc if pressed.

This is perfect for vim, and still keeps caps lock as control for any other program that isn't esc centric.

http://askubuntu.com/questions/196277/can-i-map-a-key-caps-lock-so-it-does-one-thing-pressed-alone-and-another-when

https://github.com/alols/xcape

.Xmodmap
remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L

$ xmodmap ~/.Xmodmap

then run
$ xcape

1 comment:

  1. Anonymous20/3/18 01:58

    I have learn a few just right stuff here. Certainly worth bookmarking
    for revisiting. I surprise how so much effort you
    set to create one of these excellent informative site.

    ReplyDelete