... | ... | @@ -441,5 +441,29 @@ An array of allowed samplerates for the node. ex. "[ 44100 48000 ]" |
|
|
|
|
|
# Rules
|
|
|
|
|
|
Streams and filter don't yet support match rules.
|
|
|
You can add [rules](Config-PipeWire#rules) to set properties for certain streams and filters.
|
|
|
|
|
|
`stream.rules` and `filter.rules` provides an `update-props` action that takes an object with
|
|
|
properties that are updated on the node object of the stream and filter.
|
|
|
|
|
|
Add a `stream.rules` or `filter.rules` section in the config file like this:
|
|
|
|
|
|
```
|
|
|
stream.rules = [
|
|
|
{
|
|
|
matches = [
|
|
|
{
|
|
|
# all keys must match the value. ~ starts regex.
|
|
|
application.process.binary = "firefox"
|
|
|
}
|
|
|
]
|
|
|
actions = {
|
|
|
update-props = {
|
|
|
node.name = "My Name"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
Will set the node.name of firefox to "My Name".
|
|
|
|