winget install --id=Enyium.NightLight -e
Handling Windows registry binary values semantically. Includes CLI tool night-light to control the Windows feature of the same name.
Night Light is a command-line tool designed to manage and control the Windows Night Light feature by handling binary registry values semantically. It provides precise control over settings such as color temperature, preview state, schedule, and active-state, while also addressing known Windows bugs related to Night Light functionality.
Key Features:
Audience & Benefit: Ideal for developers, IT professionals, and power users seeking precise control over Night Light settings. The tool enables reliable adjustments without relying on graphical user interface tools, ensuring consistent and accurate management of Night Light features.
Installable via winget, Night Light is a robust solution for those needing detailed control over Windows' Night Light functionality.
sem-reg
A Rust library crate for Windows that abstracts binary registry values, so they can be handled semantically.
Currently, these registry values are handled:
Since the knowledge about the undocumented registry values must be acquired through own investigation and not every unclarity can be resolved, this isn't an exact science. This implies that the parsing helpers, because of their potentially shape-shifting nature, aren't provided as their own crate, and handling of different registry values is done "in-house" in this repository for the time being. When you want to add your parsing code for other registry values, please approach me to include it in the crate (unless you solved all previously mentioned problems).
The API isn't stable. Future requirements of handling other registry values or more insights into the values' formats may necessitate changes.
night-light
Command Line ProgramBinaries are available on the releases page. Not every version may be provided there.
To install the newest version, first install Rust to get cargo
, then run:
cargo install sem-reg --bin night-light
This will also automatically make it available in the PATH
.
The nightlight
crate offers a library and command line program for macOS to control the screen color temperature.
For Linux, ways to control GNOME's Night Light or KDE's Night Color from the command line can easily be researched.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.