Comments (2)
I've just discovered a way to do this via the command line with pipewire
:
$ pw-cli ls Node
# This will output a list of nodes... find the one you want, it will have `media.class = "Stream/Output/Audio"`
# To change its volume:
$ pw-cli s <id_from_prev_command> Props '{ mute: false, channelVolumes: [ 1.0, 1.0 ] }'
(Where channelVolumes
are percentage values from 0
to 1
)
See this link for more: https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Migrate-PulseAudio#sink-inputsource-output-volumemute
While it's good to have a way to do this, pw-cli
's output isn't that nice to parse, and I need to confirm if it remembers the volumes like pulseaudio
from pa_volume.
I've discovered another pipewire
utility: pw-dump
which outputs everything as a JSON object, which allows finding the node more easily, something like:
$ id=$(pw-dump | jq '.[] | select(.type == "PipeWire:Interface:Node") | select(.info.props["application.name"] == "mpv") | .id')
And then the volume can be changed with the pw-cli
command I mentioned above.
from pa_volume.
Related Issues (10)
- Multiple volume levels HOT 2
- exception when trying to set the volume for an application HOT 2
- The settings for AudioIPC Server are not remembered HOT 4
- Merge to Pulseaudio project / convert to module HOT 3
- add proper command line parsing HOT 1
- set all clients to one volume - bash script workaround HOT 1
- pa_volume command not found HOT 1
- Document also how it can be installed in alpine HOT 2
- after installation on raspberry pi bullseye command not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pa_volume.