It recreates the iPhone Duo-style closing effect from your MacBook's actual lid movement. Close the built-in display and it overlays a transformed, blurred, dimmed copy of the live screen. It works only on macOS 14+ MacBooks with a compatible built-in lid angle sensor and Screen Recording permission.
For MacBook owners with compatible lid sensors wanting an iPhone Duo-style effect
Mac Duo reads the built-in lid angle, captures the built-in display, and projects that image into a borderless click-through overlay. Its Metal renderer applies perspective, height-based blur, and dimming while the controller smooths sensor readings at display refresh rate.
Sources/MacDuo/LidController.swift; Sources/MacDuo/DepthOverlay.swift; Sources/MacDuo/DepthRenderer.swift; Sources/MacDuo/DepthShaders.swift; Sources/LidAngleKit/LidAngleSensor.swift
LidController
Coordinates lid sensing, effect triggering, capture, animation, and overlay lifecycle.
Sources/MacDuo/LidController.swift
DepthOverlay and renderer
Hosts the full-screen overlay and sends live frames to Metal rendering.
Sources/MacDuo/DepthOverlay.swift
DepthRenderer and shader
Renders the captured screen with projected geometry, Gaussian blur, and dimming.
Sources/MacDuo/DepthRenderer.swift
LidAngleKit
Reads compatible built-in lid angle sensors through IOKit HID.
Sources/LidAngleKit/LidAngleSensor.swift
Generated