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-2025.5.1.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-2025.5.1.tar.gz.
File metadata
- Download URL: dbus_idle-2025.5.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4389d4e7f7ff2c799b4cb7ec54aa9113a33737a6cda921b237a05e59c250a276
|
|
| MD5 |
e0ecc6491a91012bccfefd2cff435601
|
|
| BLAKE2b-256 |
f5c47bf278db7353bc18ec9a2601362433cb5f3544d553fc20927e2db9ab8f00
|
File details
Details for the file dbus_idle-2025.5.1-py3-none-any.whl.
File metadata
- Download URL: dbus_idle-2025.5.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e2e40253a13907392e883621a262d2d04605f78ee0e78b53d9c2f2cc73f7f21
|
|
| MD5 |
2500d9ceccd12a0090949cab0c7d3989
|
|
| BLAKE2b-256 |
aa5e3084975d0b031e1710cd94d746563a46cb81b2321167eb0a4bddd84ee474
|