A Rainmeter plugin for controlling Windows 10/11 Night Light feature directly from your Rainmeter skins.
- Check if Night Light is supported on your system
- Get current Night Light state (enabled/disabled)
- Enable/Disable Night Light
- Toggle Night Light
- Get/Set Night Light strength (0-100%)
- Build the plugin using
Build.ps1or Visual Studio - Copy the compiled
NightLight.dllto your Rainmeter plugins folder:- For 64-bit:
%APPDATA%\Rainmeter\Plugins\ - For 32-bit:
%APPDATA%\Rainmeter\Plugins\
- For 64-bit:
[Measure_NightLight]
Measure=Plugin
Plugin=NightLight
Type=SupportedReturns:
1if Night Light is supported-1if not supported
[Measure_NightLight]
Measure=Plugin
Plugin=NightLight
Type=StateReturns:
1if Night Light is enabled-1if Night Light is disabled
[Measure_Strength]
Measure=Plugin
Plugin=NightLight
Type=StrengthReturns: 0-100 (percentage)
[!CommandMeasure Measure_NightLight "Enable"][!CommandMeasure Measure_NightLight "Disable"][!CommandMeasure Measure_NightLight "Toggle"][!CommandMeasure Measure_NightLight "Strength 50"]- Visual Studio 2019 or later
- .NET Framework 4.8
- Windows 10/11
- Open
NightLight.slnin Visual Studio - Select your target platform (x86 or x64)
- Build the solution (Ctrl+Shift+B)
Or use PowerShell:
# Build for x64 Release
.\Build.ps1 -Configuration Release -Platform x64
# Build for x86 Release
.\Build.ps1 -Configuration Release -Platform x86The plugin manipulates Windows registry keys to control Night Light:
- State:
HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\DefaultAccount\Current\default$windows.data.bluelightreduction.bluelightreductionstate\windows.data.bluelightreduction.bluelightreductionstate - Settings:
HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\DefaultAccount\Current\default$windows.data.bluelightreduction.settings\windows.data.bluelightreduction.settings
This plugin is provided as-is for use with Rainmeter.