Coder Social home page Coder Social logo

alfred-switch-audio's Introduction

⚠️ This project is no longer maintained

alfred-switch-audio

Version Build Status Downloads License

An Alfred workflow for setting the input / output audio device.

Prerequisites

Installation

Download the latest version of the workflow from here.

When you import the workflow into Alfred, the import screen will display a list of environment workflow variables that are available to the workflow:

  • SwitchAudioSource_path - The path to the SwitchAudioSource binary
  • jq_path - The path to the jq binary
  • config_path - The path to workflow config file

Modify these variables if you have the binaries or config file in a different location.

Usage

Setting the input audio device

  1. Trigger Alfred
  2. Type set-audio-in
  3. Use the up / down key to navigate to the input audio device you want to set
  4. Press enter to set the input audio device

A notification will be displayed showing which input audio device has been set.

Setting the output audio device

  1. Trigger Alfred
  2. Type set-audio-out
  3. Use the up / down key to navigate to the input audio device you want to set
  4. Press enter to set the output audio device

A notification will be displayed showing which output audio device has been set.

Setting a group of audio devices

To use this action, ensure you have a config file created for this workflow (located at ~/.alfred-switchaudio.json - This location can be modified by editing the config_path environment workflow variable):

{
  "groups": {
    "desktop": {
      "title": "Desktop",
      "input": "HD Pro Webcam C920",
      "output": "Scarlett 2i2 USB"
    },
    "airpods": {
      "title": "AirPods",
      "input": "Mike's AirPods Pro",
      "output": "Mike's AirPods Pro"
    }
  }
}
  1. Trigger Alfred
  2. Type set-audio-group
  3. Use the up / down key to navigate to the audio device group you want to set
  4. Press enter to set the input and output audio devices associated with the group

A notification will be displayed confirming the audio devices have been set.

alfred-switch-audio's People

Contributors

mike182uk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.