dots/scripts/Documents/Scripts/b404unload.sh
2024-04-29 19:05:39 +02:00

15 lines
1.6 KiB
Bash
Executable file

#!/bin/dash
# Remap Behringer inputs separately
pactl unload-module module-remap-source source_name=umc404hd-xlr-1 source_properties=device.description=UMC404HD-XLR-Input-1 master=alsa_input.usb-BEHRINGER_UMC404HD_192k-00.multichannel-input remix=no channels=1 master_channel_map=front-left channel_map=mono
pactl unload-module module-remap-source source_name=umc404hd-xlr-2 source_properties=device.description=UMC404HD-XLR-Input-2 master=alsa_input.usb-BEHRINGER_UMC404HD_192k-00.multichannel-input remix=no channels=1 master_channel_map=front-right channel_map=mono
pactl unload-module module-remap-source source_name=umc404hd-xlr-3 source_properties=device.description=UMC404HD-XLR-Input-3 master=alsa_input.usb-BEHRINGER_UMC404HD_192k-00.multichannel-input remix=no channels=1 master_channel_map=rear-left channel_map=mono
pactl unload-module module-remap-source source_name=umc404hd-xlr-4 source_properties=device.description=UMC404HD-XLR-Input-4 master=alsa_input.usb-BEHRINGER_UMC404HD_192k-00.multichannel-input remix=no channels=1 master_channel_map=rear-right channel_map=mono
# Remap Behringer outputs separately
pactl unload-module module-remap-sink sink_name=umc404hd-outputs-1-2 sink_properties=device.description=UMC404HD-Outputs-1-2 master=alsa_output.usb-BEHRINGER_UMC404HD_192k-00.analog-surround-40 remix=no channels=2 master_channel_map=front-left,front-right channel_map=left,right
pactl unload-module module-remap-sink sink_name=umc404hd-outputs-3-4 sink_properties=device.description=UMC404HD-Outputs-3-4 master=alsa_output.usb-BEHRINGER_UMC404HD_192k-00.analog-surround-40 remix=no channels=2 master_channel_map=rear-left,rear-right channel_map=left,right