{"id":16288289,"url":"https://github.com/jbouter/libinput-magic-mouse","last_synced_at":"2026-01-19T23:35:43.369Z","repository":{"id":140686535,"uuid":"255429348","full_name":"jbouter/libinput-magic-mouse","owner":"jbouter","description":"  Apple's Magic Trackpad 2 on Ubuntu with libinput-gestures","archived":false,"fork":false,"pushed_at":"2020-09-22T19:04:12.000Z","size":29,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T21:49:25.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/jbouter.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-13T20:01:07.000Z","updated_at":"2025-01-07T01:20:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e46f73c-09ac-4286-81a0-a229e3cc2973","html_url":"https://github.com/jbouter/libinput-magic-mouse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jbouter/libinput-magic-mouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbouter%2Flibinput-magic-mouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbouter%2Flibinput-magic-mouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbouter%2Flibinput-magic-mouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbouter%2Flibinput-magic-mouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbouter","download_url":"https://codeload.github.com/jbouter/libinput-magic-mouse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbouter%2Flibinput-magic-mouse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28590324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"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":[],"created_at":"2024-10-10T19:47:51.024Z","updated_at":"2026-01-19T23:35:43.355Z","avatar_url":"https://github.com/jbouter.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# libinput-magic-mouse\n\n## Prerequisites\n\nAs of recently, this guide is only written for Ubuntu. But it shouldn't be too hard to adjust for other distributions.\n\nThis guide used to be based upon libinput-gestures, but is now using [fusuma](https://github.com/iberianpig/fusuma)\n\nPlease install fusuma according to its installation guide. In short:\n\n```bash\nsudo gpasswd -a $USER input\nsudo apt install ruby libinput-tools wmctrl libevdev-dev ruby-dev\nsudo gem install fusuma fusuma-plugin-wmctrl fusuma-plugin-keypress fusuma-plugin-sendkey\n```\n\n## Configuration for fusuma\n\n```bash\nmkdir -p ~/.config/fusuma\nvim ~/.config/fusuma/config.yml\n```\n\nExample configurations are available on the [fusuma](https://github.com/iberianpig/fusuma) repository. Mine is included inside this repo. To use it:\n\n```bash\ncp -v fusuma-config.yml ~/.config/fusuma/config.yml\n```\n\n## systemd service for fusuma\n\nplace `/etc/systemd/system/fusuma.service`:\n\n```systemd\n[Unit]\nDescription=Fusuma\nStartLimitIntervalSec=500\nStartLimitBurst=5\n\n[Service]\nUser=jeffrey\nGroup=jeffrey\nEnvironment=\"DISPLAY=:0\"\nExecStart=/usr/local/bin/fusuma\nType=simple\nRestart=on-failure\nRestartSec=5s\n\n[Install]\nWantedBy=multi-user.target\n```\n\n*Obviously, adjust the `User` and `Group` settings*\n\nAnd enable the service:\n\n```bash\nsystemctl daemon-reload\nsystemctl enable --now fusuma.service\n```\n\n## Libinput Quirks\n\nIn order to get the touchpad to work properly, create the following file:\n\n`/etc/libinput/local-overrides.quirks`:\n\n```code\n[Touchpad touch override]\nMatchUdevType=touchpad\nMatchName=*Magic Trackpad 2\nAttrPressureRange=2:0\nAttrTouchSizeRange=20:10\n```\n\n## Xorg configuration\n\nLast time I tested the touchpad with KDE Plasma on 20.04 (Neon), I needed to configure the Trackpad through xorg settings\n\n```bash\nmkdir -p /etc/X11/xorg.conf.d\n```\n\n`/etc/X11/xorg.conf.d/10-libinput.conf`:\n\n```code\nSection \"InputClass\"\n  Identifier \"libinput touchpad catchall\"\n  MatchIsTouchpad \"on\"\n  MatchDevicePath \"/dev/input/event*\"\n  Option \"Tapping\" \"True\"\n  Option \"TappingDrug\" \"True\"\n  Option \"DisableWhileTyping\" \"True\"\n  Option \"AccelProfile\" \"adaptive\"\n  Option \"AccelSpeed\" \"0.3\"\n  Option \"AccelerationNumerator\" \"2\"\n  Option \"AccelerationDenominator\" \"1\"\n  Option \"AccelerationThreshold\" \"4\"\n  Option \"AdaptiveDeceleration\" \"2\"\n  Option \"NaturalScrolling\" \"1\"\n  Driver \"libinput\"\nEndSection\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbouter%2Flibinput-magic-mouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbouter%2Flibinput-magic-mouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbouter%2Flibinput-magic-mouse/lists"}