PulseAudio's default behavior when disconnecting Bluetooth devices can be frustrating. When your Bluetooth headphones disconnect, PulseAudio automatically switches to another available sink - but not necessarily the one you want (like your laptop speakers).
This solution uses udev rules to automatically switch audio devices when Bluetooth connects/disconnects:
- When Bluetooth headphones connect -> Set them as default input/output
- When Bluetooth headphones disconnect -> Force specific fallback devices (e.g., laptop speakers)