{"id":26281244,"url":"https://github.com/mte90/wcentermouse","last_synced_at":"2025-06-30T20:05:31.768Z","repository":{"id":276342788,"uuid":"929003640","full_name":"Mte90/wcentermouse","owner":"Mte90","description":"Center the mouse with uinput on Wayland","archived":false,"fork":false,"pushed_at":"2025-02-07T16:26:29.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T22:05:44.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/Mte90.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}},"created_at":"2025-02-07T16:24:07.000Z","updated_at":"2025-02-10T15:00:17.000Z","dependencies_parsed_at":"2025-02-07T17:38:53.273Z","dependency_job_id":null,"html_url":"https://github.com/Mte90/wcentermouse","commit_stats":null,"previous_names":["mte90/wcentermouse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mte90/wcentermouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mte90%2Fwcentermouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mte90%2Fwcentermouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mte90%2Fwcentermouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mte90%2Fwcentermouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mte90","download_url":"https://codeload.github.com/Mte90/wcentermouse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mte90%2Fwcentermouse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262842921,"owners_count":23373166,"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":[],"created_at":"2025-03-14T15:20:12.587Z","updated_at":"2025-06-30T20:05:31.644Z","avatar_url":"https://github.com/Mte90.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WCenterMouse\n[![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)   \n\nUtility to center the mouse pointer on the screens, tested in Wayland.\nBased on ChatGPT and Co-Pilot code and improved manually.\n\nAs Wayland doesn't support aboslute position for mouse and in a multi monitor environment is not good, we set a big negative position initially to set a different later.\nThe program require the size of the various monitor configured in the source code.\n\nNote: xdotool is only for Xorg and ydotool not works well for the same reason with multi monitors environment.\n\n## Compile\n\n```\ng++ main.cpp -o wcentermouse\n```\n\n## Use it\n\nas root:\n\n```\nvisudo wcentermouse\n```\n\nWith this automatically sudo will execute it without asking the password and also sharing the XDG runtime variable.\n\n```\nALL ALL=(root) NOPASSWD: /path/wcentermouse\nDefaults    env_keep += \"XDG_RUNTIME_DIR\"\n```\n\nRun\n\n```\nsudo ./wcentermouse 1/2/3/etc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmte90%2Fwcentermouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmte90%2Fwcentermouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmte90%2Fwcentermouse/lists"}