This workflow utilizes the SwitchAudioSource
command line utility to switch between audio sources on your Mac.
It has support for both input and output devices and can be easily configured with minor JQ knowledge.
Install switchaudio-osx
via Brew
brew install switchaudio-osx
Create a symlink to sync this directory with Alfred with the following command:
ln -sn $(PWD) ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.audio-source
(or you can make install
if you're lazy)
This installation method allows you to use git to keep this workflow up to date without having to package and re-import it into Alfred.
note: if you have a different Alfred application directory you will need to change the path in the command above.
If you would rather not use git to manage this workflow you can download the latest release from the releases page and import it into Alfred.
- Setup your default trigger keyword in the
Configure Workflow
menu - Use the trigger keyword to switch between audio sources