Debian Codegraph @

doc/dox/config/pipewire-client.conf.5.md

raw symbols SCIP
1 \page page_man_pipewire-client_conf_5 client.conf
2
3 The PipeWire client configuration file.
4
5 \tableofcontents
6
7 # SYNOPSIS
8
9 *$XDG_CONFIG_HOME/pipewire/client.conf*
10
11 *$(PIPEWIRE_CONFIG_DIR)/client.conf*
12
13 *$(PIPEWIRE_CONFDATADIR)/client.conf*
14
15 *$(PIPEWIRE_CONFDATADIR)/client.conf.d/*
16
17 *$(PIPEWIRE_CONFIG_DIR)/client.conf.d/*
18
19 *$XDG_CONFIG_HOME/pipewire/client.conf.d/*
20
21 # DESCRIPTION
22
23 Configuration for PipeWire native clients, and for PipeWire's ALSA
24 plugin.
25
26 A PipeWire native client program selects the default config to load,
27 and if nothing is specified, it usually loads `client.conf`.
28
29 The configuration file format and lookup logic is the same as for \ref page_man_pipewire_conf_5 "pipewire.conf(5)".
30
31 Drop-in configuration files `client.conf.d/*.conf` can be used, and are recommended.
32 See \ref pipewire_conf__drop-in_configuration_files "pipewire.conf(5)".
33
34 # CONFIGURATION FILE SECTIONS @IDX@ client.conf
35
36 \par stream.properties
37 Configures options for native client streams.
38
39 \par stream.rules
40 Configures rules for native client streams.
41
42 \par alsa.properties
43 ALSA client configuration.
44
45 \par alsa.rules
46 ALSA client match rules.
47
48 In addition, the PipeWire context configuration sections
49 may also be specified, see \ref page_man_pipewire_conf_5 "pipewire.conf(5)".
50
51 # STREAM PROPERTIES @IDX@ client.conf stream.properties
52
53 The client configuration files contain a stream.properties section that configures the options for client streams:
54 ```css
55 # ~/.config/pipewire/client.conf.d/custom.conf
56
57 stream.properties = {
58 #node.latency = 1024/48000
59 #node.autoconnect = true
60 #resample.disable = false
61 #resample.quality = 4
62 #resample.window = exp # blackman kaiser
63 #resample.cutoff = 0.0
64 #resample.n-taps = 0
65 #resample.param.exp.A = 0.0
66 #resample.param.blackman.alpha = 0.0
67 #resample.param.kaiser.alpha = 0.0
68 #resample.param.kaiser.stopband-attenuation = 0.0
69 #resample.param.kaiser.transition-bandwidth = 0.0
70 #monitor.channel-volumes = false
71 #channelmix.disable = false
72 #channelmix.min-volume = 0.0
73 #channelmix.max-volume = 10.0
74 #channelmix.normalize = false
75 #channelmix.lock-volume = false
76 #channelmix.mix-lfe = true
77 #channelmix.upmix = true
78 #channelmix.upmix-method = psd # none, simple
79 #channelmix.lfe-cutoff = 150.0
80 #channelmix.fc-cutoff = 12000.0
81 #channelmix.rear-delay = 12.0
82 #channelmix.stereo-widen = 0.0
83 #channelmix.hilbert-taps = 0
84 #dither.noise = 0
85 #dither.method = none # rectangular, triangular, triangular-hf, wannamaker3, shaped5
86 #debug.wav-path = ""
87 }
88 ```
89
90 Some of the properties refer to different aspects of the stream:
91
92 * General stream properties to identify the stream.
93 * General stream properties to classify the stream.
94 * How it is going to be scheduled by the graph.
95 * How it is going to be linked by the session manager.
96 * How the internal processing will be done.
97 * Properties to configure the media format.
98
99 A list of object properties that can be applied to streams can be found in
100 \ref props__common_node_properties "pipewire-props(7) Common Node Properties"
101 and
102 \ref props__audio_converter_properties "pipewire-props(7) Audio Adapter Properties"
103
104 # STREAM RULES @IDX@ client.conf stream.rules
105
106 You can add \ref pipewire_conf__match_rules "match rules, see pipewire(1)"
107 to set properties for certain streams and filters.
108
109 `stream.rules` and `filter.rules` provides an `update-props` action
110 that takes an object with properties that are updated on the node
111 object of the stream and filter.
112
113 Add a `stream.rules` or `filter.rules` section in the config file like
114 this:
115
116 ```css
117 # ~/.config/pipewire/client.conf.d/custom.conf
118
119 stream.rules = [
120 {
121 matches = [
122 {
123 # all keys must match the value. ! negates. ~ starts regex.
124 application.process.binary = "firefox"
125 }
126 ]
127 actions = {
128 update-props = {
129 node.name = "My Name"
130 }
131 }
132 }
133 ]
134 ```
135
136 Will set the node.name of Firefox to "My Name".
137
138 # ALSA CLIENT PROPERTIES @IDX@ client.conf alsa.properties
139
140 An `alsa.properties` section can be added to configure client applications
141 that connect via the PipeWire ALSA plugin.
142
143 ```css
144 # ~/.config/pipewire/client.conf.d/custom.conf
145
146 alsa.properties = {
147 #alsa.deny = false
148 #alsa.format = 0
149 #alsa.rate = 0
150 #alsa.channels = 0
151 #alsa.period-bytes = 0
152 #alsa.buffer-bytes = 0
153 #alsa.volume-method = cubic # linear, cubic
154 }
155 ```
156
157 @PAR@ client.conf alsa.deny
158 Denies ALSA access for the client. Useful in rules or PIPEWIRE_ALSA environment variable.
159
160 @PAR@ client.conf alsa.format
161 The ALSA format to use for the client. This is an ALSA format name. default 0, which is to
162 allow all formats.
163
164 @PAR@ client.conf alsa.rate
165 The samplerate to use for the client. The default is 0, which is to allow all rates.
166
167 @PAR@ client.conf alsa.channels
168 The number of channels for the client. The default is 0, which is to allow any number of channels.
169
170 @PAR@ client.conf alsa.period-bytes
171 The number of bytes per period. The default is 0 which is to allow any number of period bytes.
172
173 @PAR@ client.conf alsa.buffer-bytes
174 The number of bytes in the alsa buffer. The default is 0, which is to allow any number of bytes.
175
176 @PAR@ client.conf alsa.volume-method = cubic | linear
177 This controls the volume curve used on the ALSA mixer. Possible values are `cubic` and
178 `linear`. The default is to use `cubic`.
179
180 # ALSA CLIENT RULES @IDX@ client.conf alsa.rules
181
182 It is possible to set ALSA client specific properties by using
183 \ref pipewire_conf__match_rules "Match rules, see pipewire(1)". You can
184 set any of the above ALSA properties or any of the `stream.properties`.
185
186 ### Example
187
188 ```css
189 # ~/.config/pipewire/client.conf.d/custom.conf
190
191 alsa.rules = [
192 { matches = [ { application.process.binary = "resolve" } ]
193 actions = {
194 update-props = {
195 alsa.buffer-bytes = 131072
196 }
197 }
198 }
199 ]
200 ```
201
202 # ENVIRONMENT VARIABLES @IDX@ client-env
203
204 See \ref page_man_pipewire_1 "pipewire(1)" for common environment
205 variables. Many of these also apply to client applications.
206
207 The environment variables also influence ALSA applications that are
208 using PipeWire's ALSA plugin.
209
210 @PAR@ client-env PIPEWIRE_ALSA
211 \parblock
212 This can be an object with properties from `alsa.properties` or `stream.properties` that will
213 be used to construct the client and streams.
214
215 For example:
216 ```
217 PIPEWIRE_ALSA='{ alsa.buffer-bytes=16384 node.name=foo }' aplay ...
218 ```
219 Starts aplay with custom properties.
220 \endparblock
221
222 @PAR@ client-env PIPEWIRE_NODE
223 \parblock
224 Instructs the ALSA client to link to a particular sink or source `object.serial` or `node.name`.
225
226 For example:
227 ```
228 PIPEWIRE_NODE=alsa_output.pci-0000_00_1b.0.analog-stereo aplay ...
229 ```
230 Makes aplay play on the give audio sink.
231 \endparblock
232
233 # AUTHORS
234
235 The PipeWire Developers <$(PACKAGE_BUGREPORT)>;
236 PipeWire is available from <$(PACKAGE_URL)>
237
238 # SEE ALSO
239
240 \ref page_module_protocol_pulse "libpipewire-module-protocol-pulse(7)",
241 \ref page_man_pipewire_conf_5 "pipewire.conf(5)",
242 \ref page_man_pipewire-pulse_1 "pipewire-pulse(1)",
243 \ref page_man_pipewire-pulse-modules_7 "pipewire-pulse-modules(7)"