This script detects whether your monitor is on or off and applies an OpenRGB profile accordingly.
OpenRGB-Monitor-Status is a small automation setup that toggles your RGB lighting based on the monitor's power state. It relies on Windows PowerShell (used for the logic), VBScript (used only to hide the PowerShell window), and OpenRGB command-line support.
Since OpenRGB's command-line interface does not support loading effect profiles, only standard profiles can be applied. This limitation means you must embed any desired effects directly into your saved profiles.
You will find (or must create) the following files in the same folder:
OpenRGB ON.lnk— Shortcut toOpenRGB.exethat applies your "ON" profile (used when the monitor is on).OpenRGB OFF.lnk— Shortcut toOpenRGB.exethat applies your "OFF" profile (used when the monitor is off).openRGBMonitorStatus.ps1— PowerShell script that checks the monitor status and runs the appropriate shortcut.openRGBMonitorStatus.vbs— VBScript that silently launches the PowerShell script (used only to hide the PowerShell window).
⚠️ All four files must reside in the same folder for everything to work properly.
Manually create two Windows shortcuts (.lnk) pointing to your OpenRGB.exe, each with a different --profile argument.
- OpenRGB ON.lnk
Target: "C:\Path\To\OpenRGB.exe" --profile ON
("ON" is the name of the profile, you can change it to whatever profile name you want to be applied when monitor is on)
- OpenRGB OFF.lnk
Target: "C:\Path\To\OpenRGB.exe" --profile OFF
("OFF" is the name of the profile, you can change it to whatever profile name you want to be applied when monitor is off)
To make the script automatically run when you log into Windows, you have two options:
- Open Task Scheduler.
- Create a new task (not basic).
- Under Triggers, set:
- Begin the task: At log on
- Under Actions, set:
- Action: Start a program
- Program/script: Browse and select the
openRGBMonitorStatus.vbsfile
- (Optional) Under General, check "Run with highest privileges" for better reliability.
- Press
Win + R, then type:shell:startup - Paste a shortcut to the
openRGBMonitorStatus.vbsfile into the folder that opens.
