set-audio-device

command module
v0.0.0-...-c20e9e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 7 Imported by: 0

README

Set audio device

Console application that can set the system audio device

Mostly to be used together with PowerToys.

List active audio devices

Starting the app without any arguments will list the available active audio devices:

list-devices

Set device

The app accepts only one argument - device id (see above to get the list of the available devices and their ids)

.\set-audio-device.exe set "{0.0.0.00000000}.{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"

(No confirmations are given. If the provided ID do not exists the ... nothing is going to happen)

Print current device

Just to print the current active audio device

.\set-audio-device.exe current

PowerToys

  • start PowerToys

  • choose Keyboard Manager

  • scroll to Remap a shortcut and click on it

  • press + Add shortcut remapping (bottom left)

  • choose the desired shortcut from the left side

  • on the right side:

    • Action - Run program

    • App - the full path to set-audio-device.exe

    • Args - single device ID here. In format set {0.0.0.00000000}.{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

    • Start in - (not sure its needed but ...) the folder where set-audio-device.exe is located

    • Elevation - Normal

    • If running - Close

    • Visibility - Hidden

      PowerToys config

    • press OK

You can setup as many of these shortcuts as you want.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL