How to Use Install - Termlink/Toggle-Audio-Via-Macro GitHub Wiki

To install and use:

  1. Run nircmd.exe from the assets folder as an Administrator and click the option to "Copy to Windows Directory"
  2. In the playback device settings in windows change the name of your headphones to "Headphones" and speakers to "Speakers"
  3. Run the vbs script by simply clicking it or use your keyboard software or a windows shortcut to bind it to a key!

That's it!