TopGit tracks rxhanson/Rectangle on GitHub. The project has 29.7k stars. Move and resize windows on macOS with keyboard shortcuts and snap areas
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Rectangle is a window management app based on Spectacle, written in Swift.
System Requirements
Rectangle supports macOS v10.15+. The last version that is supported for macOS 10.13 and 10.14 is https://github.com/rxhanson/Rectangle/releases/tag/v0.73.
Installation
You can download the latest dmg from https://rectangleapp.com or the Releases page.
Or install with brew cask:
brew install --cask rectangle
How to use it
The keyboard shortcuts are self explanatory, but the snap areas can use some explanation if you've never used them on Windows or other window management apps.
Drag a window to the edge of the screen. When the mouse cursor reaches the edge of the screen, you'll see a footprint that Rectangle will attempt to resize and move the window to when the click is released.
Snap Area
Resulting Action
Left or right edge
Left or right half
Top
Maximize
Corners
Quarter in respective corner
Left or right edge, just above or below a corner
Top or bottom half
Bottom left, center, or right third
Respective third
Bottom left or right third, then drag to bottom center
First or last two thirds, respectively
Ignore an app
Ignoring an app means that when the app is frontmost, keyboard shortcuts are un-registered from macOS. When the app is no longer frontmost, keyboard shortcuts are re-registered with macOS. This is useful for apps that have the same shortcuts like Rectangle and you do not want to change them.
Focus the app that you want to ignore (make a window from that app frontmost).
Open the Rectangle menu and select "Ignore app"
To un-ignore an app that you have selected to ignore, simply bring that app frontmost again, open the Rectangle menu, and deselect "Ignore".
Execute an action by URL
Open the URL rectangle://execute-action?name=[name]. Do not activate Rectangle if possible.
Rectangle uses MASShortcut for keyboard shortcut recording. Spectacle used its own shortcut recorder.
Rectangle has additional window actions: move windows to each edge without resizing, maximize only the height of a window, almost maximizing a window.
Next/prev screen thirds is replaced with explicitly first third, first two thirds, center third, last two thirds, and last third. Screen orientation is taken into account, as in first third will be left third on landscape and top third on portrait.
You can however emulate Spectacle's third cycling using first and last third actions. So, if you repeatedly execute first third, it will cycle through thirds (first, center, last) and vice-versa with the last third.
There's an option to have windows traverse across displays on subsequent left or right executions.
Windows will snap when dragged to edges/corners of the screen. This can be disabled.
Common Known Issues
Rectangle doesn't have the ability to move to other desktops/spaces
Apple never released a public API for doing this. Rectangle Pro has next/prev Space actions, but there are no plans to add those into Rectangle at this time.
Window resizing is off slightly for iTerm2
By default iTerm2 will only resize in increments of character widths. There might be a setting inside iTerm2 to disable this, but you can change it with the following command.
Rectangle appears to cause Notification Center to freeze
This appears to affect only a small amount of users. To prevent this from happening, uncheck the box for "Snap windows by dragging".
See issue 317.
Troubleshooting
If windows aren't resizing or moving as you expect, here's some initial steps to get to the bottom of it. Most issues of this type have been caused by other apps.
Quick fixes (try these first):
Lock and unlock your Mac – This simple step resolves many issues, especially after system updates.
Make sure macOS is up to date.
Restart your Mac (this often fixes things right after a macOS update).
Diagnose the issue:
Enable debug logging (see instructions in the following section) – This helps identify whether Rectangle is working correctly.
The logs are straightforward. If your calculated rect and your resulting rect are identical, chances are that there is another application causing issues.
Check for conflicts:
Make sure there are no other window manager applications running.
Make sure that the app whose windows are not behaving properly does not have any conflicting keyboard shortcuts.
Try using the menu items to execute a window action or changing the keyboard shortcut to something different so we can tell if it's a keyboard shortcut issue or not.
Advanced troubleshooting:
If you suspect there may be another application causing issues, try creating and logging in as a new macOS user.
Save your logs to attach to an issue if you need to create one.
Try resetting the macOS accessibility permissions for Rectangle:
tccutil reset All com.knollsoft.Rectangle
Or, this can be done with the following steps instead of the tccutil terminal command.
Close Rectangle if it's running
In System Settings -> Privacy & Security -> Accessibility, first disable Rectangle, then remove it with the minus button. (it's important to do both of those steps in that order)
Restart your mac.
Launch Rectangle and enable settings for it as prompted.
View Debug Logging
Hold down the alt (option) key with the Rectangle menu open.
Select the "View Logging..." menu item, which is in place of the "About" menu item.
Logging will appear in the window as you perform Rectangle commands.
Import & export JSON config
There are buttons for importing and exporting the config as a JSON file in the settings tab of the preferences window.
Upon launch, Rectangle will load a config file at ~/Library/Application Support/Rectangle/RectangleConfig.json if it is present and will rename that file with a time/date stamp so that it isn't read on subsequent launches.
Preferences Storage
The configuration for Rectangle is stored using NSUserDefaults, meaning it is stored in the following location:
~/Library/Preferences/com.knollsoft.Rectangle.plist
Note that shortcuts in v0.41+ are stored in a different format and will not load in prior versions.
That file can be backed up or transferred to other machines.
If you are using Rectangle v0.44+, you can also use the import/export button in the Preferences pane to share to your preferences and keyboard shortcuts across machines using a JSON file.
[!NOTE]
If you are having issues with configuration options persisting after an application restart and you've installed using Homebrew, you will need to uninstall and reinstall with the --zap flag.
Rectangle can be uninstalled by quitting the app and moving it to the trash. You can remove the Rectangle defaults from your machine with the following terminal command:
defaults delete com.knollsoft.Rectangle
[!TIP]
If you are uninstalling after installing with Homebrew, you should include the --zap flag to ensure it removes the plist entries too.
brew uninstall --zap rectangle
Contributing
Logic from Rectangle is used in the Multitouch app. The Rectangle Pro app is entirely built on top of Rectangle. If you contribute significant code or localizations that get merged into Rectangle, send me an email for a free license of Multitouch or Rectangle Pro. Contributors to Sparkle, MASShortcut, or Spectacle can also receive free Multitouch or Rectangle Pro licenses.
Contributing additional sizes and positions
Rectangle's UI is intentionally simple. If you want to add a size and position that's not in the Shortcuts tab, then you can now add them into the "Extra Shortcuts" section accessed via the ellipsis button at the bottom of the General tab.
Localization
If you would like to contribute to localization, all of the translations are held in the Main.strings.
Pull requests for new localizations or improvements on existing localizations are welcome.
Running the app in Xcode (for developers)
Rectangle uses Swift Package Manager to install Sparkle and MASShortcut.
The original repository for MASShortcut was archived, so Rectangle uses my fork. If you want to make any changes that involve MASShortcut, please make a pull request on my fork.
Due to the addition of the Liquid Glass icon with a fallback for older versions of macOS, there will be a build failure on macOS versions < 26. You can delete the "Asset Catalog Other Flags" to build locally on versions < 26 (but don't check that change in if you create a pull request).
Credits
As mentioned above, Rectangle uses a forked version of MASShortcut, which still works great, and it uses Sparkle for updates.
The Big Sur variant of the Rectangle app icon was created by Giovanni Maria Cusaro (@gmcusaro). The Liquid Glass variant of the app icon was created by Alexander Käßner (@alexkaessner).
And of course, there's been a lot of community contributions over the years :)
The most recent commit recorded on rxhanson/Rectangle was today, based on the GitHub push timestamp. The repository has 975 forks — one of the better signals of community interest.
How many stars does rxhanson/Rectangle have?
rxhanson/Rectangle has 29.7k GitHub stars — refresh the page for the live number, or check github.com/rxhanson/Rectangle. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is rxhanson/Rectangle open source?
TopGit's metadata for rxhanson/Rectangle does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is rxhanson/Rectangle?
rxhanson/Rectangle (rxhanson/Rectangle) is a Swift project on GitHub. From the project's own README: Move and resize windows on macOS with keyboard shortcuts and snap areas
What language is rxhanson/Rectangle written in?
rxhanson/Rectangle is written primarily in Swift. GitHub's language field is based on the largest share of bytes in the default branch.
Where do I read more about rxhanson/Rectangle?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/rxhanson/Rectangle is the definitive source.
Read full README in the tab above.
Is Rectangle worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of Rectangle.