# Repel: Window snapping for macOS.

> Repel is a native, ~1 MB window manager for macOS written in Rust. Snap windows into halves, thirds, quarters and sixths by keyboard or by dragging. Lightweight, with no telemetry.

Repel moves and resizes windows into halves, thirds, quarters, fourths and sixths: from the keyboard, from the menu bar, or by dragging a window to a screen edge. Fast, precise and about 1 MB small.

- Platform: macOS
- Requires: macOS 13 Ventura or later
- Availability: Coming soon to the Mac App Store
- Made by: deshitify (https://deshitify.app/)

## The essentials

- **Halves, thirds, quarters.** Plus two-thirds, maximize, center and restore. Every action from the keyboard or the menu bar.
- **Drag to snap.** Left or right edge for halves, corners for quarters, top edge to maximize, bottom edge for thirds. Slide along the bottom edge to span two thirds. Live preview included.
- **Shortcuts that stick.** Control-Option plus an arrow or a letter (`⌃⌥←`, `⌃⌥→`, `⌃⌥U`, `⌃⌥↩` …). Learn them once, use them everywhere.
- **Multiple displays.** Move a window to the next or previous display in one keystroke.

## The details

- **Size cycling.** Press a half or quarter shortcut again for ⅔, then ⅓. No extra shortcuts to learn.
- **Gaps.** Space between windows and the screen edges, 0 to 40 points.
- **Fourths and sixths.** Plus center half, center two-thirds, maximize height or width, make larger or smaller and move to an edge without resizing.
- **Peel off.** Drag a snapped window away and it returns to its original size.
- **Layouts survive display moves.** A window tiled left stays tiled left on the next screen.
- **Orientation aware.** On portrait displays, thirds and fourths stack vertically.
- **Your preview, your style.** Glass, Tinted, Outline or Solid. Any color or the system accent, opacity, border, radius, blur and animation speed, with a live preview in Settings.
- **Ignored apps.** Exclude apps in Settings or in one click from the menu bar.
- **Layout-aware labels.** Shortcut labels follow your keyboard layout: QWERTY, QWERTZ, AZERTY.

## Default shortcuts

| Action | Shortcut |
| --- | --- |
| Left half / right half | ⌃⌥← / ⌃⌥→ |
| Top half / bottom half | ⌃⌥↑ / ⌃⌥↓ |
| Top left / top right quarter | ⌃⌥U / ⌃⌥I |
| Bottom left / bottom right quarter | ⌃⌥J / ⌃⌥K |
| First / center / last third | ⌃⌥D / ⌃⌥F / ⌃⌥G |
| First / last two-thirds | ⌃⌥E / ⌃⌥T |
| Maximize | ⌃⌥↩ |
| Center | ⌃⌥C |
| Restore | ⌃⌥⌫ |
| Make larger / smaller | ⌃⌥= / ⌃⌥- |
| Next / previous display | ⌃⌥⌘→ / ⌃⌥⌘← |

## Permissions

- **Accessibility**: macOS only lets apps move and resize other apps’ windows through the Accessibility API. Repel asks once, on first launch, and uses it for nothing else.

## Privacy

Repel has no telemetry and no network access. It reads window positions through the macOS Accessibility API and keeps your settings on your Mac. The permission survives updates.

## Under the hood

Written in Rust on top of AppKit through the `objc2` bindings. Accessibility, Quartz event taps, Carbon hot keys and ServiceManagement are called through hand-written FFI. Global shortcuts use Carbon `RegisterEventHotKey`, which needs no extra permission.

## FAQ

### What does Repel do?

Repel arranges windows on your Mac: halves, thirds, quarters, fourths and sixths, by keyboard shortcut or by dragging a window to a screen edge. It adds gaps, size cycling and peel-off restore, in a ~1 MB native binary with no telemetry.

### How do I snap a window to the left half of the screen on a Mac?

With Repel, press `⌃⌥←` (Control-Option-Left Arrow) or drag the window against the left screen edge. Press the shortcut again to cycle to two-thirds and one-third.

### Why does Repel need Accessibility access?

macOS only lets apps move and resize other apps’ windows through the Accessibility API. Repel uses it for exactly that and nothing else. It has no network access, so nothing it sees can leave your Mac.

### Does Repel work with multiple displays?

Yes. Move a window to the next or previous display with `⌃⌥⌘→` / `⌃⌥⌘←`; a window tiled left stays tiled left. Shared edges between displays stay free, so windows can still cross them.

### Can I change the shortcuts?

Yes. Every action has a recordable shortcut in Settings, and the labels follow your keyboard layout.

### Which macOS versions does Repel support?

macOS 13 Ventura or later.
