I need this feature. Here it is.
Created attachment 62479 [details] [review] patch adds features
As of pulseaudio 5 pactl does have a set-default-{sink,source} command.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.