SkillAgentSearch skills...

HDRSwitch

CLI to toggle HDR on Windows

Install / Use

/learn @cocafe/HDRSwitch
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

HDRSwitch

This repo includes HDRToggler, an AutoHotkey v2 script for toggling HDR on Windows 10 using the CLI tool HDRSwitch. See HDRToggler/README.md for details.

Description

CLI program to toggle HDR on/off on Windows.

Inspired by AutoActions, but with some fixes, including reloading ICC profile on toggle.

Tested on Windows 10 22H2 and Windows 11 22H2.

How to use

    --hdr_on                 Turn on HDR on a monitor
    --hdr_off                Turn off HDR on a monitor
    -t --toggle              Toggle HDR state on a monitor
    -v --verbose             Verbose output
    -l --list                List monitors
    -m --monitor <..>        Monitor index
    -a --all                 Apply to all monitors
    -h --help                This help message
# list all monitors
./HDRSwitch.exe -l

# toggle hdr state on monitor 0
./HDRSwitch.exe -t -m 0

# turn off hdr on monitor 0
./HDRSwitch.exe --hdr_off -m 0

# turn on hdr on ALL monitors
./HDRSwitch.exe --hdr_on --all

You can create a desktop shortcut and assign with a shortcut hotkey to toggle HDR by keyboard.

How to compile

Compile with MSYS2 mingw64 and cmake.

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated1mo ago
Forks1

Languages

C

Security Score

75/100

Audited on Feb 28, 2026

No findings