Timecard icon indicating copy to clipboard operation
Timecard copied to clipboard

Detect Idle

Open CodeMouse92 opened this issue 3 years ago • 1 comments

Often I forget to pause Timecard when walking away from the computer. I would like a feature that detects when the system has been idle (yes, this is possible in Python!) and pauses the time with a notification. As soon as the user comes back, they will see the prompt to select whether they're still working, or if they had walked away.

  1. User enables Idle Detect, and sets it to a 5 minute timeout.
  2. Timecard detects a five minute idle and saves the timestamp of the start of the idle period (five minutes ago).
  3. Timecard raises a window to ask the user if they're still working.
  4. If the user selects "I am still working", the timestamp is cleared.
  5. If the user selects "I was idle", the clock is paused and set back to when the idle period started. The user can then decide whether to resume, save, or reset.

CodeMouse92 avatar Feb 21 '22 22:02 CodeMouse92

Use https://github.com/escaped/idle_time, which also depends on https://pypi.org/project/jeepney/

CodeMouse92 avatar Mar 07 '22 02:03 CodeMouse92