Skip to content

About

Mac menu bar utility (in development): one hotkey tiles every window of the frontmost app into an even grid.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

🪟 WindowTiler

WindowTiler icon

One hotkey. Perfect grid. Every time.

Swift SwiftUI macOS License

A native macOS menu bar app that automatically tiles all visible windows of the previously-focused app into an even grid on screen.

Features · Getting Started · Tech Stack · License


Features

  • One-Hotkey Tiling — Press Cmd+Opt+T (customizable) to instantly tile all visible windows of the last-focused app into a perfect grid.
  • Smart Grid Calculation — Automatically computes optimal rows and columns via square root, or set custom grid dimensions.
  • Spatial-Aware Placement — Greedy nearest-neighbor algorithm ensures each window lands closest to its current position for minimal visual disruption.
  • Configurable Gap/Spacing — Fine-tune the pixel gap between tiled windows to match your aesthetic.
  • Launch at Login — Native launch-at-login support via SMAppService — no helper apps or hacks.
  • Menu Bar Only — Lives in the menu bar with no Dock icon, staying out of your way until you need it.
  • Accessibility API — Uses AXUIElement for reliable window manipulation with a clean permission prompt on first launch.
  • Smart Filtering — Automatically filters out dialogs, sheets, and minimized windows so only real windows get tiled.

Getting Started

  1. Clone the repo
    git clone https://github.com/markksantos/WindowTiler.git
  2. Open in Xcode
    cd WindowTiler
    open WindowTiler.xcodeproj
  3. Build & Run — Hit Cmd+R in Xcode. The app appears in your menu bar.
  4. Grant Accessibility — On first launch, macOS will prompt for Accessibility permissions. Grant access in System Settings → Privacy & Security → Accessibility.
  5. Tile — Focus any app with multiple windows, then press Cmd+Opt+T.

Tech Stack

Component Technology
Language Swift 5.9+
UI Framework SwiftUI
Window Management Accessibility API (AXUIElement)
Login Item SMAppService
Platform macOS 14.0+
Build System Xcode

License

MIT License © 2025 Mark Santos

About

Mac menu bar utility (in development): one hotkey tiles every window of the frontmost app into an even grid.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages