Image
The Mute Ad shortcut on the iPhone: one SSH line, and the Mac's answer underneath.

Sunday, November 29, 2026

A mute button for the radio, on the phone

How we made one iPhone button that quiets every tab in Firefox on the Mac across the room, and the five walls we hit on the way.

The Mute Ad shortcut on the iPhone: one SSH line, and the Mac's answer underneath.
The Mute Ad shortcut on the iPhone: one SSH line, and the Mac's answer underneath.

Studio tools

We listen to KOOP Radio on the Mac while we work, and when an ad comes on in a tab, we wanted to quiet it from the couch and bring the sound back just as fast. Here is how we did it, in the order the walls came.

The button. A Shortcuts action called Run Script Over SSH runs one line on the Mac: `zsh ~/Developer/tools/remote/tab-mute.sh`. Put it on the Lock Screen or the Action button, or ask Siri for it by name. The Watch can't run this action, so the button lives on the phone. On the Mac, turn on Remote Login (System Settings, General, Sharing).

Wall one: the Mac's own mute. Our sound goes out through a USB audio interface, and the Mac has no volume control for it, so the system mute does nothing. We mute in Firefox instead, where Control-M mutes a tab.

Wall two: the building's Wi-Fi. It keeps devices from seeing each other, so the phone could not find the Mac. Tailscale on both gives the Mac an address the phone can always reach, even on cellular.

Wall three: permissions. Keys pressed from an SSH session need Accessibility for `/usr/libexec/sshd-keygen-wrapper`, which ships with macOS (Privacy and Security, Accessibility, then the plus button and Command-Shift-G). The first run then waits silently for an Automation prompt on the Mac's screen. Click Allow.

Wall four: the playing tab. Control-M mutes only the tab in front, and the radio was in another window. Firefox does not tell macOS which tab is making sound, so the script visits every tab of every window, presses Control-M on each, and puts each window back on the tab it was showing.

Wall five: names that move. A Firefox window's name is its showing tab's title, so it changes as you switch tabs. The script looks the tabs up again after every switch.

One honest thing. Every tab flips together, so a tab you muted by hand comes on when the rest go quiet. Mute with the button only and it stays in step.

Sources and thanks

  • KOOP Radio 91.7 FM, Austin's volunteer-run community station, the reason we wanted the button. Support KOOP.
  • Tailscale for the address that always answers.
  • The script was worked out with help from Artisanal Intelligence; each step was tried on the Mac and the phone by a person.

Notes from the Workshop, once a month: releaf.site/beta/letter

All entries · Play the betas