File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ pipewire_id() {
15
15
16
16
audioconf () {
17
17
# Audio configuration script for PipeWire
18
- # You can find the node names with:
19
- # pw-cli i all | grep "node.name"
20
18
local COMBINED=" combined"
21
19
# If the correct profile is not available,
22
20
# try connecting the transmitter directly to the computer instead of through a USB hub.
@@ -38,7 +36,7 @@ audioconf() {
38
36
39
37
local DEV_ID
40
38
local NODES
41
- NODES=" $( pw-cli i all | grep " node.name" ) "
39
+ NODES=" $( pw-cli i all | grep " node.name" | sort ) "
42
40
43
41
case " ${1} " in
44
42
all)
@@ -89,6 +87,9 @@ audioconf() {
89
87
echo " Headphones device was not found."
90
88
fi
91
89
;;
90
+ nodes)
91
+ echo " ${NODES} "
92
+ ;;
92
93
optical | iec958 | IEC958)
93
94
if grep -q " ${Z2E_OPTICAL} " <<< " ${NODES}" ; then
94
95
DEV_ID=" $( pipewire_id " ${Z2E_OPTICAL} " ) "
You can’t perform that action at this time.
0 commit comments