This is a script that allows you to configure your screen layout based on substring from your display's EDID (think: serial number of a display).
Full write up with examples:
https://wejn.org/2022/09/setting-xorg-screen-layout-by-monitor-serial/
apt install ruby arandr x11-xserver-utils