Monitor Sleep Button
Tray icon to turn off the monitor after a configurable countdown.
Author: SilverAmd
Adds a small tray icon for quickly turning off the monitor after a configurable countdown.
Preview


Features
- Tray icon for quick monitor power-off
- Left-click the tray icon to start the countdown
- Right-click the tray icon to open a context menu
- Configurable countdown duration
- Optional black screen mode for instant blackout without monitor standby
- Black screen mode can be closed with Esc or mouse click
- Optional configurable global hotkey
- Supports
Ctrl, Alt, Shift and Windows key modifiers
- Default hotkey:
Ctrl + M
- Hotkey can be enabled or disabled in the mod settings
- Tray menu can temporarily enable or disable the hotkey for the current session
- Countdown overlay before the monitor turns off
- Countdown can be cancelled from the tray menu
- Countdown can be cancelled with
Esc
- Automatically restores the tray icon after taskbar/explorer restart
- Mouse wheel over the tray icon changes the countdown duration
- Tray icon displays the currently selected countdown duration
- Tray menu shortcut to open Windhawk
Usage
- Left-click the tray icon to start the monitor sleep countdown.
- Right-click the tray icon to open the tray menu.
- Press the configured hotkey to start the countdown. The default is
Ctrl + M.
- Press
Esc while the countdown is running to cancel it.
- Move the mouse or press any key to wake the monitor again.
- Scroll the mouse wheel over the tray icon to temporarily change the countdown duration.
Tray Menu
The tray icon context menu provides quick access to:
- Turn monitor off
- Cancel countdown
- Enable or disable the configured hotkey for the current session
- Open Windhawk
The countdown can also be cancelled by pressing Esc while it is running.
The tray menu hotkey toggle is temporary.
To change the default hotkey behavior permanently, use the Windhawk mod settings.
Settings
Countdown
The countdown duration can be configured in the mod settings.
Available values:
- 1 second
- 2 seconds
- 3 seconds
- 5 seconds
- 10 seconds
- 15 seconds
- 30 seconds
Action mode
The mod supports two action modes:
- Turn monitor off: Sends the Windows monitor power-off command.
- Show black screen: Shows a fullscreen black overlay while keeping the monitor active. Black screen mode is ideal when you want an instant blackout and instant wake-up without waiting for the monitor to leave standby.
Hotkey
The global hotkey can be enabled or disabled in the mod settings.
Default:
M stands for monitor.
The Esc key can be used to cancel a running countdown.
Hotkey conflicts
The hotkey supports Ctrl, Alt, Shift and the Windows key as modifiers.
Examples:
Ctrl + M
Alt + M
Ctrl + Shift + S
Ctrl + Alt + S
Ctrl + Win + J
Some hotkey combinations may already be used by Windows or other applications, for example Win + S for Windows Search.
If a selected hotkey does not work, choose another key combination.
NirSoft HotKeysList can help you check which global hotkeys are already registered on your system:
https://www.nirsoft.net/utils/hot_keys_list.html
Credits
Based on and inspired by an old PowerShell script:
@echo off
powershell -windowstyle hidden (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2)
Additional development help and debugging guidance: ChatGPT by OpenAI.
Notes
This mod does not shut down, suspend, hibernate, or lock the computer.
It only sends the Windows monitor power-off command.
Useful as a quick replacement for desktop shortcuts, batch files, or context menu entries.
This is helpful when long-running downloads, renders, AI model installs, backups, or other background tasks are running and the monitor should be turned off without putting the PC to sleep.
Black screen mode does not save as much power as turning the monitor off, because the display remains active.