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-2024.3.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for dbus_idle-2024.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9f29bdb6dbcd270bb8460d8a1d9f281a974d7ea5d2ee957818fd509bc557684 |
|
MD5 | 60d04d1ce0520a468a589957cd497052 |
|
BLAKE2b-256 | e5834ad4fdae46304d1e3f26fdb4134848e2e9cd961a11a2e7acf34c5e4679b1 |