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
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.3.1.tar.gz.
File metadata
- Download URL: dbus_idle-2025.3.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf03955c742be81f0f8aa697e21762c9ac9f645449b0214483c06283dfd0edfa
|
|
| MD5 |
877bf501a91557998b04afcccc30d59b
|
|
| BLAKE2b-256 |
4dd19dbf5526ab0939e40728015d5146b8a3569b82fdbba5f10141198b508dbf
|
File details
Details for the file dbus_idle-2025.3.1-py3-none-any.whl.
File metadata
- Download URL: dbus_idle-2025.3.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8ebbfd632a6797991672278abb4efd93c873379bd40f900d7995a5bce40affc
|
|
| MD5 |
9f1beeade303e8f1fba91b930103abd5
|
|
| BLAKE2b-256 |
8fb9d2dc4ae09b658e7d91b0792399f45987f6ee3df5de69a94a3d02e38a0642
|