Skip to content

Use Alfred to Switch Between AirPods and Default Audio Sources on macOS

License

Notifications You must be signed in to change notification settings

paulsri/alfred-airpods-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

alfred-airpods-selector

Use Alfred to Switch Between AirPods and Default Audio Sources on macOS

deps

Install Alfred.

Install switchaudio-osx:

$ brew install switchaudio-osx

setup and configuration

  1. Import the Alfred alfred-airpods-selector workflow by double-clicking the workflow file after downloading it.

  2. Find your audio device names:

     $ SwitchAudioSource -a
    
  3. In the Alfred workflow tab update the bash script (2nd block in workflow) with the names of your audio devices from step #2 as well as the path to where SwitchAudioSource was installed:

     switch="/usr/local/bin/SwitchAudioSource"
     airpods="Paul’s AirPods"
     mic="Built-in Microphone"
     output="Built-in Output"
    

Warning: Sometimes curly apostrophes or curly double quotes can get you into trouble

usage

In Alfred type the following:

To Enable AirPods: airpods or airpods on or airpods blah

To Disable AirPods: airpods off

Note: You can type anything after 'airpods' except 'off' to enable the AirPods audio source.

About

Use Alfred to Switch Between AirPods and Default Audio Sources on macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages