WinDuo
Lean the screen back as the laptop lid closes, using the webcam instead of a hinge sensor
Author: Basel Ashraf
As the laptop lid closes, the picture on screen leans back, blurs and dims, as
though it were a sheet hinged at the bottom of the display that stays put in the
room while the glass turns away from it. The top of the sheet tips forward a
little, so content near the top edge stays legible for longer.
There is no hinge sensor on most laptops, so the lid angle comes from the
webcam: closing the lid pitches the camera down, the scene slides up the frame,
and the size of that slide is the angle.
This is the Windhawk edition of WinDuo.
Its geometry, shader and state machine are ported from
Mac Duo (Apache 2.0, Copyright 2026
Makito).
It runs as its own process (a Windhawk tool mod), injects into nothing, and
hooks nothing.

What to expect
- The camera stays on while you are using the laptop, so its privacy light
stays lit. It has to be watching before the lid starts to move. It turns off
while the lid is shut, the display is off, the session is locked, or the
built-in screen is not in use. Frames are measured in memory and never stored
or sent anywhere. Disable the mod to turn the camera off entirely.
- Battery. A streaming webcam costs roughly as much as a video call's
camera does, which on most laptops is well under a watt but is not nothing.
- Other camera apps. On many laptops, especially on Windows 10, only one
app can use the camera at a time. While the mod is streaming, a video call or
the Camera app started afterwards may report that the camera is in use:
disable the mod for the call. If the other app has the camera first, the mod
backs off and tries again later (every few seconds at first, then up to once
a minute) until the camera is free.
- Built-in screen only. The effect runs on the laptop's own panel, even
when an external monitor is the main display, and does nothing while the
laptop is docked with the lid shut.
- Camera permission. The mod reads the camera as an ordinary desktop app
(it runs inside
windhawk.exe), so Windows shows no prompt. It needs
Settings > Privacy & security > Camera > Let desktop apps access your
camera turned on, and windhawk.exe then appears in that list while the
mod runs. If the setting is off, the mod log says so.
- It needs Windows 10 version 2004 or later, so the overlay can keep itself out
of its own screen capture.
- Accuracy depends on the room: a lit room with some detail in front of the
camera tracks well; a dark room or a blank wall does not, and the effect then
declines to run rather than guessing.
Calibration
The default assumes a typical laptop webcam (about a 75 degree field of view).
If the effect starts too early or too late, adjust Degrees per pixel: raise
it if a small close already triggers the effect, lower it if a large one does
not. The desktop app has a calibration wizard that measures this exactly.
Trying it without closing the lid
Turn on Play a preview and save. The effect plays one scripted close on
whatever is on screen, then the switch can be turned back off.