A terminal mixer for PipeWire, inspired by pipemixer and pavucontrol.
Requires Go 1.27 or later:
go install github.com/some-programs/pipmix@latestMake sure $GOPATH/bin (usually ~/go/bin) is in your $PATH, then run:
pipmixPress ? inside pipmix for context-sensitive key and mouse help.
- Default overview tab: Keeps your default output device and active playback streams together in one view, alongside dedicated tabs for Playback, Recording, Output Devices, Input Devices, and Cards (
1–6orTab). Which streams and devices it shows is configurable. - Live level meters: Smooth per-channel average and peak-hold meters directly inside the volume faders, automatically paused when the terminal loses focus.
- MPRIS media integration: Displays currently playing track titles on playback streams, with controls to play/pause (
p) or solo a stream (s). - Full keyboard and mouse control: Emacs and Vim-style keyboard navigation, per-channel volume unlocking (
Space), port and card profile menus (p/P), default device switching (D), and click-and-drag faders. - Configurable: Customizable via command-line flags, environment variables (
PIPMIX_*), or~/.config/pipmix/config.toml.
pipmix reads ~/.config/pipmix/config.toml (or $XDG_CONFIG_HOME/pipmix/config.toml, overridden with -config) if present. Each key in [table] corresponds to the -table.key flag and PIPMIX_TABLE_KEY environment variable (flags override environment variables, which override the config file).
Example config.toml showing the defaults:
[volume]
step = 5 # h/l step in percent
fine-step = 1 # H/L step in percent
max = 150 # maximum volume in percent (100 to 400)
[ui]
fps = 60 # max redraws per second (1 to 240)
tab = "default" # starting tab: default, playback, recording, outputs, inputs, cards (or 1 to 6)
[meter]
enable = true # draw level meters
always = false # keep metering when the terminal is unfocused
rate = 40 # peaks per second per meter (1 to 200)
mode = "both" # both, average, or peak
look = "solid" # solid, shade, or dot
speed = "normal" # fastest, faster, normal, slower, or slowest
peak-hold = "1s" # how long the peak indicator holds before falling
[mpris]
enable = true # show track titles and media controls from D-Bus MPRIS players
[dedup]
enable = true # hide mono playback streams that duplicate a multi-channel stream (helps to deal with chrome)
[mouse]
enable = true # disable to allow normal terminal text selection
[jack]
enable = true # list JACK clients
[default]
recording = "active" # recording streams on the Default tab: off, active (while recording, and 5s after), or all; JACK clients only show on the Recording tab
outputs = "default" # output devices: default, active (others too while in use, and 5s after), or all
inputs = "off" # input devices: off, active (those in use, and 5s after), or all[[default.hide]] rules hide nodes from the Default tab; the other tabs still list everything. They can only be set in the config file. A node is hidden while any rule matching it says so, even when focused.
# Hide FluidSynth once it has been silent for 5 seconds.
[[default.hide]]
match = { type = "playback", name = "^FluidSynth$" }
when = "silent"
after = "5s"
threshold = -80 # dBFS; quieter peaks count as silence
# Hide Firefox's streams while they don't run.
[[default.hide]]
match = { binary = "firefox" }
when = "idle"
# Hide playback streams as soon as they are muted.
[[default.hide]]
match = { type = "playback" }
when = "muted"
after = "0s"-
matchselects nodes; every key given must match.pipmix -debug.dumplists the properties of each node, and the rules each node matches.type:playback,recording,output, orinput.name: a regular expression onnode.name.description: a regular expression onnode.description.app: a regular expression onapplication.name, or on the process name of a stream from PipeWire's ALSA plugin.binary: a regular expression onapplication.process.binary.
Regular expressions are unanchored:
firefoxmatches anywhere in the value,^firefox$only the whole value. -
whensays when matching nodes hide:always(the default): always.idle: while nothing plays or records through the node.muted: while the node is muted. A volume of 0% doesn't count.silent: while its level stays belowthreshold(-80 dBFS unless set). Muted nodes and nodes at 0% stay visible; usemutedfor those.
-
afteris how longidle,muted, orsilentmust last before the node hides; it is 10s unless set. A node shows again as soon as the condition ends, and nodes start out hidden if the condition already holds.
- Pure Go PipeWire protocol implementation: Speaks PipeWire's native SPA POD protocol directly over the PipeWire Unix socket to track graph state and control volumes, mutes, routes, card profiles, and default devices, reconnecting automatically if PipeWire restarts.
- On-demand metering via
pipewire-pulse: Level meters connect directly to thepipewire-pulsenative socket with peak-detect streams only for the nodes currently visible on screen, and only for streams that are playing or recording. When a node scrolls out of view, meters are toggled off (a), or the terminal loses focus, its meter streams are closed and the render loop goes quiet so that laptops can save on battery power. - MPRIS matching over D-Bus: Watches
org.mpris.MediaPlayer2players on the session bus and matches them to PipeWire streams by process ID (walking ancestor PIDs so multi-process browsers match their audio streams).
