Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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()