Skip to content

About

Center any window on Windows 11 by dropping it on a target next to Snap Layouts. Free and open source.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CenterSnap logo

CenterSnap

Center any window on Windows by dropping it on a target, right next to the native Snap Layouts.

Download the installer

A window is dragged onto the Center target, a blurred preview shows where it lands, and the window glides to the middle of the screen

Why

Windows 11 can snap a window to halves, thirds and grids, but it cannot simply put a window in the middle of the screen. Windows does not let apps add options to its Snap Layouts flyout, so CenterSnap adds its own target right below it.

How it works

  1. Drag any window. A Center target appears at the top of the screen.
  2. Drop the window on it. The window moves to the middle of the screen and keeps its size.

Install

  1. Download CenterSnap-Setup-x.y.z.exe from the latest release.
  2. Run it. It installs for your user account only and does not need admin rights.
  3. CenterSnap starts in the notification area (system tray).

Note

The installer is not code-signed yet, so Windows SmartScreen can show "Windows protected your PC". Select More info, then Run anyway.

To uninstall, open Settings > Apps > Installed apps and uninstall CenterSnap. This removes the app, its startup entry and its settings.

Settings

Right-click the CenterSnap icon in the notification area.

Setting Options
Start with Windows On or off
Theme Auto (follows Windows), Light, Dark
Size Small, Medium, Large

Requirements

  • Windows 11, or Windows 10 version 1903 (May 2019 Update) or later. Tested on Windows 11.
  • .NET Framework 4.8, which is built into these versions of Windows.

Windows 10 has no Snap Layouts flyout, so there the target simply appears at the top of the screen.

Limitations

  • CenterSnap cannot move windows of apps that run as administrator, because Windows blocks this for apps without admin rights.
  • The blurred preview and the dark tray menu use Windows features that are not officially documented. A future Windows update could change how they look.

Build from source

The build needs no SDK. It uses the C# compiler that comes with .NET Framework 4.8.

.\build.ps1             # builds bin\CenterSnap.exe
.\build.ps1 -Installer  # also builds dist\CenterSnap-Setup-x.y.z.exe

The installer build needs Inno Setup 6: winget install --id JRSoftware.InnoSetup -e. The version number comes from src\AssemblyInfo.cs.

License

MIT

About

Center any window on Windows 11 by dropping it on a target next to Snap Layouts. Free and open source.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages