{"id":17685581,"url":"https://github.com/cmpadden/wm.spoon","last_synced_at":"2026-03-01T19:31:19.470Z","repository":{"id":239701147,"uuid":"799756055","full_name":"cmpadden/wm.spoon","owner":"cmpadden","description":"Hammerpoon Window Manager","archived":false,"fork":false,"pushed_at":"2026-02-02T22:27:02.000Z","size":84,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-03T10:59:27.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/cmpadden.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":"2024-05-13T03:14:56.000Z","updated_at":"2026-02-02T21:36:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9b1a413-87ed-47b8-9f94-1c1daf33f001","html_url":"https://github.com/cmpadden/wm.spoon","commit_stats":null,"previous_names":["cmpadden/wm.spoon"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cmpadden/wm.spoon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmpadden%2Fwm.spoon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmpadden%2Fwm.spoon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmpadden%2Fwm.spoon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmpadden%2Fwm.spoon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmpadden","download_url":"https://codeload.github.com/cmpadden/wm.spoon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmpadden%2Fwm.spoon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29981413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"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-24T10:28:19.613Z","updated_at":"2026-03-01T19:31:19.462Z","avatar_url":"https://github.com/cmpadden.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"![wm.spoon banner](.github/wm.spoon.png)\n\n# wm.spoon\n\nWindow manager built on top of [Hammerspoon](https://www.hammerspoon.org/)--the automation framework for macOS.\n\n## Installation\n\nDownload the latest [release](https://github.com/cmpadden/wm.spoon/releases/), decompress the file, and double click the Spoon, or run the following commands:\n\n```bash\n   # Replace \u003cv0.2.3\u003e with your desired version\n λ curl -L -O \"https://github.com/cmpadden/wm.spoon/releases/download/v0.2.3/wm.spoon.zip\"\n\n   # The Hammerspoon Console should open and indicate that plugin has loaded\n λ unzip wm.spoon.zip \u0026\u0026 open wm.spoon\n```\n\nRefer to the [official documentation](https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md) for more information on Spoons, and how to install them.\n\n## Usage\n\nThere are two primary concepts of `wm.spoon`: **layouts** and **geometries**. To use `wm.spoon` one must first define a layouts (or many), which is a table of geometries. A geometry is a built-in utility of Hammerspoon, [hs.geometry](https://www.hammerspoon.org/docs/hs.geometry.html), that represents the height, width, and x-and-y positions of a rectangle.\n\nThe user defines an table of layouts on `config.layouts`, which are bound to `\u003cprefix\u003e + 1, 2, 3, ... n`; using these hotkeys one can cycle through window layouts.\n\nThen, the user can cycle the position of a window between the geometries of this layout using `\u003cprefix\u003e + h`, and `\u003cprefix\u003e + l` by default.\n\nAfter moving windows to their desired positions, the state can be saved using the default binding of `\u003cprefix\u003e + -`.\n\n## Configuration\n\nWhen initializing `wm.spoon`, the user is required to define their layouts, however, they also have the option to tweak key bindings along with a variety of other options.\n\nA collection of pre-defined geometries can be found in `spoon.wm.builtins`.\n\n```lua\nhs.loadSpoon(\"wm\")\n\nspoon.wm.config.layouts = {\n    -- ┌-----------─┐\n    -- | [        ] |\n    -- | [        ] |\n    -- └------------┘\n    {\n        spoon.wm.builtins.full,\n        spoon.wm.builtins.pip_bottom_right,\n    },\n    -- ┌-----------─┐\n    -- | [   ][   ] |\n    -- | [   ][   ] |\n    -- └------------┘\n    {\n        spoon.wm.builtins.padded_left,\n        spoon.wm.builtins.padded_right,\n        spoon.wm.builtins.pip_bottom_right,\n    },\n    -- ┌-----------─┐\n    -- |  [      ]  |\n    -- |  [      ]  |\n    -- └------------┘\n    {\n        spoon.wm.builtins.padded_center,\n        spoon.wm.builtins.pip_bottom_right,\n    },\n    -- ┌-----------─┐\n    -- |    [  ]    |\n    -- |    [  ]    |\n    -- └------------┘\n    {\n        spoon.wm.builtins.skinny,\n        spoon.wm.builtins.pip_top_right,\n    },\n}\n\nspoon.wm:init()\n```\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\".github/wm.spoon.logo.png\" alt=\"wm.spoon logo\" height=\"50px\"\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmpadden%2Fwm.spoon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmpadden%2Fwm.spoon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmpadden%2Fwm.spoon/lists"}