| Crates.io | user-idle2 |
| lib.rs | user-idle2 |
| version | 0.6.2 |
| created_at | 2025-05-25 14:19:12.878442+00 |
| updated_at | 2025-05-28 19:05:16.453446+00 |
| description | Get a user's idle time. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1688397 |
| size | 21,011 |
This is a fork of user-idle-rs, which had been idle for a while and did not support Wayland.
| OS | Supported |
|---|---|
| Linux | ✔️* |
| Windows | ✔️ |
| MacOS | ✔️ |
* The Linux implementation will do the following:
use user_idle2::UserIdle;
let idle = UserIdle::get_time().unwrap();
let idle_seconds = idle.as_seconds();
let idle_minutes = idle.as_minutes();
Check the documentation for more methods.