I was thinking about figuring out how to set up something similar so I can adjust discord volume separately from everything else but I haven’t got around to it yet.
I think the way to go would be using
wpctl status
To get a list of all sources and sinks and parse out the id from there
wpctl status | grep "\. Some Discord Output" | egrep '^ │( )*[0-9]*' -o | cut -c6-55 | egrep -o '[0-9]*'
I think the above would return the ID of a node named “Some Discord Output” but I’m not at my computer to check
There’s gpu screen recorder, and gpu screen recorder UI which is basically a clone of the shadowplay ui. It’s worked pretty well for me on arch
https://git.dec05eba.com/gpu-screen-recorder-ui/about/