Skip to main content

System idle time using DBus

Project description

dbus-idle

pypi python version license

Python library to detect user idle time in milliseconds or inactivity on Linux and Windows.

Requirements

  • Python 3.7 or later

Installation

Install using:

sudo apt install meson libdbus-glib-1-dev patchelf
pip install dbus-idle

Usage

You can use this module from the command line

dbus-idle

or access the current idle time from within your python program

from dbus_idle import IdleMonitor

milliseconds = IdleMonitor().get_dbus_idle()

Contribution

This is based on the work by Alexander Frenzel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbus_idle-2024.3.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

dbus_idle-2024.3.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page