disable X touch screen when pen is near http://src.kaivo.net/hw/penxortouch/

Jakob Kaivo aac2afbf51 added command line options 9 years ago
.gitignore ac0708c3af add compiled binary to .gitignore 9 years ago
LICENSE 56f5daa136 Initial commit 9 years ago
Makefile 82c23d1bd2 initial commit 9 years ago
README aac2afbf51 added command line options 9 years ago
penxortouch.c aac2afbf51 added command line options 9 years ago

README

This is a simple X11 utility that disables a tablet's touchscreen when the
digitizer is near.

It requires the XInput extension and its accompanying library. On Debian, this
is available in the package libxi-dev.

The default pen and touch devices are specified by the PENDEVICE and
TOUCHDEVICE symbolic constants #defined near the top of the code,
respectively. These are the devices on a ThinkPad Yoga (first generation),
on which this program was originally developed. Command line options are
available to override either or both. The options are -t for the touch
device and -p for the pen device. Check the output of xinput(1) for the names
of the devices on your system. Note that if the names of your devices contain
spaces, which is likely, you'll need to quote them in your shell.

A future revision will include an actual man page. As it is, the command is
very simple and provides a basic usage synopsis with the -h option.

A possibility for the future is some sort of intelligent default search
mechanism.