title: Linux idle event In Python
body: <p>How can I determine idle time in Python on Linux, meaning no keyboard or mouse activity for the past few seconds or minutes?  All present links tell how to do it on windows but not on Linux.</p>