{"id":50960690,"url":"https://github.com/hoyaaaa/trackpoint-daemon-macos","last_synced_at":"2026-06-18T13:32:58.962Z","repository":{"id":362441500,"uuid":"1258050999","full_name":"hoyaaaa/trackpoint-daemon-macos","owner":"hoyaaaa","description":"macOS menu bar daemon for ThinkPad TrackPoint Keyboard II — middle button scroll, key remapping, and pointer sensitivity","archived":false,"fork":false,"pushed_at":"2026-06-04T08:06:58.000Z","size":402,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T09:03:54.588Z","etag":null,"topics":["cgeventtap","hidutil","keyboard","lenovo","macos","menu-bar","objc","objcective-c","thinkpad"],"latest_commit_sha":null,"homepage":"","language":"Objective-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/hoyaaaa.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":"2026-06-03T08:29:58.000Z","updated_at":"2026-06-04T08:07:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hoyaaaa/trackpoint-daemon-macos","commit_stats":null,"previous_names":["hoyaaaa/trackpoint-daemon-macos"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hoyaaaa/trackpoint-daemon-macos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyaaaa%2Ftrackpoint-daemon-macos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyaaaa%2Ftrackpoint-daemon-macos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyaaaa%2Ftrackpoint-daemon-macos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyaaaa%2Ftrackpoint-daemon-macos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoyaaaa","download_url":"https://codeload.github.com/hoyaaaa/trackpoint-daemon-macos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoyaaaa%2Ftrackpoint-daemon-macos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34493361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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":["cgeventtap","hidutil","keyboard","lenovo","macos","menu-bar","objc","objcective-c","thinkpad"],"created_at":"2026-06-18T13:32:58.225Z","updated_at":"2026-06-18T13:32:58.955Z","avatar_url":"https://github.com/hoyaaaa.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trackpoint-daemon-macos\n\nA lightweight macOS menu bar app that makes the ThinkPad TrackPoint Keyboard II work like it does on Windows.\n\n## Features\n\n- **Middle button scroll** — Hold middle button and move the TrackPoint to scroll (non-linear curve, sub-threshold accumulation)\n- **Scroll direction** — Auto-detects macOS natural scroll setting and matches it\n- **Right Option → F18** — Remap Right Option to F18 for input source switching\n- **Left Opt ↔ Left Cmd swap** — Fix reversed modifier key layout on the Windows-designed keyboard\n- **Pointer sensitivity** — Adjustable 1–9 via settings (BLE-compatible software scaling)\n- **Scroll speed** — Adjustable 1.0–8.0 via settings\n- **Mouse acceleration disabled** — Linear pointer movement while TrackPoint is connected; restored on disconnect\n- **Auto-activate on connect** — All remaps apply when ThinkPad connects, revert on disconnect\n\n## Why F18?\n\nmacOS uses a keyboard shortcut to switch input sources (e.g. English ↔ Korean). The Right Option key on the ThinkPad keyboard is inconvenient for this. By remapping it to F18, you can assign a clean, conflict-free shortcut:\n\n**System Settings → Keyboard → Keyboard Shortcuts → Input Sources → Select the previous input source → press F18**\n\nF18 is a safe choice because no app uses it by default.\n\n## Why Left Opt ↔ Left Cmd swap?\n\nThe ThinkPad TrackPoint Keyboard II is designed for Windows, where the key order (left to right) is:\n\n```\nCtrl  |  Win  |  Alt  |  Space  ...\n```\n\nOn macOS the expected order is:\n\n```\nCtrl  |  Option  |  Command  |  Space  ...\n```\n\nThe physical keys are swapped compared to macOS convention. This setting corrects the layout so muscle memory from a MacBook keyboard works correctly.\n\n## Requirements\n\n- macOS 12+\n- ThinkPad TrackPoint Keyboard II (VID `0x17EF`)\n- Xcode Command Line Tools (`xcode-select --install`)\n\n## Install\n\n```bash\ngit clone https://github.com/hoyaaaa/trackpoint-daemon-macos.git\ncd trackpoint-daemon-macos\nbash install.sh\n```\n\nGrant **Accessibility** permission when prompted:\n**System Settings → Privacy \u0026 Security → Accessibility → TrackPointD ✓**\n\n\u003e If you recompile from source, the code signature changes and macOS invalidates the permission — you must re-grant it.\n\n## Uninstall\n\n```bash\nbash uninstall.sh\n```\n\n## Settings\n\nClick the menu bar icon (`TP+` when connected, `TP-` when not, `TP!` if accessibility not granted) → **Settings...**\n\n| Setting | Description |\n|---|---|\n| Right Option → F18 | Remap Right Option key to F18 |\n| Left Opt ↔ Left Cmd Swap | Fix modifier key order for macOS layout |\n| Pointer Sensitivity | 1 (slow) – 9 (fast), default 5. Applied in software, works over BLE. |\n| Scroll Speed | 1.0 (slow) – 8.0 (fast), default 3.5. |\n| Press-to-Select | Tap the TrackPoint stick briefly → left click. Off by default. |\n\n## How it works\n\n| Feature | Mechanism |\n|---|---|\n| Middle button scroll | Unified `CGEventTap` at `kCGHIDEventTap` (earliest level) |\n| Scroll direction | Reads `com.apple.swipescrolldirection` from NSUserDefaults |\n| Right Option → F18 | `CGEventTap` (HID level, no delay) |\n| Left Opt ↔ Left Cmd swap | `hidutil` kernel-level key remap |\n| Pointer sensitivity | `CGEventSetLocation` delta scaling (HID level) |\n| Acceleration removal | `IOHIDSetMouseAcceleration(-1.0)` on connect, restored on disconnect |\n| Device detection | `IOHIDManager` matching Lenovo VID `0x17EF` |\n\n## Windows parity\n\n| Behavior | Status |\n|---|---|\n| Middle button scroll | ✓ |\n| Scroll direction (matches system setting) | ✓ |\n| Key remapping (Opt↔Cmd, Right Opt→F18) | ✓ |\n| Pointer sensitivity (1–9 scale) | ✓ (software scaling, not hardware) |\n| Scroll speed adjustment | ✓ |\n| Non-linear scroll curve | ✓ (approximate) |\n| Acceleration curve | ✓ (sigmoid 1.0x–2.5x, approximate) |\n| Press-to-select | ✓ (tap stick → left click; enable in Settings) |\n\n## License\n\nMIT © [hoyaaaa](https://github.com/hoyaaaa)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoyaaaa%2Ftrackpoint-daemon-macos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoyaaaa%2Ftrackpoint-daemon-macos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoyaaaa%2Ftrackpoint-daemon-macos/lists"}