pacmd(1)
Interact with the PulseAudio sound server daemon to query and change its configuration.
Synopsis
pacmd [OPTION]... [COMMAND]...Description
pacmd is a command-line interface to the PulseAudio sound daemon. It connects to the running PulseAudio server and allows you to execute administrative commands, such as switching audio devices, adjusting volumes, listing sinks and sources, and managing audio streams.
Commands can be passed as arguments or entered interactively. If no command is given, pacmd starts an interactive shell where you can enter commands one at a time.
Common options
| Flag | What it does |
|---|---|
-h, --help | Display help message and exit |
-v, --version | Display version information and exit |
-s, --server=SERVER | Connect to a specific PulseAudio server socket |
Examples
List all available audio output devices (sinks) with their details and indices
pacmd list-sinksSet sink index 1 as the default audio output device
pacmd set-default-sink 1List all available audio input devices (sources)
pacmd list-sourcesSet the volume of sink 0 to 100% (65536 is max)
pacmd set-sink-volume 0 65536Mute sink 0 (1 = muted, 0 = unmuted)
pacmd set-sink-mute 0 1Show all active playback streams and which sink they're using
pacmd list-sink-inputsMove audio stream 2 (sink-input) to sink 1
pacmd move-sink-input 2 1Display general PulseAudio daemon statistics and server info
pacmd stat