Last checked: 2026-11-29
Hammerspoon is a bridge between macOS and a scripting language. On its own it does nothing; a few lines of Lua let it move windows with a hotkey, react when your Mac joins a Wi-Fi network or warn you when the battery runs low.
What it does well
- Hotkeys. Bind any key combination to a function that moves and resizes windows, launches apps or runs AppleScript.
- Events. Scripts can react to a Wi-Fi network change, a USB device being plugged in, the battery level or a changed file.
- Spoons. Ready-made plugins that you download, open to install, and load with a line of configuration.
- Console and reload. A built-in console runs Lua interactively, and the configuration reloads without restarting the app.
Who it is for
People comfortable with a little code who want automation that ready-made tools do not offer.
Good to know
The Lua version offered here is no longer maintained; its maintainer now works on Hammerspoon 2, a separate app scripted in JavaScript that is still in beta. If you prefer clicking to coding, BetterTouchTool covers hotkeys, gestures and window actions in a settings window.
How to install
- Unzip the download if your browser has not done it already.
- Drag Hammerspoon to Applications.
- The first time you open it, macOS asks you to confirm an app downloaded from the internet; click Open.
- Grant access in System Settings → Privacy & Security → Accessibility, then write your first script in
~/.hammerspoon/init.lua.
FAQ
Is Hammerspoon free?
Yes. Hammerspoon is free and open source under the MIT licence.
Do I need to know how to program to use Hammerspoon?
A little, yes. Out of the box it does nothing: you write a configuration file in Lua, copy examples from the Getting Started Guide, or install ready-made plugins called Spoons.
What is Hammerspoon 2?
A separate app from the same project, rewritten so that you script it in JavaScript instead of Lua. It is in beta, requires macOS 27 or later, keeps its own configuration and can be installed alongside the Lua version.
Is it safe?
Apps downloaded outside the App Store make macOS ask for confirmation on first launch. If macOS blocks the app, see our security-warning guide.
Does it run on your Mac?
No reports yet. Tried it? Be the first to say how it went.
| macOS | 27 | 26 Tahoe | 15 Sequoia | 14 Sonoma | 13 Ventura | 12 Monterey | ≤11 |
|---|---|---|---|---|---|---|---|
| Apple Silicon | |||||||
| Intel |
Not sure? Apple menu → About This Mac → "Chip" (M1–M5) or "Processor" (Intel).
Installation & Troubleshooting
How do I disable SIP and grant Terminal Full Disk Access?
System Integrity Protection shields core macOS files. Leave it on unless a developer's own instructions call for changing it; Terminal needs Full Disk Access to run some install scripts.
How do I open an app that Gatekeeper blocks?
Gatekeeper and quarantine trigger "damaged" or "unidentified developer" warnings. Allow the app with Open Anyway in System Settings → Privacy & Security, or clear the quarantine flag with xattr.
Why do I see security warnings when opening an app?
"Unidentified developer" and "cannot verify" warnings appear for apps Apple has not notarized. After the first blocked launch, click Open Anyway in System Settings → Privacy & Security.
What if the app is damaged or the disk image is corrupted?
"App is damaged and can't be opened" comes from quarantine flags; clear them with xattr -cr on the app. A corrupted DMG usually means an interrupted download.
What is Rosetta 2 and how do I install it?
Rosetta 2 lets Apple Silicon Macs run Intel apps. Install it with softwareupdate --install-rosetta in Terminal.
Why can't I install this app on an Intel Mac?
Some releases are Apple-Silicon-only and will not install on Intel due to architecture mismatch. Use a universal build or an Intel-matched release.
How to fix Adobe app installation errors?
Most Adobe install failures on Apple Silicon come from a missing Rosetta 2 or a stuck Creative Cloud helper. Install Rosetta, quit CCXProcess in Activity Monitor and run the installer again.
What to use instead of Launchpad on macOS 26?
macOS 26 replaced Launchpad with the Apps view in Spotlight. Use Spotlight, the Apps view or a third-party launcher to find and open apps.