1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
# This file documents wiremix's configuration file. It is also itself a wiremix
# configuration file in which wiremix's default configuration is specified.
#
# It is recommended to start with an empty configuration file and to use this
# file only as a reference. Anything specified in the configuration file will
# be merged with wiremix's defaults.
# Main Options
# PipeWire remote to connect to
#remote = "pipewire-0"
# Limit rendering frames per second (unlimited if unset)
#fps = 60.0 #
# Enable mouse support
= true
# Peak meter mode
# "off" - no meters
# "mono" - mono meters
# "auto" - left/right meters for stereo streams, otherwise mono
= "auto"
# Character set to use (see Character Sets section)
= "default"
# Theme to use (see Themes section)
= "default"
# Initial tab
= "playback"
# Maximum percentage for volume sliders
= 150.0
# Whether to prevent increasing volume past max_volume
= false
# Keybindings
#
# A keybinding consists of a key, modifiers, and a UI action to be performed.
#
# Keybindings you define in your configuration will be merged with the default
# keybindings (listed below for reference). You can effectively delete a
# default keybinding by setting its action to "Nothing".
#
# A keybinding key can be one of:
# 1. A character: { Char = "x" } # for the 'x' key
# 2. An F-key: { F = 1 } # for F1
# 3. A media key: { Media = "MediaKeyCode" }
# where MediaKeyCode is one of:
# Play Pause PlayPause Reverse Stop FastForward Rewind TrackNext
# TrackPrevious Record LowerVolume RaiseVolume MuteVolume
# 4. A special key: "SpecialKey"
# where SpecialKey is one of:
# Backspace Enter Left Right Up Down Home End PageUp PageDown Tab BackTab
# Delete Insert Null Esc CapsLock ScrollLock NumLock PrintScreen Pause
# Menu KeypadBegin
#
# A keybinding modifier can be one or more of SHIFT CONTROL ALT SUPER HYPER
# META NONE combined with |. It defaults to NONE if omitted.
#
# For example:
#
# keybindings = [
# # Demonstrate modifiers
# { key = "End", modifier = "CTRL | ALT", action = "Exit" },
# ]
#
# Each of the available keybinding actions are documented below.
= [
# Exit the program
{ = { = "q" }, = "Exit" },
# Toggle mute for the selected item
{ = { = "m" }, = "ToggleMute" },
# Make the selected item in Input/Output Devices the default endpoint
{ = { = "d" }, = "SetDefault" },
# Increase the volume of the selected item by 1%
{ = { = "l" }, = { = 0.01 } },
{ = "Right", = { = 0.01 } },
# Decrease the volume of the selected item by 1%
{ = { = "h" }, = { = -0.01 } },
{ = "Left", = { = -0.01 } },
# Open a dropdown for the selected item or chose an item in the dropdown
{ = { = "c" }, = "ActivateDropdown" },
{ = "Enter", = "ActivateDropdown" },
# Close an open dropdown
{ = "Esc", = "CloseDropdown" },
# Select the next item
{ = { = "j" }, = "MoveDown" },
{ = "Down", = "MoveDown" },
# Select the previous item
{ = { = "k" }, = "MoveUp" },
{ = "Up", = "MoveUp" },
# Select the next tab
{ = { = "L" }, = "TabRight" },
{ = "Tab", = "TabRight" },
# Select the previous tab
{ = { = "H" }, = "TabLeft" },
{ = "BackTab", = "SHIFT", = "TabLeft" },
# Set the volume of the selected item in 10% increments from 0% to 100%
{ = { = "`" }, = { = 0.00 } },
{ = { = "1" }, = { = 0.10 } },
{ = { = "2" }, = { = 0.20 } },
{ = { = "3" }, = { = 0.30 } },
{ = { = "4" }, = { = 0.40 } },
{ = { = "5" }, = { = 0.50 } },
{ = { = "6" }, = { = 0.60 } },
{ = { = "7" }, = { = 0.70 } },
{ = { = "8" }, = { = 0.80 } },
{ = { = "9" }, = { = 0.90 } },
{ = { = "0" }, = { = 1.00 } },
# Open the help menu
{ = { = "?" }, = "Help" },
# There are two actions which don't have default bindings:
# 1. "Nothing": Do nothing - can effectively delete a default keybinding
# 2. { SelectTab = N }: Open the Nth tab
]
# Names
#
# You can customize how streams, endpoints, and devices are named in the user
# interface using a template system to generate names based on PipeWire
# properties.
#
# Name templates are composed of property tags enclosed in { } and literal
# text. For example:
#
# "Application {client:application.name} playing {node:media.name}"
#
# wiremix will replace the property tags with the properties from the PipeWire
# object being displayed.
#
# The first part of a tag specifies the object type - device, node, or client,
# and the second part specifies the property.
#
# You can use pw-dump(1) to inspect the available properties.
#
# Literal curly braces can be escaped by doubling them: {{ become { and }}
# becomes }.
#
# Streams can have linked clients, so node and client properties are valid for
# stream. Similarly, endpoint can use either node or device properties. Only
# device properties are valid for device.
#
# Each option in names is an array - if a template can't be resolved because it
# uses a property which doesn't exit on a given object, wiremix tries the next
# template in the sequence. If none of them can be resolved, it falls back on
# node.name for nodes or device.name for devices.
#
# The overall order of precedence for name resolution is:
# 1. Matching override templates, if any (see the Name Overrides section)
# 2. Configured templates for the object type
# 3. Fall back to the object's name property
[]
# Streams in the Playback/Recording tabs
= [ "{node:node.name}: {node:media.name}" ]
# Endpoints in the Input/Output Devices tabs
= [ "{device:device.nick}", "{node:node.description}" ]
# Devices in the Configuration tab
= [ "{device:device.nick}", "{device:device.description}" ]
# Name Overrides
#
# Name overrides define alternate templates that will be used for objects
# matching a given criterion.
#
# An override is matched by type, which contains a list of one or more of
# stream, endpoint, or device (see the Name section for more details), and a
# property value. Any node or device property that can be used in the names
# section can be used to match an override.
#
# There are no default overrides, but here is an example. This causes all
# streams whose node.name is "spotify" to use just "{node:node.name}" as its
# name.
#
# [[names.overrides]]
# # Which object types this override applies to
# types = [ "stream" ]
# # The property to match
# property = "node:node.name"
# # The value to match
# value = "spotify"
# # Templates to use when the property value matches
# templates = [ "{node:node.name}" ]
#
# You can have multiple name overrides, each in its own [[names.overrides]]
# section.
# Themes
#
# Themes determine the styling of user interface elements.
#
# Theme styles are based on ratatui's Style struct.
# https://docs.rs/ratatui/latest/ratatui/style/struct.Style.html
#
# Each style can have an fg color, a bg color, and modifiers. Any property not
# specified will inherit from the default style for your terminal.
#
# fg and bg can be an RGB hex value in the form "#RRGGBB" or named ANSI colors:
# Black Red Green Yellow Blue Magenta Cyan Gray DarkGray LightRed LightGreen
# LightYellow LightBlue LightMagenta LightCyan White
#
# add_modifier can be one or more of BOLD DIM ITALIC UNDERLINED SLOW_BLINK
# RAPID_BLINK REVERSED HIDDEN CROSSED_OUT combined with |.
#
# For example:
#
# # Red foreground on a black background with bold, underlined text
# { fg = "#FF0000", bg = "Black", add_modifier = "BOLD | UNDERLINE" }
#
# An empty style with no properties ({ }) corresponds to the default style.
#
# You can modify built-in themes. Anything you don't specify will remain
# unchanged. For example:
#
# # Modify the "default" theme to make the selection indicator blink.
# [themes.default]
# selector = { fg = "LightCyan", add_modifier = "SLOW_BLINK" }
#
# And you can create a new theme that inherits unspecified styles from a
# built-in theme. For example:
#
# # Create a new theme called "my_custom_theme" based on "nocolor"
# [themes.my_custom_theme]
# inherit = "nocolor"
# tab_selected = { fg = "LightCyan", add_modifier = "SLOW_BLINK" }
#
# The "inherit" option is optional. If not present, the new theme will inherit
# from the "default" theme.
#
# The following is the default theme with each themeable property described.
[]
# The symbol marking the default device on the Input/Output Devices tabs
= { }
# The symbol marking the default endpoint on the Playback/Recording tabs
= { }
# The selection indicator in a tab
= { = "LightCyan" }
# The name of a tab in the tab menu
= { }
# The name of the selected tab in the tab menu
= { = "LightCyan" }
# The symbols surrounding the selected tab in the tab menu
= { = "LightCyan" }
# The symbol at the top/bottom of a tab indicating that there are more items
= { = "DarkGray" }
# The name of a PipeWire node
= { }
# The name of the selected target for a node
= { }
# The volume percentage label
= { }
# Volume bar
= { = "DarkGray" }
= { = "LightBlue" }
# Peak meter. Inactive = unlit, active = lit, overload = greater than 0.0 dB
= { = "DarkGray" }
= { = "LightGreen" }
= { = "Red" }
# The "live" indicator in the center of the meter
= { = "DarkGray" }
= { = "LightGreen" }
# The name of a device in the Configuration tab
= { }
# The name of the selected profile in the Configuration tab
= { }
# Dropdown marker next to the profiles in the Configuration tab
= { }
# Border around dropdowns
= { }
# The name of an item in a dropdown
= { }
# The name of the currently-selected item in a dropdown
= { = "LightCyan", = "REVERSED" }
# The symbol at the top/bottom of a dropdown indicating that there are more
# items
= { = "DarkGray" }
# Border around help menu
= { }
# The name of an item in a the help menu
= { }
# The symbol at the top/bottom of the help menu indicating that there are more
# items
= { = "DarkGray" }
# Character Sets
#
# Character sets define the symbols used in the user interface.
#
# You can modify built-in characters sets. Anything you don't specify will
# remain unchanged. For example:
#
# # Modify the "default" character set to use parentheses around the selected
# # tab name
# [char_sets.default]
# tab_marker_left = "("
# tab_marker_right = ")"
#
# And you can create a new character set that inherits unspecified symbols from
# a built-in character set. For example:
#
# # Create a new character set called "my_custom_char_set" based on "compat"
# [char_sets.my_custom_char_set]
# inherit = "compat" # Inherit from "compat" (omit to inherit from "default")
# tab_marker_left = "("
# tab_marker_right = ")"
#
# The following is the default character set which the options described.
[]
# Marks the default device on the Input/Output Devices tabs
= "◇"
# Marks the default endpoint on the Playback/Recording tabs
= "◇"
# The selection indicator in a tab
= "░"
= "▒"
= "░"
# Surround the selected tab in the tab menu
= "["
= "]"
# Displayed at the top/bottom of a tab when there are more items
= "•••"
# Volume bar
= "╌"
= "━"
# Peak meter. Inactive = unlit, active = lit, overload = greater than 0.0 dB
# Mono meters use only the right side characters
= "▮"
= "▮"
= "▮"
= "▮"
= "▮"
= "▮"
# The "live" indicator in the center of the meter
# Mono meters use only the right side
= "▮"
= "▮"
= "▮"
= "▮"
# Dropdown marker next to the profiles in the Configuration tab
= "▼"
# Indicates the selected item in a dropdown
= ">"
# Displayed at the top/bottom of a dropdown when there are more items
= "•••"
# Border around dropdowns
# One of "Plain", "Rounded", "Double", "Thick", "QuadrantInside",
# "QuadrantOutside"
= "Rounded"
# Displayed at the top/bottom of the help menu when there are more items
= "•••"
# Border around help menu
# One of "Plain", "Rounded", "Double", "Thick", "QuadrantInside",
# "QuadrantOutside"
= "Rounded"
# Appendix A
#
# The other built-in themes and character sets are defined for reference here.
[]
= { }
= { }
= { = "BOLD" }
= { }
= { = "BOLD" }
= { = "BOLD" }
= { }
= { }
= { }
= { }
= { = "DIM" }
= { = "BOLD" }
= { = "DIM" }
= { = "BOLD" }
= { = "BOLD" }
= { = "DIM" }
= { = "BOLD" }
= { }
= { }
= { }
= { }
= { }
= { = "BOLD | REVERSED" }
= { }
= { }
= { }
= { }
[]
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
= { }
[]
= "◊"
= "◊"
= "░"
= "▒"
= "░"
= "["
= "]"
= "•••"
= "─"
= "━"
= "┃"
= "┃"
= "┃"
= "┃"
= "┃"
= "┃"
= "█"
= "█"
= "█"
= "█"
= "▼"
= ">"
= "•••"
= "Plain"
= "•••"
= "Plain"
[]
= "*"
= "*"
= "-"
= "="
= "-"
= "["
= "]"
= "~~~"
= "-"
= "="
= "="
= "#"
= "!"
= "="
= "#"
= "!"
= "["
= "["
= "]"
= "]"
= "\\"
= ">"
= "~~~"
= "Plain"
= "~~~"
= "Plain"