explaingit

hammerspoon/hammerspoon

15,406Objective-C

TLDR

Hammerspoon is a macOS desktop automation tool that acts as a bridge between the operating system and a scripting engine powered by Lua, a lightweight, easy-to-learn programming language.

Mindmap

A visual breakdown will appear here once this repo is fully enriched.

In plain English

Hammerspoon is a macOS desktop automation tool that acts as a bridge between the operating system and a scripting engine powered by Lua, a lightweight, easy-to-learn programming language. It gives you programmatic control over many aspects of your Mac: window management, keyboard shortcuts, application launching, system events, notifications, and more. Out of the box, Hammerspoon does nothing on its own. To use it, you create a configuration file at a specific location on your Mac and fill it with Lua scripts that define your automations. The tool exposes macOS system functionality through a set of built-in extensions, each covering a different area of the system. You might write a script to automatically resize and position windows when you connect a monitor, trigger actions when specific applications become active, or set up custom key combinations that do anything you can describe in code. Installation is straightforward, download the app and drag it to Applications, or install it via Homebrew with a single command. Hammerspoon started as a fork of a similar project called Mjolnir, but with the goal of providing a more integrated and complete experience rather than relying on external packages. A getting started guide, full API documentation, and a collection of sample configurations contributed by users are all available to help new users build their first automations.

Open on GitHub → Explain another repo

Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.