Linux command
wpctl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
wpctl status
Inspect
wpctl inspect [id]
Example
wpctl set-default [id]
Get
wpctl get-volume [id]
Set
wpctl set-volume [id] [n]%
Adjust
wpctl set-volume [id] [n]%[+|-]
Example
wpctl set-volume -l 1 [id] [n]%+
Mute
wpctl set-mute [id] [1|0|toggle]
说明
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.
参数
- -l, --limit _MAX_
- Limit volume to maximum
- @DEFAULT_SINK@
- Special name for default sink
FAQ
What is the wpctl command used for?
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.
How do I run a basic wpctl example?
Run `wpctl status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --limit _MAX_ do in wpctl?
Limit volume to maximum