Watches PulseAudio events for new sinks connected, and if the name matches the configured name, make that sink the default sink.
Probably works best when installed with pipx: pipx install audio-connected
To make it run on startup, you can add a XDG Autostart entry in $XDG_CONFIG_HOME/autostart (~/.config/autostart by default).
Example:
[Desktop Entry]
Version=1.5
Type=Application
Name=Audio Connected
Comment=Set EPOS ADAPT 660 headset as default sink when connected
Exec=audio-connected "EPOS ADAPT 660"
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false