style: Format and fix config files

Some minor formatting for recently added config files.
This commit is contained in:
Ivan 2021-02-13 21:11:35 +02:00
parent 3c9996aa78
commit 7e7f0225d4
6 changed files with 74 additions and 64 deletions

View file

@ -2,39 +2,41 @@
context.properties = { context.properties = {
## Configure properties in the system. ## Configure properties in the system.
#mem.warn-mlock = false #mem.warn-mlock = false
#mem.allow-mlock = true #mem.allow-mlock = true
#mem.mlock-all = false #mem.mlock-all = false
#log.level = 2 #log.level = 2
} }
context.spa-libs = { context.spa-libs = {
## <factory-name regex> = <library-name> #<factory-name regex> = <library-name>
# #
# Used to find spa factory names. It maps an spa factory name # Used to find spa factory names. It maps an spa factory name
# regular expression to a library name that should contain # regular expression to a library name that should contain
# that factory. # that factory.
# #
audio.convert* = audioconvert/libspa-audioconvert audio.convert* = audioconvert/libspa-audioconvert
support.* = support/libspa-support support.* = support/libspa-support
} }
context.modules = { context.modules = {
## <module-name> = { [args = { <key>=<value> ... }] #<module-name> = {
# [flags = [ [ifexists] [nofail] ]} # [ args = { <key> = <value> ... } ]
# [ flags = [ [ ifexists ] [ nofail ] ]
#}
# #
# Loads a module with the given parameters. # Loads a module with the given parameters.
# If ifexists is given, the module is ignored when it is not found. # If ifexists is given, the module is ignored when it is not found.
# If nofail is given, module initialization failures are ignored. # If nofail is given, module initialization failures are ignored.
# #
# Uses RTKit to boost the data thread priority. # Uses RTKit to boost the data thread priority.
libpipewire-module-rtkit = { libpipewire-module-rtkit = {
args = { args = {
#nice.level = -11 #nice.level = -11
#rt.prio = 20 #rt.prio = 20
#rt.time.soft = 200000 #rt.time.soft = 200000
#rt.time.hard = 200000 #rt.time.hard = 200000
} }
flags = [ ifexists nofail ] flags = [ ifexists nofail ]
} }

View file

@ -1,26 +1,28 @@
# Client config file for PipeWire version @VERSION@ # # Client config file for PipeWire version @VERSION@ #
context.properties = { context.properties = {
## Configure properties in the system. ## Configure properties in the system.
#mem.warn-mlock = false #mem.warn-mlock = false
#mem.allow-mlock = true #mem.allow-mlock = true
#mem.mlock-all = false #mem.mlock-all = false
#log.level = 2 #log.level = 2
} }
context.spa-libs = { context.spa-libs = {
## <factory-name regex> = <library-name> #<factory-name regex> = <library-name>
# #
# Used to find spa factory names. It maps an spa factory name # Used to find spa factory names. It maps an spa factory name
# regular expression to a library name that should contain # regular expression to a library name that should contain
# that factory. # that factory.
# #
audio.convert* = audioconvert/libspa-audioconvert audio.convert* = audioconvert/libspa-audioconvert
support.* = support/libspa-support support.* = support/libspa-support
} }
context.modules = { context.modules = {
## <module-name> = { [args = { <key>=<value> ... }] #<module-name> = {
# [flags = [ [ifexists] [nofail] ]} # [ args = { <key> = <value> ... } ]
# [ flags = [ [ ifexists ] [ nofail ] ]
#}
# #
# Loads a module with the given parameters. # Loads a module with the given parameters.
# If ifexists is given, the module is ignored when it is not found. # If ifexists is given, the module is ignored when it is not found.

View file

@ -2,25 +2,27 @@
context.properties = { context.properties = {
## Configure properties in the system. ## Configure properties in the system.
#mem.warn-mlock = false #mem.warn-mlock = false
#mem.allow-mlock = true #mem.allow-mlock = true
#mem.mlock-all = false #mem.mlock-all = false
#log.level = 2 #log.level = 2
} }
context.spa-libs = { context.spa-libs = {
## <factory-name regex> = <library-name> #<factory-name regex> = <library-name>
# #
# Used to find spa factory names. It maps an spa factory name # Used to find spa factory names. It maps an spa factory name
# regular expression to a library name that should contain # regular expression to a library name that should contain
# that factory. # that factory.
# #
support.* = support/libspa-support support.* = support/libspa-support
} }
context.modules = { context.modules = {
## <module-name> = { [args = { <key>=<value> ... }] #<module-name> = {
# [flags = [ [ifexists] [nofail] ]} # [ args = { <key> = <value> ... } ]
# [ flags = [ [ ifexists ] [ nofail ] ]
#}
# #
# Loads a module with the given parameters. # Loads a module with the given parameters.
# If ifexists is given, the module is ignored when it is not found. # If ifexists is given, the module is ignored when it is not found.
@ -28,13 +30,13 @@ context.modules = {
# #
# #
# Uses RTKit to boost the data thread priority. # Uses RTKit to boost the data thread priority.
libpipewire-module-rtkit = { libpipewire-module-rtkit = {
args = { args = {
#nice.level = -11 #nice.level = -11
#rt.prio = 20 #rt.prio = 20
#rt.time.soft = 200000 #rt.time.soft = 200000
#rt.time.hard = 200000 #rt.time.hard = 200000
} }
flags = [ ifexists nofail ] flags = [ ifexists nofail ]
} }

View file

@ -2,8 +2,8 @@
context.properties = { context.properties = {
# Properties to configure the session and some # Properties to configure the session and some
# modules. # modules.
#mem.mlock-all = false #mem.mlock-all = false
#support.dbus = true #support.dbus = true
} }
context.spa-libs = { context.spa-libs = {
@ -15,21 +15,23 @@ context.spa-libs = {
} }
context.modules = { context.modules = {
## <module-name> = { [args = { <key>=<value> ... }] #<module-name> = {
# [flags = [ [ifexists] [nofail] ]} # [ args = { <key> = <value> ... } ]
# [ flags = [ [ ifexists ] [ nofail ] ]
#}
# #
# Loads a module with the given parameters. # Loads a module with the given parameters.
# If ifexists is given, the module is ignored when it is not found. # If ifexists is given, the module is ignored when it is not found.
# If nofail is given, module initialization failures are ignored. # If nofail is given, module initialization failures are ignored.
# #
# Uses RTKit to boost the data thread priority. # Uses RTKit to boost the data thread priority.
libpipewire-module-rtkit = { libpipewire-module-rtkit = {
args = { args = {
#nice.level = -11 #nice.level = -11
#rt.prio = 20 #rt.prio = 20
#rt.time.soft = 200000 #rt.time.soft = 200000
#rt.time.hard = 200000 #rt.time.hard = 200000
} }
flags = [ ifexists nofail ] flags = [ ifexists nofail ]
} }

View file

@ -1,36 +1,38 @@
# PulseAudio config file for PipeWire version @VERSION@ # # PulseAudio config file for PipeWire version @VERSION@ #
context.properties = { context.properties = {
## Configure properties in the system. ## Configure properties in the system.
#mem.warn-mlock = false #mem.warn-mlock = false
#mem.allow-mlock = true #mem.allow-mlock = true
#mem.mlock-all = false #mem.mlock-all = false
#log.level = 2 #log.level = 2
} }
context.spa-libs = { context.spa-libs = {
audio.convert* = audioconvert/libspa-audioconvert audio.convert* = audioconvert/libspa-audioconvert
support.* = support/libspa-support support.* = support/libspa-support
} }
context.modules = { context.modules = {
libpipewire-module-rtkit = { libpipewire-module-rtkit = {
args = { args = {
#nice.level = -11 #nice.level = -11
#rt.prio = 20 #rt.prio = 20
#rt.time.soft = 200000 #rt.time.soft = 200000
#rt.time.hard = 200000 #rt.time.hard = 200000
} }
flags = [ ifexists nofail ] flags = [ ifexists nofail ]
} }
libpipewire-module-protocol-native = null libpipewire-module-protocol-native = null
libpipewire-module-client-node = null libpipewire-module-client-node = null
libpipewire-module-adapter = null libpipewire-module-adapter = null
libpipewire-module-metadata = null libpipewire-module-metadata = null
libpipewire-module-protocol-pulse = { libpipewire-module-protocol-pulse = {
args = { args = {
server.address = [ server.address = [
"unix:native" "unix:native"
# "tcp:4713" # "tcp:4713"
} ]
}
} }
} }

View file

@ -162,11 +162,11 @@ context.objects = {
# that you can link, to provide audio for this source. # that you can link, to provide audio for this source.
#adapter = { #adapter = {
# args = { # args = {
# factory.name = support.null-audio-sink # factory.name = support.null-audio-sink
# node.name = my-mic # node.name = my-mic
# node.description = Microphone # node.description = Microphone
# media.class = Audio/Source/Virtual # media.class = Audio/Source/Virtual
# audio.position = "FL,FR" # audio.position = "FL,FR"
# } # }
#} #}