Device connection triggers (ie: usb)

Would it be possible to have triggers when a specific usb (or other) device is connected.

My use case for this is to run some adb commands (and scrcpy) when connecting android phone.

Could be interesting also being able to specify a log file and have btt trigger when a new log entry matches some regex or string. (think that would also allow to run triggers when usb device is connected but with more manual work). Worth raising a separate feature request for that?