blob: aff3a23dec486f7b307dcd4f84d1b99cc8921ab1 (
plain) (
tree)
|
|
#!/bin/sh
sleep 3
source_name="master-mono"
source_index=$(pactl list short sources |
grep "input.*pci-" |
head -n 1 |
awk '{print $1;}')
echo "${source_index}"
pactl load-module module-remap-source \
"source_name=${source_name}" \
"master=${source_index}" \
channels=1 \
master_channel_map=front-left \
channel_map=mono
pactl set-default-source "${source_name}"
|