I'm using a PipeWire device sink that applies an equalizer configuration. This works, but in my case, the volume of the source device needs to be maxed out to use the sink device properly.
I was tired of always setting the volume to 100% and then switching back to the sink device which has the equalizer config applied.
So, I created a little script that monitors for device changes. It sets the volume of the source to 100% when the sink device is selected and restores the volume to its previous state when switching back.