{"id":16492399,"url":"https://github.com/moyum/my-hammerspoon-config","last_synced_at":"2026-02-05T19:36:40.946Z","repository":{"id":157100922,"uuid":"435827057","full_name":"MoYuM/my-hammerspoon-config","owner":"MoYuM","description":"my hammerspoon config","archived":false,"fork":false,"pushed_at":"2024-12-20T02:35:42.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T14:17:40.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/MoYuM.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,"zenodo":null}},"created_at":"2021-12-07T09:58:29.000Z","updated_at":"2024-12-20T02:35:46.000Z","dependencies_parsed_at":"2025-06-15T14:20:32.578Z","dependency_job_id":null,"html_url":"https://github.com/MoYuM/my-hammerspoon-config","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":"0.19444444444444442","last_synced_commit":"d2e88013fb6ea939c35f380f714666ea627e9b21"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MoYuM/my-hammerspoon-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoYuM%2Fmy-hammerspoon-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoYuM%2Fmy-hammerspoon-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoYuM%2Fmy-hammerspoon-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoYuM%2Fmy-hammerspoon-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MoYuM","download_url":"https://codeload.github.com/MoYuM/my-hammerspoon-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoYuM%2Fmy-hammerspoon-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29130699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T18:55:47.139Z","status":"ssl_error","status_checked_at":"2026-02-05T18:55:04.010Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-11T14:05:41.050Z","updated_at":"2026-02-05T19:36:40.930Z","avatar_url":"https://github.com/MoYuM.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My hammerspoon config\n\nMy personal hotkey configuration, maked by Hammerspoon and Karabiner.\n\nThis is a substitute for capslox(becasue capslox is nolonger free).\n\n## Usage\n\n1. use Karabiner bind capslock to F17\n2. copy all file to `~/.hammerspoon`\n\n## Hotkey\n\nconfig already have a set of keys remap, and you can add new key remap in `keys.lua`.\n\n```lua\n  {\n    -- remap alt + right to capslock + P\n    from = { { 'alt' }, 'right' },\n    to = 'P',\n    -- can hold the key to repeat\n    canRepeat = true,\n  }\n```\n\nthe remap hotkeys that I already set:\n\n| hotkey            | function                                                   |\n| ----------------- | ---------------------------------------------------------- |\n| capslock          | toggle input method between ABC and Chinese                |\n| hold capslock     | do nothing                                                 |\n| capslock + S      | left                                                       |\n| capslock + D      | down                                                       |\n| capslock + F      | right                                                      |\n| capslock + E      | up                                                         |\n| capslock + I      | alt + up                                                   |\n| capslock + K      | alt + down                                                 |\n| capslock + J      | alt + left                                                 |\n| capslock + ;      | cmd + right(move to the end of line)                       |\n| capslock + \\      | esc                                                        |\n| capslock + return | move to a new line                                         |\n| capslock + ]      | shift + ctrl + - (goforward in vscode)                     |\n| capslock + [      | ctrl + - (goback in vscode)                                |\n| capslock + T      | show time                                                  |\n| capslock + M      | delete a word before cursor                                |\n| capslock + O      | select the word on the left side of the cursor and copy it |\n\n## Auto Switch Imput Method\n\nYou can auto switch input method when you focus application or change space, customiza the config in `watcher.lua`. \n\n## Caffeine\n\nI use [Caffeine Spoon](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/Caffeine.spoon.zip) to prevent system sleep.\n\nClick the caffe icon in menubar to switch it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoyum%2Fmy-hammerspoon-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoyum%2Fmy-hammerspoon-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoyum%2Fmy-hammerspoon-config/lists"}