
Hammerspoon is a macOS automation framework based on Lua. Through the hs modules it calls system APIs directly to enable low-latency control of keyboard shortcuts, window management, the menu bar, file/directory watching, network requests, accessibility events, and more.
Core features & highlights
Lua to customize event handling and workflowshs.hotkey, hs.window, hs.eventtap, hs.filewatcher, etc., to directly control system functionsSuitable scenarios and target users Suitable for developers, DevOps engineers, and advanced macOS users, or anyone who needs fine-grained workflows, key remapping, automated repetitive tasks, or cross-application automation.
Key advantages
Note: Basic Lua knowledge and configuring macOS permissions are required, but once you get started it can greatly improve productivity and control.