Move and Gather Windows
Move or gather windows with global hotkeys and remap numbered shortcuts to the intended displays
Author: Fred
Move the active window, or gather eligible open windows, to a chosen display with
global shortcuts. Windows are placed inside the usable desktop area so taskbars
remain clear. Windows already on the destination display are left unchanged.
Numbered shortcuts follow connected Windows display device names in numeric order.
They can be remapped without changing the shortcuts themselves.
Choosing between similar mods
This mod is useful when you want shortcuts for the primary, numbered, mouse, or
active-window display, or when you want to gather multiple windows at once. The
Move Window to Monitor mod is a simpler alternative when you only want to move
the active window to the nearest display above, below, left, or right with arrow
shortcuts. Both mods can be installed, but their shortcuts must not conflict.
Move foreground window shortcuts
These settings move only the window you are currently using.
- Move foreground window to primary display defaults to
Ctrl+Alt+Shift+W.
- Move foreground window to display 1-5 default to
Ctrl+Alt+Shift+1 through Ctrl+Alt+Shift+5.
Gather shortcuts
These settings move all eligible open windows.
- Gather to primary display defaults to
Ctrl+Alt+Shift+P.
- Gather to display under mouse defaults to
Ctrl+Alt+Shift+M.
- Gather to foreground window display defaults to
Ctrl+Alt+Shift+A.
The active window chooses the destination; all eligible windows are gathered
there.
- Gather to display 1-5 are disabled by default. Set any of them to a
shortcut when needed.
Hotkeys accept values such as Ctrl+Alt+Shift+1, Ctrl+Win+M, F9, or None.
If two actions use the same shortcut, the older action keeps it and the conflict
is logged. This protects existing shortcuts after an update.
Display order override
Numbered move and gather actions normally number connected displays contiguously
using Windows device-name order. For example, connected DISPLAY4 and DISPLAY6
become display 1 and display 2. Display order override changes what "display 1",
"display 2", and so on mean while keeping every hotkey unchanged.
These shortcut numbers may differ from numbers shown in Windows Settings.
Enter up to five comma-separated entries containing primary or display device
names. Both DISPLAY4 and the full \\.\DISPLAY4 form are accepted:
primary,DISPLAY3 keeps display 1 tied to whichever display is currently
primary and makes DISPLAY3 become display 2.
\\.\DISPLAY4,\\.\DISPLAY3 accepts names copied directly from PowerShell.
Each listed name keeps its numbered slot even while that display is disconnected;
using that shortcut while it is disconnected does nothing. Unlisted connected
displays follow in normal DISPLAY number order. The override affects numbered
move and gather actions only. Primary, mouse, and active-window destinations are
unchanged. Avoid listing both primary and its device name because they refer to
the same display.
To find the names assigned to connected displays, run this in Windows PowerShell:
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::AllScreens |
Select-Object DeviceName, Primary, Bounds
Leave the setting empty to use automatic connected-display order. An invalid value
rejects the whole override and safely returns to automatic order. Windhawk logging
also shows connected device names and the final numbered order when the mod starts,
settings change, or an action runs after the display layout changes.
If a numbered destination is unavailable, the action is skipped.
Updating shortcut and window selection defaults
Numbered shortcuts now move the foreground window by default. After updating,
Ctrl+Alt+Shift+1 through Ctrl+Alt+Shift+3 move one window instead of gathering;
numbered gather shortcuts are disabled until configured. Explicitly saved shortcuts
keep their existing values and take priority if a new default conflicts.
Gather actions now include owned windows and popups by default. Turn off Include
owned windows/popups to keep dialogs and secondary windows in place.
Updating window size settings
Earlier versions used Preserve window size together with a separate
Shrink oversized windows to fit switch. After updating, verify the new
Window size behavior setting:
- Preserve with shrinking on maps to Fit oversized windows.
- Preserve with shrinking off maps to Always preserve size.
- Scale proportionally with shrinking on maps to Scale proportionally.
- Scale proportionally with shrinking off also maps most closely to
Scale proportionally, but oversized windows are now kept within the
destination display.
Windhawk can retain an existing value during an update, so customized users
should check this dropdown once after installing the new version.
Updating minimized window settings
The previous two minimized-window checkboxes are now one Minimized windows
dropdown. If minimized windows were restored and moved before updating, select
Restore and move minimized windows once. Otherwise, the new default continues
skipping minimized windows.
Window handling settings
- Minimized windows chooses whether minimized windows are skipped or restored
and moved. Skipping is the default.
- Skip fullscreen windows during gather avoids sweeping fullscreen apps and
games into a bulk gather. An explicit foreground-window shortcut still moves
the selected fullscreen window.
- Window size behavior controls resizing at the destination. Fit shrinks
only windows that are too large, Preserve never resizes, and Scale
adjusts size in proportion to the destination display.
- Cascade windows offsets gathered windows so they do not completely overlap.
- Cascade offset in pixels controls the distance between cascaded windows.
- Window anchor chooses the starting position: center, top left, or mouse
cursor.
- Include owned windows/popups includes dialogs and secondary windows attached
to another app window during gather actions.
Behavior and limitations
Hidden windows, desktop and taskbar windows, system interface windows, helper
windows, and tool windows are intentionally skipped. Gather actions also skip
untitled windows. Active-window actions can still move a window with no title or
a window attached to another app window.
Moved windows are raised above windows already on the destination display without
taking keyboard focus. A moved maximized active window is maximized again on the
destination. Gathered maximized windows are restored so they can be arranged.
Moving a minimized window without restoring it is not supported because
applications handle that inconsistently.
DPI-unaware windows can be resized by Windows when moved between displays with
different scaling, even when Preserve is selected.