{"id":22944623,"url":"https://github.com/ghjayce/win-mac-keyboard-mapping","last_synced_at":"2026-05-20T07:34:36.108Z","repository":{"id":267601603,"uuid":"901730896","full_name":"GHJayce/win-mac-keyboard-mapping","owner":"GHJayce","description":"Having Mac-like keyboard behavior on Windows.","archived":false,"fork":false,"pushed_at":"2025-03-07T10:14:58.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T21:56:38.196Z","etag":null,"topics":["autohotkey","autohotkey-v2","keyboard","keymapping","mac","windows"],"latest_commit_sha":null,"homepage":"","language":"AutoHotkey","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/GHJayce.png","metadata":{"files":{"readme":"readme.cn.md","changelog":"changelog.md","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":"2024-12-11T07:58:04.000Z","updated_at":"2025-03-07T10:11:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f89126c-b77c-4d87-8d9b-15d0ac75715c","html_url":"https://github.com/GHJayce/win-mac-keyboard-mapping","commit_stats":null,"previous_names":["ghjayce/win-mac-keyboard-mapping"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/GHJayce/win-mac-keyboard-mapping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHJayce%2Fwin-mac-keyboard-mapping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHJayce%2Fwin-mac-keyboard-mapping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHJayce%2Fwin-mac-keyboard-mapping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHJayce%2Fwin-mac-keyboard-mapping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GHJayce","download_url":"https://codeload.github.com/GHJayce/win-mac-keyboard-mapping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHJayce%2Fwin-mac-keyboard-mapping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33250371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"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":["autohotkey","autohotkey-v2","keyboard","keymapping","mac","windows"],"created_at":"2024-12-14T14:19:31.328Z","updated_at":"2026-05-20T07:34:36.103Z","avatar_url":"https://github.com/GHJayce.png","language":"AutoHotkey","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Win-Mac-Keyboard-Mapping\n\n[English](./readme.md) | 中文\n\n它能帮助你在windows下拥有像mac一样的按键行为。\n\n\u003e 默认在windows下win键对应mac环境的command键。\n\n例如（映射前按键 -\u003e 映射后按键）：\n- 复制：`win + c` -\u003e `ctrl + c`\n- 粘贴：`win + v` -\u003e `ctrl + v`\n- 撤销：`win + z` -\u003e `ctrl + z`\n- 剪切：`win + x` -\u003e `ctrl + x`\n- 全选：`win + a` -\u003e `ctrl + a`\n- 等等...\n\n由[SharpKeys](https://github.com/randyrants/sharpkeys) + [AutoHotKey](https://github.com/AutoHotkey/AutoHotkey)组合使用。\n\n### 原理\n1. 用SharpKeys将ctrl键和win键进行交换（基于注册表的方式），能实现大部分的按键行为。\n2. 用AutoHotKey完善剩下的按键行为（基于运行脚本的方式，AutoHotKey v2语法版本），例如切换窗口应用、锁屏等。\n\n### 使用\n1. 下载安装SharpKeys，将ctrl键和win键交换。\n2. 下载安装AutoHotKey，将[mac-keyboard.ahk](./mac-keyboard.ahk)下载到本地，右键用管理员运行该脚本。\n\n### 支持\n- windows 10 22H2测试下工作正常。\n- 其他windows系统版本。\n\n### 已知问题\n- 锁屏快捷键与Microsoft快速助手按键冲突，需要在系统-\u003e可选功能-\u003e删除Microsoft快速助手，或者选择更换别的快捷键避免冲突。\n- 映射以后，结束终端因习惯问题会按ctrl+c，实际上触发的是win+c，误唤起Cortana，也建议将其卸载。\n- 要想使phpstorm拥有和mac一样的快捷键，在运行本脚本后需要在phpstorm中安装[macos-for-all](https://plugins.jetbrains.com/plugin/13968-macos-for-all)按键插件。\n- 切换窗口应用快捷键和`dev-c++`应用程序的ctrl+tab快捷键冲突，建议调整`dev-c++`的快捷键。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghjayce%2Fwin-mac-keyboard-mapping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghjayce%2Fwin-mac-keyboard-mapping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghjayce%2Fwin-mac-keyboard-mapping/lists"}