An Alfred workflow (+ CLI tools) to control Rogue Amoeba's Loopback virtual audio devices — because Loopback has no official automation support.
- Toggle devices instantly from Alfred with
lb - Assign hotkeys to toggle specific devices (via Alfred's built-in hotkey triggers)
- Filter by typing — just start typing the device name
- Visual status — see which devices are enabled/disabled at a glance
- CLI tools included for scripting and automation
- Download
Loopback-Control.alfredworkflow - Double-click to install
- Type
lbin Alfred
Want to toggle a device with a keyboard shortcut?
- Open Alfred Preferences → Workflows → Loopback Control
- Click the
+button → Triggers → Hotkey - Set your hotkey (e.g.,
⌃⌥M) - Connect it to the "Run Script" action
- In the script, put:
python3 loopback_toggle.py "Your Device Name"
Now you can toggle any device with a single keystroke.
Type lb in Alfred to see all your Loopback virtual devices:
| Action | Result |
|---|---|
↵ Enter |
Toggle device on/off |
⌘↵ Cmd+Enter |
Force enable or disable |
| Type to filter | Filter devices by name |
Two command-line tools are included for scripting:
Instant toggling via macOS accessibility. No restart required.
loopback-ctl list # List all devices
loopback-ctl toggle "LB Bose" # Toggle a device
loopback-ctl enable "LB Bose" # Enable explicitly
loopback-ctl disable "LB Bose" # Disable explicitly
loopback-ctl status "LB Bose" # Check statusRequires: Accessibility permissions for your terminal.
Modifies Loopback's config directly. Works headless, supports batch operations.
loopback-plist list # List all devices
loopback-plist toggle "LB Bose" # Toggle a device
loopback-plist set "A=on" "B=off" # Batch toggle (single restart)Note: Restarts Loopback (~0.5s audio interruption).
Loopback stores device configs in ~/Library/Application Support/Loopback/Devices.plist. These tools:
- Read/modify the
enabledflag for each device - Restart Loopback to apply changes
The GUI scripting approach (loopback-ctl) clicks the checkbox directly, avoiding the restart.
No devices found?
- Make sure Loopback is running
- Check you have virtual devices configured
loopback-ctl not working?
- Grant Accessibility permissions to your terminal
- Ensure Loopback window exists (not minimized with no window)
Device name not found?
- Names must match exactly — use
loopback-ctl listto check
MIT. Not affiliated with Rogue Amoeba.
