System idle time using DBus
Project description
dbus-idle
Python library to detect user idle time 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
monitor = IdleMonitor.get_monitor()
monitor.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.3.2.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for dbus_idle-2023.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a9c48b03e9088172b4b56956ba3888a6c185dae9df6374ffacaeeb19a3633b |
|
MD5 | 5c8f7dd5254355b5b15e0c1836b5b825 |
|
BLAKE2b-256 | 281eabd3c123dc686bfd2c4698f251174aae99b262a10f996328ef0863db8599 |