TobiasMende Posted December 21, 2023 Share Posted December 21, 2023 (edited) Hi folks, I built something today using Alfreds new Workflow Builder. Maybe you find it useful. Why this Workflow? I find myself frequently switching between audio output and input devices. Existing solutions either are slow, take to many interactions or need third-party tools. Therefore, this workflow offers a couple of features to make switching audio devices easier and faster. It also allows filtering out devices you do not want to see in the suggestions. In order to make it even faster, the workflow provides Hotkeys and Remote Triggers for up to three input and up to three output devices and comes with its own Remote page. The workflow is of course configurable. 😁 Some technical goodies: This workflow does not need any third-party tools such as `SwitchAudioSource` or `jq`. It relies fully on Swift and ZSH, which should both be available in modern OS X Versions. Furthermore, as it does not contain binaries, code signing isn't an issue. The code is on GitHub. The initial release (v1.0.1) is here https://github.com/TobiasMende/alfred-audio-switcher/releases/download/v1.0.1/alfred-audio-switcher.alfredworkflow Inspired by: I am looking forward for your thoughts and feedback! 🙏 Edited December 21, 2023 by TobiasMende cands and godbout 2 Link to comment
TobiasMende Posted December 22, 2023 Author Share Posted December 22, 2023 I have just published a newer version with better visible icons: I cannot update my original post, so here is the new link: v1.1.0 – 2023-12-22 New Icon Set for better visibility on light and dark background https://github.com/TobiasMende/alfred-audio-switcher/releases/download/v1.1.0/alfred-audio-switcher.alfredworkflow Link to comment
TobiasMende Posted December 23, 2023 Author Share Posted December 23, 2023 v1.1.1 – 2023-12-23 Use argv instead of {query} https://github.com/TobiasMende/alfred-audio-switcher/releases/download/v1.1.1/alfred-audio-switcher.alfredworkflow JAShapiro 1 Link to comment
milopus Posted February 6 Share Posted February 6 Really eager to use this workflow as I switch audio sources often. Just installed this with the latest MacOS on an M1 MacBook Pro, but it does not show up. Thanks for any help. I get this in the bug report: Quote [08:23:56.729] Logging Started... [08:24:00.372] Audio Switcher[Script Filter] Queuing argument '(null)' [08:24:00.499] Audio Switcher[Script Filter] Script with argv '(null)' finished [08:24:00.508] ERROR: Audio Switcher[Script Filter] Code 1: <unknown>:0: error: unable to load standard library for target 'arm64-apple-macosx14.0' [08:24:18.015] Audio Switcher[Script Filter] Queuing argument '(null)' [08:24:18.244] Audio Switcher[Script Filter] Script with argv '(null)' finished [08:24:18.251] ERROR: Audio Switcher[Script Filter] Code 1: <unknown>:0: error: unable to load standard library for target 'arm64-apple-macosx14.0' Link to comment
JAShapiro Posted February 11 Share Posted February 11 @TobiasMende This is fantastic, and almost exactly what I have been looking for. One thing that would make it absolutely perfect for me would be if there were an option to toggle among favorites with a single hotkey. For example: I most often want to just switch between just my headphones and display speakers, so I had set up (using a Keyboard Maestro macro) so that one button would switch just between those two: if I am currently set to headphones, it switches to the display speakers and vice versa. Do you think that is something you might be able to add? Link to comment
TobiasMende Posted February 12 Author Share Posted February 12 12 hours ago, JAShapiro said: @TobiasMende This is fantastic, and almost exactly what I have been looking for. One thing that would make it absolutely perfect for me would be if there were an option to toggle among favorites with a single hotkey. For example: I most often want to just switch between just my headphones and display speakers, so I had set up (using a Keyboard Maestro macro) so that one button would switch just between those two: if I am currently set to headphones, it switches to the display speakers and vice versa. Do you think that is something you might be able to add? Thank you for this idea! I like the idea of being able to quickly toggle between two devices. I will check your PR and get back on GitHub 🙂 Link to comment
TobiasMende Posted February 12 Author Share Posted February 12 On 2/6/2024 at 8:26 AM, milopus said: Really eager to use this workflow as I switch audio sources often. Just installed this with the latest MacOS on an M1 MacBook Pro, but it does not show up. Thanks for any help. I get this in the bug report: Sorry for the delayed response. This sounds like your Mac has problems executing the Swift script. Have you installed the Workflow from the Gallery (https://alfred.app/workflows/tobiasmende/audio-switcher/) or from the forum? I thought the requirements are pre-installed in the modern Mac versions, but maybe some requirement is missing. This might be solved by running `xcode-select --install` on the command line. vitor 1 Link to comment
TobiasMende Posted February 23 Author Share Posted February 23 Thanks for your contribution, @JAShapiro! 🙏 Version 1.2.0, including your input/output rotation feature is now released and awaiting to be updated in the Gallery. JAShapiro 1 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