PipeWire: Difference between revisions

Krutonium (talk | contribs)
m Amend: No `~`
Krutonium (talk | contribs)
m Turns out the ~ actually is required.
Tags: Manual revert Visual edit
Line 285: Line 285:


<li>'''Add configuration''':
<li>'''Add configuration''':
If you want to blanket do this for all devices, you can use <code>alsa_input.*</code> and <code>alsa_output.*</code> to match all input and output devices. You can also use (from the step above) an exact device if you only want to change the setting for that single device. In that case you can match only a single device, and replace the node name with EG: <code>alsa_output.usb-ASUSTeK_Xonar_SoundCard-00.iec958-stereo</code>, and it will target that specific device.
If you want to blanket do this for all devices, you can use <code>~alsa_input.*</code> and <code>~alsa_output.*</code> to match all input and output devices. You can also use (from the step above) an exact device if you only want to change the setting for that single device. In that case you can match only a single device, and replace the node name with EG: <code>alsa_output.usb-ASUSTeK_Xonar_SoundCard-00.iec958-stereo</code>, and it will target that specific device.
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
  # Disable suspend of Toslink output to prevent audio popping.
  # Disable suspend of Toslink output to prevent audio popping.
Line 293: Line 293:
         matches = [
         matches = [
           {
           {
             "node.name" = "alsa_input.*";
             "node.name" = "~alsa_input.*";
           }
           }
           {
           {
             "node.name" = "alsa_output.*";
             "node.name" = "~alsa_output.*";
           }
           }
         ];
         ];