summaryrefslogtreecommitdiffstats
path: root/.config/pipewire/pipewire-pulse.sh
blob: aff3a23dec486f7b307dcd4f84d1b99cc8921ab1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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}"
remember that computers suck.