Hammerspoon

Hammerspoon — Free Download. macOS automation with Lua
Hammerspoon is an automation tool for macOS. It connects operating system APIs to a Lua scripting engine. Users write scripts to control windows, applications, hardware, and system events using keyboard shortcuts or specific triggers.
5.0(2 ratings)

Download Hammerspoon (Official links)
File size: 9.42 MB
The latest version of Hammerspoon is: 1.1.0
Operating system: MacOS
Languages: English
Price: $0.00 USD

  • Window Automation. Precise control over the position, size, and arrangement of windows across multiple displays. Allows creating custom layouts, moving windows to defined workspaces, and adjusting dimensions with keyboard commands. Functions include searching by application, title, or specific filters.
  • Custom Menu Creation. Implementation of menus in the system status bar with dynamic items. Menus can execute Lua functions, display system statuses, or contain nested submenus. Item updates are programmable in real-time.
  • Input Event Capture. Monitoring and modification of keyboard presses, mouse clicks, and trackpad gestures. Allows redefining hardware behaviors, creating global shortcuts, or intercepting inputs before they reach applications. Includes filtering by specific application.
  • Audio Control. Management of audio input and output devices. Allows changing volumes, balance, and muting devices via commands. Includes detection of USB/Bluetooth devices and actions based on headphone connections.
  • WiFi Network Management. Detection of wireless network changes and execution of conditional scripts. Functions allow retrieving the SSID network name, BSSID address, and connection status. Used to adjust settings based on location.
  • Clipboard Manipulation. Advanced reading and writing of the system clipboard content. Supports different data types such as text, images, and HTML. Includes clip history and content transformations using regular expressions.
  • File System Interaction. Monitoring changes in specific directories with immediate reaction. Functions allow listing, copying, moving, and deleting files via scripts. Includes real-time notifications about modifications.
  • Mouse Control. Absolute and relative positioning of the cursor on the screen. Simulation of clicks, drags, and movements with adjustable speed settings. Integration with screen coordinates and active windows.
  • System Notifications. Creation and management of native macOS notifications. Allows displaying alerts with custom buttons that execute Lua functions. Includes monitoring of notifications from other applications.
  • External Task Execution. Launching and controlling operating system processes from Lua. Real-time capture of standard output and error. Tasks run in the background with callbacks for completion.
  • Battery and Power Management. Monitoring the charge state of the battery on laptops. Obtains information about capacity, cycles, and battery health. Triggers events when connecting or disconnecting from power.
  • Application Control. Launching, closing, and switching between applications via commands. Retrieving information about running applications such as PID, executable path, and associated windows. Allows forcing focus on specific applications.
  • Text Manipulation in Input Fields. Inserting and replacing text in active fields via keyboard emulation. Supports shortcuts for spell checking, formatting, and cursor movement. Works in most native macOS applications.
  • HTTP/HTTPS Integration. Built-in web server to receive requests from browsers or other applications. HTTP client to make requests to external APIs. Supports WebSockets for real-time bidirectional communication.

Hammerspoon's development began in 2014 as an evolution of previous automation projects for macOS. The main developers maintain the project with contributions from the community. The program is written primarily in a combination of Objective-C and C, with the Lua 5.4 engine embedded for script execution.


Alternatives to Hammerspoon:

Osenpa Auto Clicker — Free Download. Step-based Macro and Click automation

Osenpa Auto Clicker

Osenpa Auto Clicker is a desktop automation tool for Windows that replaces repetitive clicking and keyboard tasks with a step-based workflow.
Price: Free   Size: 66.9 MB   Version: 1.0.0   OS: Windows
Stepwise — Free Download. Windows task automation software

Stepwise

Stepwise is a Windows-native automation tool developed by a student-run startup.
Price: $10   Size: 77.1 MB   Version: 2.2.7   OS: Windows
Fenestrae — Free Download. Window layout manager with profiles and arrange mode

Fenestrae

Fenestrae is software for Windows 11 that solves two common problems in multi-monitor setups: windows scattering whenever the display configuration changes, and the tedious manual alignment of windows.
Price: $20   Size: 45.2 MB   Version: 1.0   OS: Windows
PeakFlow — Free Download. Six productivity tools for Windows 10/11

PeakFlow

PeakFlow for Windows is a productivity suite composed of six independent tools: FocusDim, ScreenSlap, SoundSplit, QuickBoard, MeetReady, and Liquid Focus.
Price: $3   Size: 183 MB   Version: 1.0.0   OS: Windows
ClawBridge — Free Download. Browser and Desktop Automation with AI

ClawBridge

ClawBridge is a free and open-source artificial intelligence agent that automates tasks in the browser and desktop applications through natural language instructions.
Price: Free   Size: 295 MB   Version: 0.3.5   OS: Windows
saMacros — Free Download. Java tool for extensible macros

saMacros

saMacros is a Java application for recording and playing back mouse and keyboard macros.
Price: Free   Size: 0.243 MB   Version: 2.0.0   OS: Windows
Actus Auto Clicker — Free Download. Click automation for Windows

Actus Auto Clicker

Actus Auto Clicker is a software application for Windows systems that automates mouse button presses.
Price: Free   Size: 32.5 MB   Version: 0.1.11   OS: Windows
Windownaut — Free Download. Window management via shortcuts and hot zones

Windownaut

Windownaut is a macOS utility that allows you to control the position and size of windows using keyboard combinations and hot zones on the screen.
Price: $4.99   Size: 4.8 MB   Version: 1.2.6   OS: MacOS
Raycast — Free Download. Launcher and automation for macOS

Raycast

Raycast is a native macOS application that functions as a productivity launcher.
Price: Free   Size: 1.1 MB   Version: 0.50.0.0   OS: Windows, MacOS, iOS