/idle_time

Usage of module gives the idle time of the computer. Note: Linux requires xprintidle. Use "sudo apt install xprintidle" for the module to work.

Primary LanguagePythonMIT LicenseMIT

Gets the time your computer has been idle

Use it in a while loop for getting continuous durations

import idle

print(idle.get_idle_duration())