Skip to content

Hammerspoon Spoon that lets you cycle thru audio outputs.

License

Notifications You must be signed in to change notification settings

spslater/AudioSwapSpoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

AudioSwap.Spoon

Hammerspoon Spoon that lets you cycle thru audio outputs.

Useage

hs.loadSpoon("AudioSwap")
spoon.AudioSwap:bindHotkeys({
    swap={{"cmd", "alt", "ctrl"}, "g"},
    add={{"cmd", "alt", "ctrl"}, "t"},
    del={{"cmd", "alt", "ctrl"}, "b"},
})
spoon.AudioSwap:addDevice("External Headphones"):addDevice("Mac mini Speakers")

AudioSwap:addDevice(name)

Add device to swap between

  • Parameters
    • name - name of device to add
  • Returns
    • The AudioSwap object

AudioSwap:bindHotkeys(mapping)

Binds hotkeys for AudioSwap

  • Parameters
    • mapping - A table containing hotkey modifier/key details for the following items:
      • swap - swaping hotkey
      • add - add new device to rotation
      • del - delete existing device from rotation
  • Returns
    • The AudioSwap object

Links

Contributing

Help is greatly appreciated. First check if there are any issues open that relate to what you want to help with. Also feel free to make a pull request with changes / fixes you make.

License

MIT License

About

Hammerspoon Spoon that lets you cycle thru audio outputs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages