How to arbitrarily manipulate key events in X

wettstein509 at wettstein509 at
Thu Apr 8 11:20:30 PDT 2010

> Is there any way to do what XEvIE did?

It seems to me that the the X Record extension (together with XTEST)
could be one possibility.  There are some limitations, for example, it
is not possible to discard events.  But it is possible to caputure all
keyboard events, and in contrast to XEvIE, the extension is supported.

One project that uses the X Record extension (among other approaches,
which are not purely X) that you might find interesting is AutoKey:

A simple example of the use of the X Record extension (a keylogger) is
found here:


More information about the xorg mailing list