macOS menubar window-snapper.
My personal machines is a Mac, I've used Mac OS more or less my whole life. I started working full time though in fall of 2024, and my job gave me a Windows machine. It has this really nice built in shortcut where if you press the windows button and an arrow key, it will snap the current window to that side of the screen. I found myself using this shortcut a lot, and really liking it, and wishing that Mac OS had something similar. So I built it one for Mac. As I think of more lightweight MacOS improvements, I'll add them to this project.
Apricot lives in the menu bar with no dock icon. Global hotkeys register through Carbon, windows move via the Accessibility API, and preferences render in SwiftUI.
Snaps animate with a smoothstep tween over six frames. Multi-monitor aware — snaps happen on the screen under the mouse. A small state machine tracks the last horizontal and vertical keypress so the corner chord works.
No third-party SDKs, no telemetry, no network calls.