
Unplug
Rescues the windows your external display took with it
What it does
A macOS menu bar app for MacBooks that live on an external display. When you pull the cable, it finds every window you can no longer reach and brings it back onto the MacBook, checking three times over ten seconds so late windows don't slip through. Prepare to Unplug (⌃⌥⌘U) saves your layout, gathers every window onto the MacBook and switches to mirroring. Mirror Displays (⌃⌥⌘M) turns mirroring on or off and puts displays and windows back where they were. It also rescues windows hidden behind full-screen apps, saves window layouts per display and remembers display arrangements. Unit tests cover the geometry and reliability logic.
How to build and run it
Run make run to build the app, install it and launch it, then grant Accessibility access when macOS asks. make on its own builds the app bundle into dist/.
What you'll need
A Mac on macOS 14 or later with Xcode (Swift 5.9 or later). An Apple Developer account if you want to sign and notarise it for other people.
Not included
Code signing and notarisation, an App Store listing, users and a website.
Cause of death
Moved on to other projects.