Cyber MondayPremium for $6 instead of $9, until 5 DecemberSee the offer

Hammerspoon

by Chris Jones and contributors

Automates the Mac with scripts you write: shortcuts, window moves and actions on events like joining a Wi-Fi network.

Lives in
Background helpers
Price
Free
Works with
Shortcuts, AppleScript
Checked on

What it does

Hammerspoon connects macOS to a scripting engine. You write a configuration file that ties events to actions: a keyboard shortcut that arranges windows, commands that run when the Mac joins your home Wi-Fi, an alert when the battery runs low. Scripts can reach apps, windows, screens, audio devices, notifications, AppleScript and Shortcuts.

Hammerspoon 2 is the main version now. It is scripted in JavaScript and is in beta. Hammerspoon 1, scripted in Lua, can still be downloaded and installed beside it.

Price
Free and open source under the MIT licence.
Runs on
Mac
Needs
macOS 27 or later (Hammerspoon 2)
Kind
Automation

Facts read on Chris Jones and contributors's site on 30 November 2026. Something out of date? Tell us.