I want to write a program (in python) on Linux (Ubuntu Linux 9.10) that will track how many keystrokes per second / minute I do. This includes regular letter keys and control / shift / space / etc.
Is there a way to connect to X so that I can say "when the key is pressed to call this function?". Since I want this to be executed in the background while running, this function call should be able to know all the keystrokes for all programs. I guess this is a bit like a keylogger.
This is only a private matter, so I donβt care that it works on Windows / OSX, and I donβt care when people get interesting X sessions, etc.
python linux keypress keylogger xorg
Rory
source share