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.8.0.tar.gz
(5.5 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.8.0.tar.gz.
File metadata
- Download URL: dbus_idle-2026.8.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6733d52588339a1a00ebe826efe651c3d24aebfd9eb4bc25539b8f2b38366dbc
|
|
| MD5 |
8ceb92c10b3d6da25b70d2345de3704c
|
|
| BLAKE2b-256 |
f5b8e48dd235f76a16ce28dabbe682206c315c2a653f0e6188b61477fc4d8afc
|
File details
Details for the file dbus_idle-2026.8.0-py3-none-any.whl.
File metadata
- Download URL: dbus_idle-2026.8.0-py3-none-any.whl
- Upload date:
- Size: 6.0 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 |
79b87d6ca6ea98bd8a85e844c33c545d2c0453fc10d337396c4a18507e3a252e
|
|
| MD5 |
cf141348264e0f81e4cbbd7182ba99a7
|
|
| BLAKE2b-256 |
e7663f53ed9e1cf6321b066b8286b2a37303b2e6e260ce852d513e7355b71f63
|