{"id":15527180,"url":"https://github.com/sixlive/hammerspoon-appsizer","last_synced_at":"2026-05-13T02:33:48.827Z","repository":{"id":222328437,"uuid":"756930474","full_name":"sixlive/hammerspoon-appsizer","owner":"sixlive","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-20T12:57:19.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-27T12:35:19.745Z","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/sixlive.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-13T15:30:15.000Z","updated_at":"2024-02-13T15:41:58.000Z","dependencies_parsed_at":"2024-02-13T16:49:56.506Z","dependency_job_id":"383db737-8ae5-408a-9ad1-d58cb06dafe5","html_url":"https://github.com/sixlive/hammerspoon-appsizer","commit_stats":null,"previous_names":["sixlive/hammerspoon-appsizer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sixlive/hammerspoon-appsizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fhammerspoon-appsizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fhammerspoon-appsizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fhammerspoon-appsizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fhammerspoon-appsizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sixlive","download_url":"https://codeload.github.com/sixlive/hammerspoon-appsizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixlive%2Fhammerspoon-appsizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32965364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"online","status_checked_at":"2026-05-13T02:00:07.132Z","response_time":115,"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":[],"created_at":"2024-10-02T11:04:54.043Z","updated_at":"2026-05-13T02:33:48.810Z","avatar_url":"https://github.com/sixlive.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppSizer Spoon for Hammerspoon\n\nAppSizer is a configurable module (Spoon) for Hammerspoon that automatically resizes application windows to predefined sizes when they are first focused or when the F14 key is pressed. \n\n## Installation\n\nTo install the AppSizer Spoon, clone this repository into your `~/.hammerspoon/Spoons/` directory:\n\n## Usage\n\nIn your Hammerspoon `init.lua` script, require the AppSizer Spoon and configure your applications with their default sizes:\n\n```lua\nlocal AppSizer = hs.loadSpoon(\"AppSizer\")\nAppSizer:setAppSizeMap({\n    [\"Telegram\"] = {{w=470, h=900}, {w=1160, h=710}},\n    [\"Todoist\"] = {{w=635, h=920}, {w=1115, h=760}},\n    [\"Slack\"] = {{w=1300, h=780}, {w=980, h=670}},\n    [\"WezTerm\"] = {w=1357, h=920}\n})\nAppSizer:start()\n```\n\n\u003e [!TIP]\n\u003e Keep an eye on the Hammerspoon logs to see your window sizes! It logs the size it is scaling from and to.\n\nYou can add as many applications as you want to the `AppSizer:setAppSizeMap(map)` function. The map should be a table where the keys are the application names and the values are tables of dimensions (with `w` for width and `h` for height).\n\nThe applications will be automatically resized to the specified dimensions the first time they are focused after Hammerspoon starts, or when the F14 key is pressed.\n\nTo disable the auto resize on first focus omit calling `AppSizer:start()`.\n\nTo stop the AppSizer, call the `stop()` function:\n\n```lua\nAppSizer:stop()\n```\n\n## Note\n\nThe `start()` function initializes an application watcher for each application in the `appSizeMap`. The watchers are stored in a global table and are not stopped when the `init.lua` script is reloaded. To ensure that old watchers are stopped when the script is reloaded, you should call the `AppSizer:stop()` function at the beginning of your `init.lua` script.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the `LICENSE.md` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixlive%2Fhammerspoon-appsizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixlive%2Fhammerspoon-appsizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixlive%2Fhammerspoon-appsizer/lists"}