hammerspoon README

The project's README from github.com/Hammerspoon/hammerspoon. As one markdown file: README.md.

Hammerspoon

CI codecov.io Downloads current release Downloads all releases Latest tag Latest release

Discord: Click to join

What is Hammerspoon?

This is a tool for powerful automation of OS X. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine.

What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user. With these, you can write Lua scripts to control many aspects of your OS X environment.

How do I install it?

Manually

Homebrew

What next?

Out of the box, Hammerspoon does nothing - you will need to create ~/.hammerspoon/init.lua and fill it with useful code. There are several resources which can help you:

What is the history of the project?

Hammerspoon is a fork of Mjolnir. Mjolnir aims to be a very minimal application, with its extensions hosted externally and managed using a Lua package manager. We wanted to provide a more integrated experience.

What is the future of the project?

Our intentions for Hammerspoon broadly fall into these categories:

hammerspoon (Hammerspoon/hammerspoon)

lua
Searching Database…

What is this?Hammerspoon is a bridge between macOS and a Lua scripting engine, letting you automate and control your Mac through extensions that expose system functionality to Lua scripts.
Is this an app I run, or a library I import into a project?It's a standalone macOS app (Hammerspoon.app) that runs in the background and executes your Lua configuration file, rather than something you embed in another project.
How do I install and start using it?Install via Homebrew (brew install hammerspoon --cask) or by downloading the release and dragging Hammerspoon.app to Applications. Then create ~/.hammerspoon/init.lua and fill it with your own automation code.
Do I need to know Lua before using it?Yes, you write your automations in Lua, since Hammerspoon's extensions are controlled entirely through Lua scripts.
Does it do anything useful right out of the box?No, Hammerspoon ships empty-handed; it has no default behavior until you write your own init.lua configuration using its API and sample configs from the community.
Does it work on any Mac, or just newer ones?It's built for macOS (originally OS X) specifically; no restriction to a particular Mac chip or OS version is mentioned.
Why does Hammerspoon exist instead of just using Mjolnir?Hammerspoon forked from Mjolnir because the team wanted a more integrated experience, whereas Mjolnir aims to stay minimal with externally hosted, Lua-package-managed extensions.
What kind of things can I automate with it?Since it exposes system APIs as Lua extensions, you can script things like window management, hotkeys, and other OS-level behaviors, with the project's stated goal being ever-wider coverage of system APIs and tighter integration between extensions.
Size
158.6 MB
Stars
16.3K
Age
12y
Commits · 90 Days