a simple rust script to change the application theme to dark when the night light is enabled. it runs a lightweight headless application in the background which listens to changes in the windows registry.
written for Windows 10 / 11
testing
git clone https://github.com/zaccnz/auto_dark_mode.git
cd auto_dark_mode
cargo run
installation
git clone https://github.com/zaccnz/auto_dark_mode.git
cd auto_dark_mode
cargo run -- --install
for a full list of options run cargo run -- --help
or auto_dark_mode.exe --help
$ cargo run -- --help
auto_dark_mode 0.1.0
Zac Cleveland
automatically sync dark theme with night light on Windows 10 / 11
USAGE:
auto_dark_mode.exe [OPTIONS]
OPTIONS:
-a, --app-only Change default app mode only
-d, --install-dir <INSTALL_DIR> Directory to copy executable too on install
-h, --help Print help information
-i, --install Copy executable and run on computer start
-s, --system-only Change default Windows mode only
-u, --uninstall Remove this program from your computer
-V, --version Print version information
note: please do not rename the executable from auto_dark_mode.exe
.