blueutil VS hammerspoon

Compare blueutil vs hammerspoon and see what are their differences.


CLI for bluetooth on OSX: power, discoverable state, list, inquire devices, connect, info, … (by toy)


Staggeringly powerful macOS desktop automation with Lua (by Hammerspoon)
Our great sponsors
  • - Learn 300+ open source libraries for free using AI.
  • WorkOS - The modern API for authentication & user identity.
  • InfluxDB - Power Real-Time Data Analytics at Scale
blueutil hammerspoon
3 114
895 11,268
- 1.4%
0.0 8.0
5 months ago 15 days ago
Objective-C Objective-C
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of blueutil. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-17.
  • Is there any way to turn off/on bluetooth with a keyboard shortcut?
    2 projects | /r/MacOS | 17 Dec 2021
    blueutil -h blueutil v2.8.0 Usage: blueutil [options] Without options outputs current state -p, --power output power state as 1 or 0 -p, --power STATE set power state -d, --discoverable output discoverable state as 1 or 0 -d, --discoverable STATE set discoverable state --favourites, --favorites list favourite devices --inquiry [T] inquiry devices in range, 10 seconds duration by default excluding time for name updates --paired list paired devices --recent [N] list recently used devices, 10 by default, 0 to list all --connected list connected devices --info ID show information about device --is-connected ID connected state of device as 1 or 0 --connect ID create a connection to device --disconnect ID close the connection to device --pair ID [PIN] pair with device, optional PIN of up to 16 characters will be used instead of interactive input if requested in specific pair mode --add-favourite ID, --add-favorite ID add to favourites --remove-favourite ID, --remove-favorite ID remove from favourites --format FORMAT change output format of info and all listing commands --wait-connect ID [TIMEOUT] EXPERIMENTAL wait for device to connect --wait-disconnect ID [TIMEOUT] EXPERIMENTAL wait for device to disconnect --wait-rssi ID OP VALUE [PERIOD [TIMEOUT]] EXPERIMENTAL wait for device RSSI value which is 0 for golden range, -129 if it cannot be read (e.g. device is disconnected) -h, --help this help -v, --version show version STATE can be one of: 1, on, 0, off, toggle ID can be either address in form xxxxxxxxxxxx, xx-xx-xx-xx-xx-xx or xx:xx:xx:xx:xx:xx, or name of device to search in used devices OP can be one of: >, >=, <, <=, =, !=; or equivalents: gt, ge, lt, le, eq, ne PERIOD is in seconds, defaults to 1 TIMEOUT is in seconds, default value 0 doesn't add timeout FORMAT can be one of: default - human readable text output not intended for consumption by scripts new-default - human readable comma separated key-value pairs (EXPERIMENTAL, THE BEHAVIOUR MAY CHANGE) json - compact JSON json-pretty - pretty printed JSON Due to possible problems, blueutil will refuse to run as root user (see Use environment variable BLUEUTIL_ALLOW_ROOT=1 to override (sudo BLUEUTIL_ALLOW_ROOT=1 blueutil …). EXPERIMENTAL Exit codes: 0 Success 1 General failure 64 Wrong usage like missing or unexpected arguments, wrong parameters 69 Bluetooth not available 70 Internal error 71 System error like shortage of memory 75 Timeout error
    2 projects | /r/MacOS | 17 Dec 2021 is the tool, it's in homebrew (`brew install blueutil`).


Posts with mentions or reviews of hammerspoon. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-21.

What are some alternatives?

When comparing blueutil and hammerspoon you can also consider the following projects:

AutoHotkey - AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.

yabai - A tiling window manager for macOS based on binary space partitioning

skhd - Simple hotkey daemon for macOS

syncthing-macos - Official frugal and native macOS Syncthing application bundle

Rectangle - Move and resize windows on macOS with keyboard shortcuts and snap areas

alt-tab-macos - Windows alt-tab on macOS

ShockEmu - Keyboard support for Dualshock emulation for PS Remote Play (macOS)

Platypus - Create native Mac applications from command line scripts.


spaces-renamer - 💻 Ability to rename desktop spaces on macOS 10.10+

osxfuse - FUSE extends macOS by adding support for user space file systems