{"id":13772552,"url":"https://github.com/gaul/libinput-force-middle-click-emulation","last_synced_at":"2025-08-15T22:44:00.916Z","repository":{"id":144979190,"uuid":"151618957","full_name":"gaul/libinput-force-middle-click-emulation","owner":"gaul","description":"force libinput to emulate a middle click when pressing left and right buttons simultaneously","archived":false,"fork":false,"pushed_at":"2020-04-01T05:33:46.000Z","size":2,"stargazers_count":20,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T00:37:37.474Z","etag":null,"topics":["ld-preload","libinput","middle-click","mutter","wayland"],"latest_commit_sha":null,"homepage":"","language":"C","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/gaul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-04T18:36:50.000Z","updated_at":"2024-05-05T12:48:08.000Z","dependencies_parsed_at":"2023-04-11T01:31:36.691Z","dependency_job_id":null,"html_url":"https://github.com/gaul/libinput-force-middle-click-emulation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gaul/libinput-force-middle-click-emulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Flibinput-force-middle-click-emulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Flibinput-force-middle-click-emulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Flibinput-force-middle-click-emulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Flibinput-force-middle-click-emulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaul","download_url":"https://codeload.github.com/gaul/libinput-force-middle-click-emulation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaul%2Flibinput-force-middle-click-emulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270640942,"owners_count":24621044,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ld-preload","libinput","middle-click","mutter","wayland"],"created_at":"2024-08-03T17:01:05.323Z","updated_at":"2025-08-15T22:44:00.859Z","avatar_url":"https://github.com/gaul.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# libinput-force-middle-click-emulation\n\nForce libinput to emulate a middle click when pressing left and right buttons\nsimultaneously.  This allows GNOME Wayland (and other Wayland compositors that\ndo not expose libinput configuration) to configure the existing libinput\nfunctionality.\n\n## Information for users of mutter version 3.36.1 or newer\nThis is not needed anymore if you use `mutter` version 3.36.1 or newer.\nThere it is possible to directly enable middle click emulation:\n```bash\ngsettings set org.gnome.desktop.peripherals.mouse middle-click-emulation true\n```\n\n## Installation\n\nBuild `hook.so` then configure `libinput` to `LD_PRELOAD` it:\n\n```bash\nmake\necho 'export LD_PRELOAD=\"$LD_PRELOAD /path/to/hook.so\"' | sudo tee -a /etc/profile.d/libinput.sh\n```\n\nLog out and log in to enable.\n\n## References\n\n* [GNOME mutter issue](https://gitlab.gnome.org/GNOME/mutter/issues/238)\n* [libinput documentation](https://wayland.freedesktop.org/libinput/doc/latest/middle-button-emulation.html)\n* Inspired by [scroll-emulation](https://github.com/PeterCxy/scroll-emulation)\n\n## License\n\n* MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaul%2Flibinput-force-middle-click-emulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaul%2Flibinput-force-middle-click-emulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaul%2Flibinput-force-middle-click-emulation/lists"}