Sidecar & extend to based on USB port side possible?

I often times have my iPad sidecar wirelessly so that I can use my macbooks keyboard and trackpad to control my iPad pro. The iPad pro is usually on the right hand side in this instance. But often times, I’ll plug in the USB. When I do this, Im usually doing so because I need the iPad as a secondary monitor. My question is, is there any way to move the iPad screen automatically to whatever side of the macbook that the iPad is plugged in on?

Of if theres no way to differentiate between the USB on right or left side in keyboard maestro app, would it be possible to just auto move the iPad to the left side of my macbook anytime its plugged in through USB (since majority of time, its plugged in, when I need to use on… on the left side)

I found this tool DisplayPlacer. I don't have an iPad to hand for testng at the moment, but it looks like it can do most of what you want. I don't know of a way to detect an iPad's lateral position relative to a MacBook; however, you could start with something like using the Display Layout Changed trigger with Execute a Shell Script actions to change the display arrangement. Potentially there might be a way to test if an iPad is connected via USB or not, though as I say I've no way to test just now. If there is, then you can use the conditional to automate the display arrangement. Barring that, I can think of a few ways to get it done, but they all require some kind of user input. And if there must be user input, I would probably write a macro with a hotkey trigger that would simply toggle the display arrangement back and forth.