Hammerspoon
scripting your whole Mac in Lua, MIT licensed
Open source
Configuration is a Lua file at ~/.hammerspoon/init.lua and nothing else, so expect an evening or two with the API docs before the setup feels finished. It is community maintained rather than company backed, which means support is GitHub issues and a macOS release that breaks something is fixed when a volunteer gets to it. Accessibility permissions are required for anything that moves windows.
Hammerspoon is a Lua interpreter with the whole Mac wired into it. Its modules reach windows and spaces, hotkeys, the menu bar, WiFi, USB, displays, audio devices, the clipboard, HTTP requests and a good deal more. You edit ~/.hammerspoon/init.lua, reload, and the machine behaves the way you described: a hotkey layer that throws windows into thirds, a rule that sends Slack to the second monitor the moment it is plugged in, a menu bar item showing whatever number you actually care about.
The catch is not hidden — it is the premise. There is no settings window, no rule builder, no list of checkboxes. If writing code is a chore rather than the appeal, nothing here will be enjoyable, and the first genuinely useful config takes a couple of sittings with the documentation and other people's dotfiles.
It has been MIT licensed and community maintained since 2014. Support is GitHub issues, which works better than it sounds because the API documentation is unusually thorough for a project with no company behind it.
Someone who wants tiling and nothing more should install Rectangle or Amethyst and be finished in five minutes. Hammerspoon earns its keep when your idea of a good setup is specific enough that no shipping app contains it.
What it looks like

What it does
- Lua API covering windows, spaces, hotkeys, displays and devices
- Window tiling and layout rules expressed as code
- React to WiFi, USB, display and audio device changes
- Custom menu bar items and on-screen overlays
- MIT licensed and forkable, with no account anywhere
Also bought outright in automation
The facts
- Price
- Free
- Licence
- Free and open source
- What you get
- No licence to buy, and the source is public.
- Details
- Free. The project charges nothing and sells nothing; the repository LICENSE file is the MIT licence, copyright 2014-2025. Note that the website itself states neither a price nor a licence, so the MIT claim rests on the repository.
- Free trial
- No
- On Setapp
- No
- Minimum macOS
- not stated
- Developer
- Hammerspoon contributors
- Source
- Repository
- Price checked
- 2026-09-22
Check it yourself - Price band
- Free