https://github.com/escaped/idle_time
WIP: Detect user idle time or inactivity on Linux and Windows.
https://github.com/escaped/idle_time
idle idle-user linux python3 windows
Last synced: about 1 month ago
JSON representation
WIP: Detect user idle time or inactivity on Linux and Windows.
- Host: GitHub
- URL: https://github.com/escaped/idle_time
- Owner: escaped
- License: bsd-3-clause
- Created: 2019-06-18T12:26:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T15:22:46.000Z (10 months ago)
- Last Synced: 2024-10-19T07:05:19.652Z (7 months ago)
- Topics: idle, idle-user, linux, python3, windows
- Language: Python
- Size: 18.6 KB
- Stars: 17
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# idle-time
[](https://pypi.python.org/pypi/idle-time) [](http://travis-ci.org/escaped/idle-time) [](https://coveralls.io/r/escaped/idle-time)   
Detect user idle time or inactivity on Linux and Windows.
**WARNING** This project is in an alpha status! Though there is already some code to support Windows, it has only been tested on Wayland/Gnome.
## Requirements
* Python 3.6 or later
## Installation
Install using `pip install idle-time`
## Usage
You can use this module from the command line
python -m idle-time
or access the current idle time from within your python program
from idle_time import IdleMonitor
monitor = IdleMonitor.get_monitor()
monitor.get_idle_time()