Desktop Icon Arrangement
Preserve existing desktop icon positions and place new icons in free columns to the right.
Author: Nerdworld
Experimental mod for Windows 11. Turn off View > Auto arrange icons
on the desktop before enabling it. Align icons to grid can stay enabled.
The mod remembers the current layout. When a new desktop item appears, it
restores the positions of existing items and puts the new item in a free column
to their right. Further new items fill this area from top to bottom, then move
to the next column. If that area is full, it tries other monitors and free gaps.
When there is insufficient space for a whole batch, Windows keeps its layout.
This also applies to files dropped on the desktop: their drop location is
replaced by the configured placement. Moving existing icons remains possible.
Changing First column for new icons lets you choose a fixed starting column;
0 calculates it from your arrangement whenever a fresh baseline is established.
This is a corrective mod, not an interception of Explorer's insertion code.
Icons may briefly move before the next check (250 ms by default during desktop
activity). A short follow-up period corrects delayed rearrangements by Explorer.
Desktop mouse gestures end follow-up corrections when no new items appear.
Positions are kept in memory, and Explorer
stores changes through its normal desktop API. Disabling the mod stops future
corrections and leaves the current arrangement in place.
The mod runs in a dedicated Windhawk process. Shell notifications from the user
and public desktop folders trigger brief checks for changes. The saved layout
is also refreshed while the desktop is active and once when it loses focus.
Otherwise, a fallback check runs every five seconds. Missed notifications can
therefore delay a correction. Mouse gestures in other apps do not pause it.
Icon size, monitor layout, grid spacing, view mode, auto-arrange and starting
column changes establish a fresh baseline, as does reconnecting after an
Explorer restart. The mod does not restore layouts from earlier sessions.
Renames reported by Shell notifications retain their positions; undelivered or
late rename notifications can make a renamed item look like a new item.
Enable logging for this mod in Windhawk to see connection, correction and
error messages.