{"id":17139419,"url":"https://github.com/mtwebster/mouse-damper","last_synced_at":"2026-01-07T01:15:26.996Z","repository":{"id":40826845,"uuid":"219400561","full_name":"mtwebster/mouse-damper","owner":"mtwebster","description":"An attempt to use libevdev to dampen small pointer movements to help people with hand tremors","archived":false,"fork":false,"pushed_at":"2020-12-03T14:26:51.000Z","size":20241,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T13:11:24.852Z","etag":null,"topics":["a11y","accessibility","cython","evdev","hand-tremors","libevdev","mouse","movement","shake","shaking","tremor"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtwebster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-04T02:26:04.000Z","updated_at":"2023-12-03T16:44:48.000Z","dependencies_parsed_at":"2022-08-30T15:52:56.196Z","dependency_job_id":null,"html_url":"https://github.com/mtwebster/mouse-damper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtwebster%2Fmouse-damper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtwebster%2Fmouse-damper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtwebster%2Fmouse-damper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtwebster%2Fmouse-damper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtwebster","download_url":"https://codeload.github.com/mtwebster/mouse-damper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245228045,"owners_count":20580997,"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":["a11y","accessibility","cython","evdev","hand-tremors","libevdev","mouse","movement","shake","shaking","tremor"],"created_at":"2024-10-14T20:12:10.687Z","updated_at":"2026-01-07T01:15:26.991Z","avatar_url":"https://github.com/mtwebster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mouse-damper\n\nA utility that helps prevent accidental clicks and drag operations caused by hand tremors or unsteady mouse movements.\n\n## The Problem\n\nFor people with hand tremors or conditions like essential tremor, using a mouse can be frustrating. Small, involuntary movements between pressing and releasing a mouse button often lead to:\n\n- **Missed clicks** - The pointer drifts slightly, causing you to click the wrong element\n- **Accidental drags** - Movement during a click is interpreted as a drag operation\n- **Failed double-clicks** - The pointer moves between the first and second click, missing the target\n\nWhile toolkit libraries (GTK, Qt) have some built-in tolerance for small movements, they're limited in effectiveness and don't prevent mis-targeting on button-release events.\n\n## How It Works\n\nMousedamper solves this by freezing the pointer in place when you press a mouse button. The freeze continues until one of three conditions is met:\n\n1. **Double-click completion** - You complete a double-click (press, release, press within the timeout period)\n2. **Timeout expires** - The double-click timeout period passes\n3. **Movement threshold exceeded** - You move the physical mouse beyond a configurable distance\n\nThis ensures that the pointer stays exactly where you clicked, preventing drift from affecting your actions. When you intentionally move the mouse beyond the threshold, normal movement resumes immediately.\n\n## Technical Details\n\nMousedamper uses libevdev to intercept mouse input events at the `/dev/input` level. It automatically discovers and filters all mouse-type devices, applying the pointer freeze logic before events reach the desktop environment. The program requires root privileges to access input devices and is installed as a setuid binary.\n\nConfiguration is managed through GSettings and includes:\n- Enable/disable on session start\n- Breakout threshold (how far you must move to unfreeze)\n- Optional double-click timeout override","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtwebster%2Fmouse-damper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtwebster%2Fmouse-damper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtwebster%2Fmouse-damper/lists"}