Skip to content

Instantly share code, notes, and snippets.

@PhilipMathieu
PhilipMathieu / rectangle.ahk
Created January 2, 2026 21:27
AutoHotKey script implementing basic window management hotkeys akin to macOS Rectangle
; Rectangle-style Window Manager for Windows
; AutoHotkey v2 Script
;
; Hotkeys (matching Rectangle defaults):
; Ctrl+Option+Arrow -> Move window to half of screen
; Ctrl+Option+Enter -> Maximize/Restore window
; Ctrl+Option+Cmd+Arrow -> Move window to next/prev monitor
;
; Windows equivalents used:
; Ctrl+Alt+Arrow -> Half screen (left/right/top/bottom)