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
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/