I think it could be:
xrandr --output DP-3 --auto --output HDMI-A-1 --left-of DP-3 --auto
Maybe you could make it with a script like here: