Power Action Countdown
Shows a configurable cancellable countdown before shutdown, restart, sleep, or hibernation.
Author: Nerdworld
Shows an individually configurable countdown before Windows shuts down,
restarts, enters sleep, or enters hibernation. A value of 0 disables the
countdown for the corresponding action and executes it immediately. Values
above 30 seconds are limited to 30 seconds.
The countdown is cancelled by:
- any keyboard key
- a mouse button
- the mouse wheel
- a touchscreen press on the overlay
Moving the mouse alone does not cancel the countdown. The cancelling input is
consumed and isn't forwarded to the application underneath the overlay.
The countdown is displayed on the primary monitor. Keyboard and mouse-button
input on other monitors still cancels it.
Screenshot

Scope and limitations
The mod targets power actions initiated through the Windows shell. It is loaded
into:
explorer.exe for classic shell power paths
RuntimeBroker.exe because current Windows 11 builds can delegate Start-menu
power actions to a runtime broker
Power actions initiated by shutdown.exe, Task Manager, the Ctrl+Alt+Delete
screen, the sign-in/lock screen, or arbitrary third-party applications aren't
covered unless they ultimately call a hooked API from one of these processes.
Troubleshooting
Enable mod logging in Windhawk's Advanced tab. When an action is detected,
the log states which Windows API was intercepted. The exact API used by Windows
can differ between builds.