{"id":189,"date":"2026-11-24T14:24:15","date_gmt":"2026-11-24T05:24:15","guid":{"rendered":"https:\/\/mrben.net\/?p=189"},"modified":"2026-11-24T14:24:15","modified_gmt":"2026-11-24T05:24:15","slug":"i-built-snapstrip-windows-style-window-snapping-for-macos","status":"publish","type":"post","link":"https:\/\/mrben.net\/index.php\/2026\/11\/24\/i-built-snapstrip-windows-style-window-snapping-for-macos\/","title":{"rendered":"I Built SnapStrip \u2014 Windows-Style Window Snapping for macOS"},"content":{"rendered":"<p>I spend my days on a Mac, but there is one Windows 11 feature I never stopped missing: drag a window to the top of the screen, a bar of layouts appears, drop the window on one and it snaps into place. macOS has basic tiling now, but not that bar. So I built it.<\/p>\n<p>SnapStrip is a tiny menu-bar utility written in a single Swift file. Drag any window and a slim hint bar appears under the menu bar. Keep dragging into the top third of the screen and it expands into eight layouts \u2014 left half, right half, four corners, a centered window at a quarter of the screen, and maximize \u2014 placed safely below the notch. Drop the window on a layout, and it moves and resizes to fit.<\/p>\n<p>A few details I cared about:<\/p>\n<p><strong>Menu bar only.<\/strong> No Dock icon, no settings window. Launch at login is built in, via a LaunchAgent you can delete at any time.<\/p>\n<p><strong>It wins the fight after the drop.<\/strong> Some apps finish their own drag by putting the window back where you let go, so a single write loses. SnapStrip re-asserts the target frame for about a second after the drop, until the window stays.<\/p>\n<p><strong>Self-drawn windows included.<\/strong> Apps like WeChat and LocalSend (Flutter) often don&#8217;t tell the accessibility system which window a clicked element belongs to. SnapStrip falls back to walking up the accessibility tree, then to the app&#8217;s focused window \u2014 and both apps snap on the first try now.<\/p>\n<p>It needs the Accessibility permission (System Settings \u2192 Privacy &amp; Security \u2192 Accessibility). One gotcha for anyone building it from source: the grant follows your code signature, so the repo ships a small script that creates a fixed self-signed identity \u2014 build with it once, and the permission survives every rebuild.<\/p>\n<p>SnapStrip is free and open source under the MIT license.<\/p>\n<p>GitHub: <a href=\"https:\/\/github.com\/i-love-osaka\/SnapStrip\">https:\/\/github.com\/i-love-osaka\/SnapStrip<\/a><\/p>\n<p>Download v0.1.0: <a href=\"https:\/\/github.com\/i-love-osaka\/SnapStrip\/releases\/tag\/v0.1.0\">https:\/\/github.com\/i-love-osaka\/SnapStrip\/releases\/tag\/v0.1.0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spend my days on a Mac, but there is one Windows 11 f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":190,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-189","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":1,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/189\/revisions\/191"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/media\/190"}],"wp:attachment":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}