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

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.