Timecard
Timecard copied to clipboard
Detect Idle
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.
- User enables Idle Detect, and sets it to a 5 minute timeout.
- Timecard detects a five minute idle and saves the timestamp of the start of the idle period (five minutes ago).
- Timecard raises a window to ask the user if they're still working.
- If the user selects "I am still working", the timestamp is cleared.
- 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.
Use https://github.com/escaped/idle_time, which also depends on https://pypi.org/project/jeepney/