iXKeylog is an X11 keylogger for Unix that basically uses xlib to interact with the users keyboard. It will listen for certain X11 events and then trigger specific routines to handle these events.
d49f99a554e4e389a7a39d229542a1fbcc64f3ddf9bb408377da37a097c0c28b