title: Is there a simple way to detect mouse or keyboard activity in Linux/Xorg/Qt4/Kde4?
body: <p>Is there a simple way to detect mouse or keyboard activity in Linux or Xorg or Qt4 or Kde4 environment? Obviously not only on a particular window but in the entire Xorg desktop.</p>