Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 14 days 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T15:22:46.000Z (4 months ago)
- Last Synced: 2024-10-19T07:05:19.652Z (27 days 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
[![pypi](https://img.shields.io/pypi/v/idle-time.svg)](https://pypi.python.org/pypi/idle-time) [![Build Status](https://travis-ci.org/escaped/idle-time.png?branch=master)](http://travis-ci.org/escaped/idle-time) [![Coverage](https://coveralls.io/repos/escaped/idle-time/badge.png?branch=master)](https://coveralls.io/r/escaped/idle-time) ![python version](https://img.shields.io/pypi/pyversions/idle-time.svg) ![Project status](https://img.shields.io/pypi/status/idle-time.svg) ![license](https://img.shields.io/pypi/l/idle-time.svg)
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()