I've found the script very Useful and I used it with "xrandr" to enable/disable TV output.
But now it's stopped working!

Default sink changes, but inputs created after the switch aren't affected...