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-2023.12.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for dbus_idle-2023.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 791f220805ed65f4d39aa0b0d4aef712b0ea6ebe64e3847adfa3146b199f29f7 |
|
MD5 | c759c8445bca58bca48d9a5e7cfb6bb3 |
|
BLAKE2b-256 | 342454e35de80cbd434a42ee51aec1447aa3377dda6ceda78ac6a28ace822d95 |