Shark.Formax Posted July 31, 2022 Share Posted July 31, 2022 # 🔈 SwitchAudio Alfred Workflow  https://github.com/dkarter/alfred-switch-audio  Yet another audio input/output switching interface for SwitchAudioSource Tested with Alfred 5 and macOS Monterey.  ## Motivation All the other workflows I tried were incompatible with macOS Monterey, so I figured it would be easier to just build my own  ## Prerequisites You need to have both SwitchAudioSource and JQ installed on your mac. This is most easily done via Homebrew:  brew install switchaudio-osx jq  Also you will need Alfred Powerpack. This workflow was tested with Alfred 5 only.  ## Installation Download the workflow from GitHub the latest release page and open it  ## Usage In Alfred type ;so — to switch output device ;si — to switch input device  ## Screenshots Output selection   Input selection  Leftover-Waffle, kenanmike, mhenrixon and 1 other 2 2 Link to comment
mhenrixon Posted September 23, 2022 Share Posted September 23, 2022 I just logged in to write you a massive thank you for providing this. Was just about to write my own workflow when I found yours, thank you for saving me the time. Vero 1 Link to comment
Leftover-Waffle Posted September 26, 2022 Share Posted September 26, 2022 Amazing little workflow, thanks for sharing! Link to comment
Alex Posted March 31, 2023 Share Posted March 31, 2023 Hi, thanks for this! It works quickly, the only thing I've noticed is I don't get any notifications after the switch and it looks in the Workflow like I should? Link to comment
gingerbeardman Posted March 31, 2023 Share Posted March 31, 2023 (edited) I get notifications from Alfred, check you're allowing those in System Settings > Notifications.   Thanks for this workflow! The old one by mikegrb that I was using was no longer working. Edited March 31, 2023 by gingerbeardman Link to comment
mvaneijgen Posted December 21, 2023 Share Posted December 21, 2023 My audio sources were a mess and I was looking for a way to clean this list up and have only the relevant audio sources I really use often. I've updated the code in the workflow like so in the "Script Filter" maybe it helps someone who is looking for something similar.  Below the code where DELL U2518D and DELL U2515H are the names of audio sources I never use  // Orignal SwitchAudioSource -a -t output -f json | sed s/\"name\"/\"title\"/ | sed s/\"id\"/\"arg\"/ | jq -s . | jq -n '{ "items": input }' // Updated SwitchAudioSource -a -t output -f json | sed 's/"name"/"title"/' | sed 's/"id"/"arg"/' | jq -s '[.[] | select(.title | test("DELL U2518D|DELL U2515H") | not)]' | jq -n '{ "items": input }'  Thanks for the workflow! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now