This is a moderate reworking of an old group of macros I wrote in 2016--omg has it been SEVEN YEARS -- titled "MACRO: Move and Resize Windows In Any Quadrant, Half, or Full Screen". There are many examples on the forum of how you can move and arrange windows with the Manipulate a Window Action. Most of these macros use numeric hotkeys or similar; however, I prefer a more visual (spatial?) system for moving windows, using a hotkey + arrow combinations to represent the desired window positioning.
WinMover is triggered with
⌃⌥⌘ + any combination of arrow keys.
⌃⌥⌘ + ← = left column
⌃⌥⌘ + ←↑ = top left quadrant of the screen
⌃⌥⌘ + ↓→ = bottom right quadrant of the screen
⌃⌥⌘ + ←→ = full screen
⌃⌥⌘ + ↓↑ = full screen
And so forth! The order in which you press the arrows does not matter, since there are four separate macros, each watching for one of the arrow keys, which may be pressed fractions of a second before the other arrows as you define the “shape” of your window movement.
WinMover Macros v1.kmmacros (52.3 KB)
(This file contains a macro group titled WinMover. The group and its macros are uploaded in a disabled state. You must enable the macros and the group before use.)
I have also included two "Throw" macros, which are triggered with
⌥⌘ + ← or
⌥⌘ + → to “throw” a window to the left or right screen while maintaining its current shape and position.
You may need to adjust the magenta colored actions based on the arrangement of your monitors. You can also combine them into one macro which acts as a toggle, like Peter’s example here, which I used to create my version:
I’ve also added a timer of sorts. Triggering the Window Thrower once will move the window to the other screen while maintaining position. Triggering it again within 0.5 seconds will make that window full screen, so rather than “throwing” with one hotkey, and full screening with another hotkey, I can simply tap the arrow key a second time like so:
⌥⌘ + →,