Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/countnazgul/set-audio-device
Console application that can set the system audio device
https://github.com/countnazgul/set-audio-device
Last synced: about 1 month ago
JSON representation
Console application that can set the system audio device
- Host: GitHub
- URL: https://github.com/countnazgul/set-audio-device
- Owner: countnazgul
- License: mit
- Created: 2024-06-17T05:20:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-04T05:50:43.000Z (7 months ago)
- Last Synced: 2024-12-17T20:43:31.088Z (about 1 month ago)
- Language: Go
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Set audio device
Console application that can set the system audio device
Mostly to be used together with [PowerToys](https://learn.microsoft.com/en-us/windows/powertoys/).
## List active audio devices
Starting the app without any arguments will list the available active audio devices:
![list-devices](./assets/list-devices.png)
## Set device
The app accepts only one argument - device id (see above to get the list of the available devices and their ids)
```shell
.\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
```shell
.\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](./assets/PT-config.png)
- press `OK`
You can setup as many of these shortcuts as you want.