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.7.1.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file dbus_idle-2024.7.1.tar.gz
.
File metadata
- Download URL: dbus_idle-2024.7.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6c5bbb30af61a1ff0a756e994e610b0c6f9ea8e4a2b686853ca7d89046dc25 |
|
MD5 | 1ed550b630c47568dd8ec95d4bb3e7c4 |
|
BLAKE2b-256 | a7191654ea2c3402cb56552ef6b510de9e783a1163e8c747c30e805137f562af |
File details
Details for the file dbus_idle-2024.7.1-py3-none-any.whl
.
File metadata
- Download URL: dbus_idle-2024.7.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a3b9c052dd265e6711999ff6c743481fe2cdd51fd57ce0a4f6fae7428ca2b1 |
|
MD5 | 400cbc7a397451cd9d72c23ee6492689 |
|
BLAKE2b-256 | 1d202233e210e48320f498c07fa4110335f427f232fe62273957bf2e0fdddc49 |