Distribute icons on the desktop in Mac OS with keyboard maestro when the display output changes

I'm using Mac OS and every time I plug in an external widescreen, the icon layout goes wild. I would like to have a macro that will simply sort out my puplit when changing the display output. I know that you can trigger the action whenever the display layout changes but how to deal with icons distribution.

Existing solutions build in the Mac OS system do not satisfy me. I'm not a huge fan of stacks. I'd like to have group of icons always in the middle and some on the left while rest on the right of the screen, no matter the resolution. Any ideas?

Have you tried the app DIM (Desktop Icon Manager)?