Midnight Sentinel is a simple app that creates pure black, full-screen overlays on all active displays. The intended purpose is to protect OLED screens from burn-in* should you need to step away while leaving your computer running.
Note
AI Disclosure: This project unapologetically uses AI-assisted development. AI is used as part of the coding process, but the resulting code is reviewed, evaluated, and tested by human eyes and hands before being published to GitHub. No, I did not simply ask a chatbot for an EXE and upload whatever fell out.
I understand that AI-assisted code is a nonstarter for some users, so I would rather disclose that plainly. Midnight Sentinel is also intentionally tiny in scope: it requires no administrative privileges and does not read, inspect, or otherwise access files on disk or data in memory. Its grand technological ambition is, quite literally, to make your screens black.
Ultimately, this is a personal pet project I built to protect my own OLED monitors when I need to leave my computer unattended and putting the system to sleep isn't an option.
Sure, but screensavers are a legacy feature of Windows, and while they still exist, they are subject to removal at Microsoft's discretion. Further, Midnight Sentinel is dismissed by double-clicking the mouse; this protects the process from being disrupted by curious, roaming cats.
Yep, that's an option. The power buttons on my monitors are annoying to operate, and that's why I made this app. Additionally, you typically can't just turn off a laptop monitor if you're lucky enough to have one with an OLED screen.
Tip
OLED screens don't actually burn-in. The individual pixels have a maximum luminance that diminishes with use; the brighter the pixel, the faster it diminishes. With prolonged illumination in certain areas, pixels will diminish unevenly causing a burn-in-like effect.
jkjk. This is just a pure-black image. But it's similar to the pure-black overlay that will be placed over your screen!
Download MidnightSentinel-Universal-{version}.exe from the latest release and run it. It's a single installer covering both x64 and ARM64 systems β it detects your system's architecture and installs the matching binaries automatically.
The installer will:
- Install Midnight Sentinel to
%LOCALAPPDATA%\SaltSpectre\Midnight Sentinel(no admin required) - Create Start Menu shortcuts
- Optionally add the installation directory to your user PATH (selected by default)
- Optionally start Midnight Sentinel automatically at logon (selected by default)
- Allow easy uninstallation via Windows Settings
Warning
If you have a version from 26.1.15+24 or earlier installed (built with the old MSI-based installer), uninstall it first via Settings > Apps before installing this version. The new installer uses different installer technology and can't upgrade or remove the old one automatically β it will warn you if it detects the old install still present, but can't do anything about it for you.
Prefer not to install anything? Download the portable ZIP for your architecture from the latest release:
MidnightSentinel-Portable-x64-{version}.zipMidnightSentinel-Portable-arm64-{version}.zip
Unzip it anywhere and run midsent.exe/midsentcli.exe directly from there. No install, no PATH or registry changes, no admin β just the two executables, which you can delete whenever you like.
Requirements:
- Rust (stable toolchain)
- Windows 10/11
# Clone the repository
git clone https://github.com/SaltSpectre/MidnightSentinel.git
cd MidnightSentinel
# Build both executables
cd src
cargo build --release --workspaceThe compiled executables will be in src/target/release/:
midsent.exeβ the system tray controllermidsentcli.exeβ the standalone overlay
Midnight Sentinel is split into two independent executables.
Run midsent.exe and it will live in your system tray. Left-double-click the tray icon to raise the overlays; double-click anywhere (any mouse button) on an overlay to dismiss it β you won't see your mouse because it's hidden. Right-click the tray icon for an About/Exit menu.
Calling midsent.exe --run-now skips the tray entirely and toggles the overlay directly (raises it if it's not active, dismisses it if it is), exiting once dismissed. This flag is kept for compatibility with earlier versions; new integrations should prefer midsentcli.exe instead.
midsentcli.exe is a fully independent executable that can be launched directly by a script, a keyboard/mouse macro tool (such as AutoHotKey), or any third-party controller β with or without midsent.exe running. It accepts one optional, mutually exclusive flag:
- No flag, or
--toggle: raise the overlay if it's not active, or dismiss it (same double-click-anywhere gesture) if it already is. Prints nothing beyond error messages. --start: make sure the overlay is active. Prints the PID of the process that owns it β either this one, or an already-running one β to stdout, so a script can monitor it.--stop: make sure the overlay is not active, dismissing it if needed. Prints human-readable feedback and exits with0if an overlay was found and dismissed, or non-zero if none was active.
midsentcli.exe
midsentcli.exe --start
midsentcli.exe --stopOnly one overlay display can be active at a time, regardless of which of the three ways above (tray, --run-now, or midsentcli.exe) was used to raise or dismiss it.
That's it! It's a very simple app for a very specific purpose.
I am always open to feedback and ideas. Feel free to create an issue, or, if you're feeling a little frisky, make a pull request! (I don't bite.)
Dialogs in midsent.exe (About, warning) are built with Slint, used under its Royalty-free license.
Midnight Sentinel is proudly open source under the MIT License.

