Giter VIP home page Giter VIP logo

alfred_audio_switcher's Introduction

Alfred Audio Switcher

Alfred workflow to quickly switch between audio output devices.

pic

Credit: Switch Audio Input/Output Device using Alfred – AgileAdam.com for the idea, I've just made some icons and packaged it up.

⚠️ IMPORTANT ⚠️: install switchaudiosource

For this to you work, you need to use Homebrew to install switchaudiosource:

brew install switchaudio-osx

Switching between audio devices

Provides keyword inputs to quickly switch between headphones, speakers, and an external device:

Device Keyword
Headphones ash
Speakers asp
External asx

The first time each is used, it will prompt you to select the audio source for that device and then save it for next time (which may take a few seconds to take affect). The next time it should switch to that device immediately.

NOTE: the macOS multimedia volume controls don't don't seem to affect the volume of external audio devices.

Changing saved audio devices

Once you've switched to an audio device and it has been saved, if you want to change it to a different device, click the [X] icon in the top right of the workflow settings to access the Workflow Environment Variants, and delete the value.

Then when using the relevant keyword for that device next time, it should prompt you to select it again and save it.

Select audio source

  • Keyword: asel

Can use this at any time to present a list of all audio devices currently connected to your system:

pic

Does not save the selected value.

External URL handlers

I have these setup with Karabiner-Elements to fire from a macro-pad:

  • Switch to headphones: alfred://runtrigger/com.beet.alfred_audio_switcher/headphones
  • Switch to speakers: alfred://runtrigger/com.beet.alfred_audio_switcher/speakers

alfred_audio_switcher's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

alfred_audio_switcher's Issues

Airpod support?

How difficult would it be to add Airpod support to be selected for headphones? It's such a common option these days, but doesn't show up as selectable.

switchaudiosource path not correct

Hi @beet,
I've installed switchaudiosource with homebrew and it has been installed in the homebrew bin path "/opt/homebrew/bin"

To let your workflow works I had to replace all the "/usr/bin" path in the scripts with the homebrew's one.

Prompt to select audio device doesn't work on Ventura

On Ventura, using the shortcuts like ash pop up a notification but there's no way to select a device. Now when I use the commands they don't do anything. asel works and I can switch with that so I assume this is a problem with the workflow itself.

Add Input Toggles to the list

Would it be possible to be able to pick the input you want to use in the same way? I'm like to be able to toggle between an external Mic or the internal Mic depending on the situation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.