Stecker: Trigger macOS Shortcuts with USB Devices (FREE)

Do you want to trigger a macOS shortcut when you connect or disconnect a USB device? Look no further than the FREE app Stecker. There can be occasions when you would like to trigger a macOS Shortcut when you connect or disconnect a specific USB device. For example, maybe you have a KVM switch between two Macs and want to run a Shortcut when you switch between active devices. Or maybe you want to run a Shortcut when you connect or disconnect a dock. 

There are a few third party apps that I’ve tried with various degrees of success (and cost). But I stumbled on a brand new free app the Mac App Store that is phenomenal. It is called Stecker.

What is Stecker?

What is Stecker? It was first released in May 2023, and it’s a FREE app on the Mac store (with optional $2.99 supporter level). It serves a single purpose, and it does it very well. When a particular USB device is connected or disconnected it will fire off an Apple Shortcut on your Mac. Yup it’s that simple, but the execution and UX is genius. 

When you launch Stecker you are presented with a full list of all USB devices that are connected to your Mac. As you can see, it lists individual devices (like my StreamDeck XL) and USB hubs and bridges. In fact, I ran the system_profiler SPUSBDataType command and Stecker detected 100% of my USB devices. Awesome!

Creating an automation can be accomplished in just a couple of clicks. First, click on the USB device that you want to trigger on. In my case I want to trigger on my Logitech unified receiver. As you can see this device is at the top of the list. I then clicked on New Automation for Device.

The next screen lets you select between When Attached or When detached triggers, then you can select the shortcut you want to run. Tick the box to Enable Automation and you are set! In my testing it was flawless and instantly detected when the USB device was attached or detached. You can also select a different USB device in the Device: dropdown. 

On the near term road map is adding the ability to Run Executable. I also hope the developer adds the ability to send a hotkey keystroke to macOS as well. Yes you could have a shortcut send a global hotkey, but doing directly in Stecker would be a big plus. It’s also a tad odd to need to disable the automation to make any changes. But that’s a minor quibble. 

Stecker Alternatives

Stecker is not the first app to trigger on USB device attachment or detachment and fire a Shortcut. I tried the following apps, but Stecker (for me) is hands down the best..and it’s FREE.

  • Keyboard Maestro – It can trigger on USB device connection or disconnection, and it worked well for me. However, it has two big drawbacks: It’s not free. $36 USD. And the USB trigger interface UX is not great. But if you already own it, sure, go for it.
  • Shortery – This is supposed to detect USB device connection state and fire a Shortcut. However, it failed to detect multiple USB devices (e.g., Logitech receiver) that I tried. It worked with other devices though, like a webcam and USB stick. I reported the bug to the developer, but let’s just say he wasn’t receptive to fixing the bugs so I’d steer clear. 

Summary

Stecker is a FREE dedicated purpose macOS app to fire Shortcuts when it detects a USB device being attached or detached. It works flawlessly, detected all of my USB devices, and the UX is awesome. If you need to trigger macOS Shortcuts based on the connection state of a USB device look no further than Stecker. He is on Reddit as u/Lfrggr. You can also find his website here.

Print Friendly, PDF & Email

Related Posts

Subscribe
Notify of
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Spx
July 30, 2023 3:35 pm

Nice tool! Only i tried it with my external usb-c drive and doesnt show up in the app..:(

Leon Ivkovic
December 1, 2023 2:33 am

Thanks, using this on Sonoma now, still works, now It automatically opens my Sidecar menu when my iPad is connected through usb-c which I always do for latency either way,
really sick.
made my day