Hammerspoon Icon

Hammerspoon

Powerful automation tool using the Lua scripting engine.

HammerspoonOverview

Hammerspoon is a tool for powerful automation of OS X. At its core, it 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.

This is very hard to describe succinctly. You can write Lua code that interacts with OS X APIs for applications, windows, mouse pointers, filesystem objects, audio devices, batteries, screens, low-level keyboard/mouse events, clipboards, location services, wifi, and more.

Typically you would write a configuration file in Lua that connects events to actions. You might want to bind a keyboard shortcut to a series of window operations, or an applescript. You might want to run a series of commands when your wifi interface connects to your home network. You might want to display an alert when your battery drops below a certain percentage. You might want to do something crazy like have iTunes automatically start playing when your Mac detects you are in Paris.

If you want to explore the options Hammerspoon offers, check out the Getting Started Guide and the full API documentation.

NEW

Extensions:

  • Fixed: hs.hotkey should be less likely to crash in confusing edge cases
  • Changed: Added hs.window.toggleZoom(), which mirrors the behaviour of the OS X window zoom button (pre Yosemite)
  • Changed: Added hs.crash.isMainThread() to aid debugging odd callback related crashes
  • Changed: hs.alert() is now callable, to reduce repetition

HammerspoonInformation

Version
0.9.16
Date
01.12.15
License
Free
Language
English
File Size
2.3 MB
Developer
Category
SubCategory
Operating Systems
Mac OS X
System Requirements
  • OS X 10.8 or later
Yoink Icon
Simplifies drag and drop between Spaces and fullscreen apps.
Demo
Skitch Icon
Take screenshots, annotate them, and share them online.
Free
QuickRes Icon
Quickly switch resolutions on your Retina display.
Paid
Resolutionator Icon
Allows users to quickly change the resolution of all attached displays.
Trial
Duet Icon
Use your iPad as an external display.
Free
Spectacle Icon
Organize your windows without using a mouse.
Free
Air Display Icon
Use your iOS device as a second monitor.
Trial
cDock Icon
Customize your dock.
Free
More