Prevents Bluetooth audio devices from hijacking the default macOS microphone
MicGuard doubles as a CLI tool. The mic-guard binary is symlinked to /usr/local/bin on install.
Home · Debugging · Integrations · Notifications · Releasing
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Error (invalid arguments, device not found, etc.) |
mic-guard listList all input devices.
$ mic-guard list
MacBook Pro Microphone
External USB Mic
AirPods Pro
mic-guard currentPrint the current default input device.
$ mic-guard current
External USB Mic
mic-guard set <name>Set the default input device by name. Also updates the preferred-mic config file.
$ mic-guard set "External USB Mic"
mic-guard volume <0-100>Set the input volume directly via CoreAudio. Runs without the daemon.
$ mic-guard volume 50
mic-guard muteToggle mute on the current input device. Posts a notification to the running daemon, which handles the toggle (using native mute if the device supports it, or soft-mute via volume otherwise). Requires the MicGuard daemon to be running.
$ mic-guard mute
mic-guard enableEnable MicGuard. It will revert the default input device whenever it changes away from your preferred mic.
mic-guard disableDisable MicGuard. The default input device can change freely.
mic-guard statusPrint whether MicGuard is enabled or disabled.
$ mic-guard status
enabled
mic-guard pingAsk the running MicGuard daemon to re-broadcast its current status. Posts a com.pszypowicz.MicGuard.requestStatus notification, which causes the daemon to respond with com.pszypowicz.MicGuard.statusChanged.
$ mic-guard ping
mic-guard versionPrint the version. Also accepts --version and -v.
$ mic-guard version
mic-guard <version>
mic-guard helpShow usage information. Also accepts --help and -h.