# Hammerspoon

> Staggeringly powerful macOS desktop automation with Lua

Source: https://talira.ai/catalog/hammerspoon-4pz3az0x
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Desktop app, Command-line tool
- Categories: [productivity / window management](https://talira.ai/categories/productivity/window-management), [system utilities / macos](https://talira.ai/categories/system-utilities/macos)
- Platforms: macos[^2]
- Licence: MIT[^4]
- Pricing: Free and open source[^4]
- Pricing notes: Free and MIT licensed.
- Free tier: yes[^4]
- Self-hostable: yes[^2][^3]
- Plugins: yes[^2][^5]
- Backed by: [Hammerspoon Team](https://talira.ai/orgs/hammerspoon.md)

Hammerspoon is a free, MIT-licensed [macOS](https://talira.ai/catalog/macos-8swyggxb.md) automation tool that bridges the operating system to a Lua scripting engine. Extensions expose windows, applications, screens, keyboard and mouse events, the clipboard, Wi-Fi, audio devices and more, so a Lua config file can bind hotkeys to window moves, build grid or tiling layouts, or react to events like joining a network. Window management is its most common first use, through modules like hs.window and hs.grid and ready-made Spoons such as MiroWindowsManager, WindowHalfsAndThirds and PaperWM.

## Links

- Website: https://www.hammerspoon.org/
- GitHub: https://github.com/Hammerspoon/hammerspoon
- Docs: https://www.hammerspoon.org/docs/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/cask/hammerspoon>[^1]

## Problems it solves

- write my own window management rules in code instead of living with an app's fixed layouts
- bind a hotkey that moves and resizes several windows into my exact layout
- script my Mac with Lua: hotkeys, windows, Wi-Fi and battery events
- run a set of actions automatically when my laptop joins my home Wi-Fi
- scrolling PaperWM-style window management on macOS as a script I can tweak
- move windows on a grid with keyboard shortcuts I define myself
- react when a monitor is plugged in by rearranging my windows
- a free, open source replacement for several small Mac utilities, configured in one file

## Features

- Lua scripting engine bridged to macOS APIs
- hs.window, hs.grid and window filters for window management
- hotkeys and low-level keyboard and mouse event taps
- access to applications, screens, Wi-Fi, audio devices, batteries, clipboard and location services
- Spoons: official repository of ready-made plugins
- hs command-line tool through hs.ipc
- console for running Lua interactively

## Limitations

- No ready-made window layouts out of the box: you write Lua in ~/.hammerspoon/init.lua or install Spoons[^2][^3]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.50 out of 1.
Signals: maintenance 0.27, adoption 0.84, momentum 0.62, community 0.89, backing 0.30, extensibility 0.40.

- latest release 1.1.1 9 months ago
- 16.5k GitHub stars
- 171 contributors
- backed by Hammerspoon Team
- has a plugin system

Warnings:

- last commit 4 months ago

## Alternatives

- [Rectangle](https://talira.ai/catalog/rectangle-gwzzrsn5.md): Move and resize windows on macOS with keyboard shortcuts and snap areas
- [Moom](https://talira.ai/catalog/moom-vae9mz40.md): Move and zoom windows on the Mac
- [yabai](https://talira.ai/catalog/yabai-k405xr7s.md): Tiling window management for the Mac
- [AeroSpace](https://talira.ai/catalog/aerospace-6seabyav.md): An i3-like tiling window manager for macOS
- [BetterTouchTool](https://talira.ai/catalog/bettertouchtool-fnxdtg5j.md): Customize trackpad gestures, the mouse, keyboard shortcuts, the menu bar, Stream Deck and more
- [Keyboard Maestro](https://talira.ai/catalog/keyboard-maestro-qe2yjdw4.md): Macro and automation app for macOS

## Sources

[^1]: https://formulae.brew.sh/api/cask.json (checked 21 Nov 2026)
[^2]: https://www.hammerspoon.org/ (checked 19 Nov 2026)
[^3]: https://github.com/Hammerspoon/hammerspoon/blob/master/README.md (checked 19 Nov 2026)
[^4]: https://github.com/Hammerspoon/hammerspoon/blob/master/LICENSE (checked 19 Nov 2026)
[^5]: https://www.hammerspoon.org/Spoons/ (checked 19 Nov 2026)
