detect thunderbolt display connection and switch bluetooth accordingly
ControlPlane can do what you want. It's pretty versatile, but you can certainly build a rule that will turn on your Bluetooth when a specific display is attached.