Hammerspoon
Script your Mac: powerful desktop automation in JavaScript
Visit websiteOverview
macOS can do almost anything — as long as you click through it by hand, every time.
Hammerspoon hands your Mac a script instead. It bridges the operating system to a JavaScript engine, so the repetitive parts of your desktop run themselves.
What you can script
- Windows and hotkeys — arrange your workspace and trigger it from the keyboard
- Screens and audio — control displays and sound without the mouse
- Radios and alerts — Bluetooth, Wi-Fi and notifications, all reachable from code
The current version
Version 2 moves configuration to JavaScript and requires macOS 27 or later. Hammerspoon is a long-running automation tool, still evolving.
Who it's for
Mac users who would rather write a few lines of JavaScript than repeat the same clicks all day.