System idle time using DBus
Project description
dbus-idle
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
Release history Release notifications | RSS feed
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-2026.7.0.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbus_idle-2026.7.0.tar.gz.
File metadata
- Download URL: dbus_idle-2026.7.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff2e1d2690676d0f4376d1daabe07948274ca8c931c3a42c4d5ba4b3c2ed5257
|
|
| MD5 |
12e50e9d064ff694c6652465ff3ff982
|
|
| BLAKE2b-256 |
a2fde0cd74037e9181fc0cc405d68391cf270f93eddb823b6c6e56f7421a0a8c
|
File details
Details for the file dbus_idle-2026.7.0-py3-none-any.whl.
File metadata
- Download URL: dbus_idle-2026.7.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70a0cb7082ed673689082ac8f38150b4b8c7879ec29a26cad1b0184d21992aaa
|
|
| MD5 |
b75a9d988de7e097cfad40995f06e7af
|
|
| BLAKE2b-256 |
5240bce90cd471e47878b9605eb4ef5d53d741c51354a00b35f3ea18c55238b2
|