Vital part of my keyboard config.
Go to file
2012-10-18 16:31:42 +04:00
LICENSE First commit 2012-03-31 23:02:17 +02:00
Makefile Fix Makefile for BSD make 2012-10-15 00:19:52 +04:00
README.md Add usage explanation 2012-10-18 16:31:42 +04:00
xcape.c It's possible to bind multiple keys to one. 2012-10-16 02:51:33 +04:00

XCAPE

xcape runs as a daemon and intercepts the Control key. If the Control key is pressed and released on its own, it will generate an Escape key event.

This makes more sense if you have remapped your Caps Lock key to Control. Future versions of this program might do that mapping for you, but for now this is something that you have to do yourself.

If you don't understand why anybody would want this, I'm guessing that Vim is not your favourite text editor ;)

Minimal building instructions

$ sudo apt-get install git gcc make libx11-dev libxtst-dev
$ mkdir xcape
$ cd xcape
$ git clone https://github.com/alols/xcape.git .
$ make

Usage

$ xcape -e 'Shift_L=Shift_L|parenleft;Shift_R=Shift_R|parenright;Control_L=Escape'

Will make Left Shift pressed alone generate (, Right shift to generate ) and Left Control generate Escape.

Contact

Find the latest version at https://github.com/alols/xcape

The author can be reached at albin dot olsson at gmail dot com