{"id":23033982,"url":"https://github.com/olback/user-idle-rs","last_synced_at":"2025-08-14T15:33:50.345Z","repository":{"id":44752672,"uuid":"237664066","full_name":"olback/user-idle-rs","owner":"olback","description":"Get a users idle time","archived":false,"fork":false,"pushed_at":"2024-04-26T00:51:40.000Z","size":46,"stargazers_count":17,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-09T05:42:15.106Z","etag":null,"topics":["desktop","hacktoberfest","linux","macos","rust","users-idle","windows"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/user-idle","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olback.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-01T19:10:42.000Z","updated_at":"2024-08-09T05:42:15.106Z","dependencies_parsed_at":"2022-09-26T20:31:29.112Z","dependency_job_id":null,"html_url":"https://github.com/olback/user-idle-rs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Fuser-idle-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Fuser-idle-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Fuser-idle-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Fuser-idle-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olback","download_url":"https://codeload.github.com/olback/user-idle-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229843431,"owners_count":18132907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["desktop","hacktoberfest","linux","macos","rust","users-idle","windows"],"created_at":"2024-12-15T16:28:31.579Z","updated_at":"2024-12-15T16:28:32.076Z","avatar_url":"https://github.com/olback.png","language":"Rust","readme":"# Get the idle time of a user\n\n| OS              | Supported |\n| --------------- | --------- |\n| Linux (x11)     | ✔️         |\n| Linux (dbus)    | ✔️*        |\n| Linux (wayland) | ❌         |\n| Windows         | ✔️         |\n| MacOS           | ✔️         |\n\n\\* DBus returns the time the session has been locked, not the time since the last user input event.\n\nBy default, x11 is used on Linux. DBus can be enabled in `Cargo.toml` by disabling default-features and enabling `dbus`.\n\n### Example\n\n```rust\nuse user_idle::UserIdle;\n\nlet idle = UserIdle::get_time().unwrap();\n\nlet idle_seconds = idle.as_seconds();\nlet idle_minutes = idle.as_minutes();\n```\nCheck the [documentation](https://docs.rs/user-idle/latest/user_idle/) for more methods\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folback%2Fuser-idle-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folback%2Fuser-idle-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folback%2Fuser-idle-rs/lists"}