notthamer/shut

Swift

1

9 commits

updated Sep 22, 2026

See the code

See what people are saying

SourceMessageScoreDate

Shut, a free and open-source Mac app that animates your screen as you close the lid (8 styles) (r/SideProject)

**What it is:** Shut is a free, open-source macOS menu bar app. As you close your MacBook lid, it plays one of 8 animations: a Duo-style fold, a sinkhole that drains into the notch, frost, a book crease, and more. It reads the real hinge angle, so the animation follows your hand. Close slowly and…

1

Sep 24, 2026

README

Shut.

Ways to close your Mac.

Shut plays a little animation on your screen as you close the lid, and it follows the hinge. Close slowly and it crawls. Open halfway and it reverses. Unlock and the desktop pours back in.

Download for Mac · macOS 14 or later · Apple silicon MacBooks · Free, MIT

Styles

Fold (iPhone Duo)The desktop stands still while the machine folds away under it. The default.
SinkholeSwirls into the notch, then pours back out when you unlock.
FrostFrosts over from the top edge and fades to black.
CreaseA book fold across the middle.
RecedeDrops straight back into the dark.
SlideSlides down behind the hinge.
ShutterBars close in from the top and bottom.
FadeA plain dim to black.

Pick one in the panel, set the speed, and adjust its dials if you like. Every dial for every style is right there, with presets you can name, copy, paste, import and export.

How it works

  • Click the menu bar icon for the panel, or open Shut from the Dock for the same panel as a window.
  • Styles that redraw your desktop ask for Screen Recording once. Shut takes a single still as the lid starts to move, keeps it in memory, and throws it away when the animation ends. Nothing is saved, nothing is sent anywhere.
  • At rest it does nothing: the hinge is read once a second and no frame is drawn until the lid moves. On a MacBook without a lid angle sensor, the style plays when the lid closes instead of following it.
  • The effect only ever plays on the MacBook's own screen, never on a monitor.

Build it yourself

git clone https://github.com/notthamer/shut
cd shut
scripts/build.sh
open build/Shut.app

Or open Shut.xcodeproj in Xcode and press Run. A build from source works the same as the download, minus automatic updates.

More

Check your lid sensor with swift run lidangle-cli, and --report formats the result for an issue.

Licenses

MIT. Third-party licenses are in THIRD_PARTY_LICENSES.md.

Contributors

notthamer

9 commits

notthamer/shut

Swift

1

9 commits

updated Sep 22, 2026

See the code

See what people are saying

SourceMessageScoreDate

Shut, a free and open-source Mac app that animates your screen as you close the lid (8 styles) (r/SideProject)

**What it is:** Shut is a free, open-source macOS menu bar app. As you close your MacBook lid, it plays one of 8 animations: a Duo-style fold, a sinkhole that drains into the notch, frost, a book crease, and more. It reads the real hinge angle, so the animation follows your hand. Close slowly and…

1

Sep 24, 2026

README

Shut.

Ways to close your Mac.

Shut plays a little animation on your screen as you close the lid, and it follows the hinge. Close slowly and it crawls. Open halfway and it reverses. Unlock and the desktop pours back in.

Download for Mac · macOS 14 or later · Apple silicon MacBooks · Free, MIT

Styles

Fold (iPhone Duo)The desktop stands still while the machine folds away under it. The default.
SinkholeSwirls into the notch, then pours back out when you unlock.
FrostFrosts over from the top edge and fades to black.
CreaseA book fold across the middle.
RecedeDrops straight back into the dark.
SlideSlides down behind the hinge.
ShutterBars close in from the top and bottom.
FadeA plain dim to black.

Pick one in the panel, set the speed, and adjust its dials if you like. Every dial for every style is right there, with presets you can name, copy, paste, import and export.

How it works

  • Click the menu bar icon for the panel, or open Shut from the Dock for the same panel as a window.
  • Styles that redraw your desktop ask for Screen Recording once. Shut takes a single still as the lid starts to move, keeps it in memory, and throws it away when the animation ends. Nothing is saved, nothing is sent anywhere.
  • At rest it does nothing: the hinge is read once a second and no frame is drawn until the lid moves. On a MacBook without a lid angle sensor, the style plays when the lid closes instead of following it.
  • The effect only ever plays on the MacBook's own screen, never on a monitor.

Build it yourself

git clone https://github.com/notthamer/shut
cd shut
scripts/build.sh
open build/Shut.app

Or open Shut.xcodeproj in Xcode and press Run. A build from source works the same as the download, minus automatic updates.

More

Check your lid sensor with swift run lidangle-cli, and --report formats the result for an issue.

Licenses

MIT. Third-party licenses are in THIRD_PARTY_LICENSES.md.

Contributors

notthamer

9 commits

Languages

Swift

93.0%

Metal

4.4%

Shell

2.5%