{"id":34250097,"url":"https://github.com/rvhonorato/get-up-timer","last_synced_at":"2026-04-18T16:39:21.514Z","repository":{"id":326719914,"uuid":"1105485528","full_name":"rvhonorato/get-up-timer","owner":"rvhonorato","description":"A simple daemon that monitors your keyboard and mouse activity and reminds you to take breaks.","archived":false,"fork":false,"pushed_at":"2025-11-29T16:29:18.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-19T18:56:17.839Z","etag":null,"topics":["activity-monitor","break-timer","daemon","libc","linux","rust","systemd"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rvhonorato.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-27T17:18:39.000Z","updated_at":"2025-11-29T16:29:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rvhonorato/get-up-timer","commit_stats":null,"previous_names":["rvhonorato/get-up-timer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rvhonorato/get-up-timer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Fget-up-timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Fget-up-timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Fget-up-timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Fget-up-timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvhonorato","download_url":"https://codeload.github.com/rvhonorato/get-up-timer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvhonorato%2Fget-up-timer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31976801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T16:27:12.723Z","status":"ssl_error","status_checked_at":"2026-04-18T16:27:11.140Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["activity-monitor","break-timer","daemon","libc","linux","rust","systemd"],"created_at":"2025-12-16T09:11:22.622Z","updated_at":"2026-04-18T16:39:21.468Z","avatar_url":"https://github.com/rvhonorato.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-up-timer\n\n![Crates.io License](https://img.shields.io/crates/l/get-up-timer)\n![Crates.io Version](https://img.shields.io/crates/v/get-up-timer)\n![Crates.io Total Downloads](https://img.shields.io/crates/d/get-up-timer)\n\n\n\nA simple daemon that monitors your keyboard and mouse activity and reminds you to take breaks.\n\n## Motivation\n\nI often lose track of time and forget to take breaks, so I spent way too much time writing this daemon to keep track of my activity and remind me when its time to take a break! (:\n\nInstead of checking for activity indirectly I decided to just use the `/dev/input/by-id` interface to measure activity directly. This daemon can identify mouse and keyboard devices so it should be compatible anywhere (at least on Linux).\n\n## What it does\n\nThe daemon tracks your input device activity and cycles through three states:\n\n- **Active** - you're actively using your computer\n- **Idle** - you haven't touched anything for 5 minutes\n- **Alert** - you've been active for 1 hour without a break (time to get up!)\n\nIt writes the current state to `/tmp/user_state` as JSON, so you can display it in your status bar (something like Waybar).\n\n## Setup\n\nJust run the standard cargo build command:\n\n```bash\ncargo build --release\n```\n\nYou'll find the binary at `target/release/get-up-timer`\n\nSince the daemon needs root access to read from `/dev/input/by-id/`, you'll want to run it as a system service.\n\nCreate `/etc/systemd/system/get-up-timer.service`:\n\n```ini\n[Unit]\nDescription=Get Up Timer\nAfter=multi-user.target\n\n[Service]\nExecStart=/path/to/get-up-timer\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\n```\n\nThen enable and start it:\n\n```bash\nsudo systemctl daemon-reload\nsudo systemctl enable get-up-timer\nsudo systemctl start get-up-timer\n```\n\nYou can check if it's running with:\n\n```bash\nsudo systemctl status get-up-timer\n```\n\n## Waybar integration\n\nIf you're using Waybar, just add this to your config:\n\n```json\n \"custom/user-state\": {\n    \"exec\": \"cat /tmp/user_state\",\n    \"interval\": 1,\n    \"return-type\": \"json\",\n    \"format\": \"{}\",\n    \"tooltip\": true,\n    \"tooltip-format\": \"{}\",\n    \"markup\": true,\n  },\n```\n\n## Configuration\n\nRight now the timing values are hardcoded in `src/main.rs`:\n\n- Alert after 1 hour of activity\n- Break duration: 5 minutes\n- Idle timeout: 5 minutes\n\nYou can edit these and recompile if you want different timings!\n\n## Output format\n\nThe state file is just JSON with Pango markup for pretty colors:\n\n```json\n{\n  \"text\": \"\u003cspan foreground='#a6e3a1'\u003e ● \u003c/span\u003e\",\n  \"tooltip\": \"Active: 00:15:42\"\n}\n```\n\nThe different states look like this:\n\n- **Active**: green dot\n- **Idle**: yellow dot\n- **Alert**: orange \"GET UP\" text (hard to miss!)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvhonorato%2Fget-up-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvhonorato%2Fget-up-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvhonorato%2Fget-up-timer/lists"}