LinuxCommandLibrary

wpctl

TLDR

List objects

$ wpctl status
copy
Inspect object
$ wpctl inspect [id]
copy
Set default
$ wpctl set-default [id]
copy
Get volume
$ wpctl get-volume [id]
copy
Set volume
$ wpctl set-volume [id] [n]%
copy
Adjust volume
$ wpctl set-volume [id] [n]%[+|-]
copy
Set volume with limit
$ wpctl set-volume -l 1 [id] [n]%+
copy
Mute toggle
$ wpctl set-mute [id] [1|0|toggle]
copy

SYNOPSIS

wpctl COMMAND [OPTIONS]

DESCRIPTION

wpctl manages WirePlumber, the session and policy manager for PipeWire. It controls audio routing, volume, and device selection.
The special name @DEFAULT_SINK@ can be used instead of numeric IDs to target the current default sink.

PARAMETERS

-l, --limit MAX

Limit volume to maximum
@DEFAULT_SINK@
Special name for default sink

COMMANDS

status

List all managed objects
inspect ID
Print object properties
set-default ID
Set default for group
get-volume ID
Get sink volume
set-volume ID LEVEL
Set sink volume
set-mute ID STATE
Set mute state

CAVEATS

Requires WirePlumber running. Object IDs may change between sessions. Volume percentages can exceed 100% unless limited.

SEE ALSO

wireplumber(1), pw-cli(1), pactl(1)

Copied to clipboard