RepositorySwift
RX

rxhanson/Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas

30.4kstars
1.1kforks
19issues
3views

🖥️ Rectangle: Keyboard-driven window management for macOS

Snap, resize, and organize windows with shortcuts or drag-to-edge gestures.

Rectangle is a free, open-source window management app for macOS, built in Swift as a successor to Spectacle. It lets you move and resize windows using keyboard shortcuts or by dragging windows to screen edges and corners. With over 30,000 stars on GitHub, it's one of the most popular tools for tiling and organizing windows on macOS.

✨ Highlights

  • Keyboard shortcuts: Full set of customizable shortcuts for moving and resizing windows.
  • Snap areas: Drag windows to edges or corners to snap them into halves, quarters, or thirds.
  • Multi-display support: Move windows across displays with next/previous display actions.
  • Ignore apps: Disable shortcuts for specific apps that conflict with Rectangle.
  • URL schemes: Trigger actions or ignore/unignore apps via rectangle://execute-action and rectangle://execute-task.
  • Terminal preferences: Hidden settings configurable via defaults write commands.
  • Swift-based: Built natively in Swift with no external dependencies beyond MASShortcut.
  • Open source: Free to use, modify, and distribute under the MIT license.

💡 Why it matters

Rectangle improves on Spectacle with more window actions, better shortcut handling via MASShortcut, and visual snap areas. It fills a gap left by macOS, which lacks built-in tiling window management. Ideal for power users who want fast, keyboard-driven control over window layout without paying for proprietary tools.


#macOS #WindowManagement #Swift #OpenSource #Rectangle #TiniX