Play a sound when USB connects or disconnects on Mac
By the MegaMac team · 5 min read · Updated
macOS has no built-in setting to play a Windows-style chime when a USB drive, hub or dongle connects or disconnects. You can add one for free using the open-source automation tool Hammerspoon, or get instant USB, charger and lid sounds with custom clips on M1+ MacBooks using PlugMac for €4.99 once.
Why your Mac stays silent when USB devices plug in
If you switched from Windows, the silence when plugging in a USB-C hub, SSD or audio interface feels strange. macOS only chimes for power on some MacBooks and occasionally shows a security prompt when a new accessory connects to a locked laptop. Apple explains that prompt in Allow USB and other accessories to connect to your Mac.
When a loose USB-C cable flickers or an external drive disconnects mid-transfer, macOS gives you no audio cue until Finder throws an "Disk Not Ejected Properly" banner. Adding a short connect and disconnect sound makes faulty cables and half-seated hubs obvious immediately.
Free method: add USB connect sounds with Hammerspoon
If you don't mind editing a small Lua config file, Hammerspoon (a free, open-source macOS automation utility) can watch USB events natively with zero polling:
Install Hammerspoon and grant it the basic login permissions it asks for during first launch.
Open your Hammerspoon config file from the Hammerspoon menu bar icon (Open Config).
Add a USB watcher. Use the built-in Hammerspoon hs.usb.watcher module to register a callback function. When the event type equals added, play one macOS system sound (such as Pop or Tink inside /System/Library/Sounds/) using hs.sound or afplay; when it equals removed, play a second sound.
Reload the config from the Hammerspoon menu bar and plug in a flash drive to test both directions.
Hammerspoon is free and works on both desktop Macs and MacBooks, including Intel models. The trade-offs are manual Lua scripting to change clips, no built-in voice recorder or video-clip audio extractor, no one-click meeting mute switch, and no automatic headphone volume guard.
If bought separately €13.98€11.18(€13.98 if bought separately)
NotchPrompt: Apple Silicon Macs (M1 or later) · macOS 14+
Instant USB, charger and lid sounds with PlugMac
PlugMac is a signed, Apple-notarized menu-bar app that watches your MacBook's power and ports passively without polling your battery:
Separate USB in and USB out sounds. Give flash drives, docks and dongles one cue when they connect and a different cue when they unplug, so you hear a loose hub the moment it drops.
Voice Studio and built-in sounds. Choose a built-in sound, record up to 3 seconds on your microphone, or drop in an audio or video file (see How to record custom sound effects on Mac for quick clip tips).
Meeting mute and headphone protection. Flip one switch in the menu bar before a call to silence every trigger. If you turn on loud speaker reactions or Prank Mode, PlugMac caps volume safely and never boosts headphones, Bluetooth audio or USB headsets, restoring your speaker volume afterward.
Check your Mac model before buying: PlugMac requires an Apple Silicon MacBook (MacBook Air or MacBook Pro with M1 or later) on macOS 14 Sonoma or later, because its charger and lid triggers need a MacBook. It does not support iMac, Mac mini, Mac Studio or Intel Macs (for desktop Macs, stick with Hammerspoon above). Not sure which Mac you own? Check Which Mac do I have?. PlugMac asks for Microphone permission only when you record in Voice Studio, and Volume control only if you enable loud reactions or Prank Mode.
Bundle PlugMac with phone or motion triggers
Want more audio tricks on the same laptop? Pair PlugMac with Phantom to trigger Mac sounds from your iPhone over Wi-Fi (works on M1+ Macs), or add SmackBook for slap sounds and smack shortcuts if you own an M2 or later MacBook. Buying 2 apps saves 20% and 3 apps saves 30% on the MegaMac bundle page.
Get the Mac setup from this guide
Pick 2 or more apps to unlock bundle savings automatically.
SmackBook needs a MacBook with an M2 chip or later.
PlugMac needs a MacBook with Apple Silicon (M1 or later).
Phantom needs a Mac with Apple Silicon.
Pay once · No Mac needed to buy: key and install steps by email · Works offline after activation · Check your Mac before buying (sales are final).
Questions
Does macOS have a built-in USB connect or disconnect sound?
No. Unlike Windows, macOS stays silent when USB drives, hubs or peripherals connect or disconnect. You need either an automation tool like Hammerspoon or a dedicated menu-bar app such as PlugMac.
Can I set different sounds for USB connect and USB disconnect?
Yes. Both Hammerspoon's hs.usb.watcher (using added and removed event checks) and PlugMac's USB trigger let you assign one sound when a USB device connects and a different sound when it disconnects.
Does PlugMac work on a Mac mini, iMac or Mac Studio?
No. PlugMac is built specifically for Apple Silicon MacBooks (M1 or later) running macOS 14 Sonoma or later, because its charger and lid triggers require a laptop. Desktop Mac owners should use the free Hammerspoon method instead.
Will PlugMac play USB or charger sounds during a Zoom call?
Only if you plug or unplug something while PlugMac is switched on. One click on the mute toggle in PlugMac's menu bar silences every trigger until your meeting is over.
Does PlugMac ask for invasive permissions or drain battery?
No. PlugMac waits passively for macOS hardware events instead of polling, works offline after one-time activation, and only asks for Microphone permission if you record in Voice Studio or Volume control if you enable loud reactions.
Spotted something wrong or out of date? Email hello@megamac.app and we'll fix it.
PlugMac
€4.99 · pay once · Apple Silicon MacBooks (M1 or later) · macOS 14+