Eight ways to shut.
Hover to scrub. Click to make it the one the lid uses.Slide to scrub. Tap a style to make it the one the lid uses.
Costs nothing at rest.
Shut only draws while the lid is moving. The rest of the time it sits in the menu bar and sleeps.
- CPU at rest 0.08% The mark on the bar is Shut with the lid still.
- CPU with the panel open <1% While you pick a style and it draws the previews.
- Wakeup every 10 seconds 1 One check on the lid. Between checks it does nothing.
- Memory at rest 21MB Nothing is captured until the lid moves, and it is dropped after.
Measured on a 14-inch M2 Pro, on battery. Check your own Mac with scripts/energy.sh from the repo.
It follows the lid. That's the whole trick.
- 01
It reads the real hinge angle
Apple silicon MacBooks have a lid angle sensor. Shut reads it through IOKit, in whole degrees, with no private APIs and no kernel extension. Older Macs get the effect on the lid's open and closed events instead.
- 02
One screenshot, drawn with Metal, never saved
The moment the lid starts down it takes one screenshot of the built-in display through ScreenCaptureKit and draws it with Metal in a click-through layer over everything. It never touches the disk and is gone once the lid is open. Screen Recording is the only permission it asks for, and Fade and Shutter work without it.
- 03
You choose where it starts
Everything from 45° above shut down to closed is the animation, so the lid is the timeline. Close slowly and it moves slowly. Open again and it runs backwards.
Open
Free. Open source. Coffee optional.
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Contributors
- 1
- Last commit
- yesterday
- Latest release
- v0.1.0
- Downloads
- 2
- License
- MIT
- Language
- Swift
git clone https://github.com/notthamer/shut cd shut && scripts/build.sh open build/Shut.app
No dependencies beyond Apple frameworks. Xcode or SwiftPM, your pick.
Made by one person, at night, with the lid open.