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.1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for dbus_idle-2024.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e91d3a3c40612cff6dd6268d6448537c4766b466076b3815c631489f10d85656 |
|
MD5 | 052c22b6599619452464191a399433bc |
|
BLAKE2b-256 | 6f40690f0986d1480d0a6463eec7886a14860dddfb60b79ca7fd12d90eccbcbf |