Skip to content
murayyPublic

About

Fast Rectangle-style keyboard tiling and Alt-based mouse window control for Windows.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PanePilot

CI Release AutoHotkey v2 License: PolyForm Noncommercial

Rectangle-style keyboard shortcuts and AltSnap-style mouse controls for Windows, delivered as a single AutoHotkey v2 utility.

PanePilot stays out of the way until you need it: move or resize a window from any point with the mouse, snap it with familiar keyboard shortcuts, send it to another monitor, then restore its previous geometry. It runs locally, has no telemetry and makes no network requests.

Deutsche Dokumentation

Highlights

  • Rectangle's recommended keyboard layout, translated to Windows.
  • Left Alt + drag anywhere to move or resize a window.
  • Edge and corner snapping with a click-through preview.
  • Halves, quarters, thirds, two-thirds and portrait-aware layouts.
  • Multi-monitor movement with mixed-DPI coordinate handling.
  • Restore history and repeated half-width cycling (1/2 → 2/3 → 1/3).
  • Tray pause/resume and optional per-user startup.
  • One portable executable; no service, driver or injected DLL.
  • AutoHotkey v2 source with an executable smoke test.

Install

One command (recommended)

Open PowerShell and run:

irm https://muri.io/panepilot | iex

This installs PanePilot for the current user, enables startup with Windows and launches it immediately. The bootstrap downloads the latest GitHub release and verifies its SHA-256 checksum before installing it. No administrator rights are required.

To install without startup:

& ([scriptblock]::Create((irm https://muri.io/panepilot))) -NoStartup

Windows installer

Download PanePilot-Setup-x64.exe from the latest release. The per-user installer needs no administrator rights and offers an optional Start PanePilot with Windows task.

Portable executable

Download PanePilot.exe, place it anywhere and run it. Use the tray menu to enable or disable startup later.

Run from source

Install AutoHotkey v2.0.27 or newer, then run:

& "$env:LOCALAPPDATA\Programs\AutoHotkey\v2\AutoHotkey64.exe" .\PanePilot.ahk

Chocolatey package

Each GitHub release contains a self-contained .nupkg. After downloading it:

choco install panepilot --source . --yes

Pass --params "'/NoStartup'" to skip the startup shortcut. The package is release-ready, but is not automatically submitted to Chocolatey's public feed.

Uninstall

  • One-command or ZIP install: run Uninstall PanePilot from the Start menu, or Uninstall.ps1 from the install folder.
  • Windows installer: uninstall via Settings > Apps.
  • Portable: disable startup in the tray menu, then delete PanePilot.exe.
  • Chocolatey: choco uninstall panepilot.

Keyboard shortcuts

Rectangle's Control + Option becomes Left Ctrl + Left Alt. Restricting the modifiers to their left variants prevents Windows from treating AltGr input as a PanePilot shortcut on international keyboard layouts.

Shortcut Action
Ctrl + Alt + ← / → Left/right half; repeat to cycle 1/2, 2/3 and 1/3
Ctrl + Alt + ↑ / ↓ Top/bottom half
Ctrl + Alt + U / I Top-left/top-right quarter
Ctrl + Alt + J / K Bottom-left/bottom-right quarter
Ctrl + Alt + Enter Maximize
Ctrl + Alt + Shift + ↑ Maximize height
Ctrl + Alt + C Center without resizing
Ctrl + Alt + = / - Larger/smaller
Ctrl + Alt + D / E First third/first two-thirds
Ctrl + Alt + F / R Center third/center two-thirds
Ctrl + Alt + T / G Last two-thirds/last third
Ctrl + Alt + Win + ← / → Previous/next display
Ctrl + Alt + Backspace Restore previous geometry
Ctrl + Alt + Win + Pause Pause/resume PanePilot

Windows reserves Ctrl + Alt + Delete, so Rectangle's restore binding uses Backspace here. Rectangle's Command modifier maps to the Windows key.

Mouse controls

Shortcut Action
Left Alt + left-drag Move the window under the pointer
Left Alt + right-drag Resize from the selected quadrant
Double Left Alt + left-click Minimize
Double Left Alt + right-click Maximize/restore
Double Left Alt + middle-click Close

While moving, touch an edge to preview and apply a snap target. Corners create quarters, left/right edges create halves, the top maximizes and the bottom edge selects thirds.

Configuration

Runtime defaults live in the WMConfig class near the top of PanePilot.ahk. It controls gaps, snap margins, preview opacity, minimum sizes, double-Alt timing and ignored process names.

Build and test

Run the source smoke test:

& "$env:LOCALAPPDATA\Programs\AutoHotkey\v2\AutoHotkey64.exe" `
  /ErrorStdOut .\tests\PanePilotSelfTest.ahk

Build all release artifacts with the pinned toolchain:

.\scripts\Build-Release.ps1 -Version 1.0.0

The GitHub release workflow produces the portable EXE, installer, ZIP, SHA-256 checksums and Chocolatey package from a v* tag.

Limitations

  • Windows UIPI prevents a normally started PanePilot from controlling elevated windows. Run it elevated only when you need that.
  • Windows without a resizable frame (WS_THICKFRAME) are rejected for free resizing; snap actions can still be limited by an application's own minimum size.
  • Exclude games that use raw input, exclusive fullscreen or anti-cheat via IgnoredProcesses.
  • Restore positions exist only for the running session; they are deliberately not written to disk.

Security and privacy

PanePilot uses normal user-level Win32 window APIs. It does not inject code, install a driver, collect usage data or connect to the internet.

See SECURITY.md for vulnerability reporting.

License

PanePilot is source-available, not OSI Open Source. It is licensed under the PolyForm Noncommercial License 1.0.0: personal, educational, research, government and nonprofit use is permitted; commercial use is not.

Acknowledgements

The keyboard vocabulary is inspired by Rectangle, and the mouse interaction is in the tradition of AltDrag/AltSnap. PanePilot is an independent project and is not affiliated with either project.

About

Fast Rectangle-style keyboard tiling and Alt-based mouse window control for Windows.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages