Hammerspoon is a desktop automation tool for OS X. It bridges various system level APIs into a Lua scripting engine, allowing you to add powerful effects to your system by writing Lua scripts.What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality to the user.