Manage Windows laptop and Dell monitor(s) brightness using wmic
and ddm
commands respectively.
This is a .bat
batch script to do the job in two external commands based on the time of the day (day or night) as indicated through the argument.
The repository includes run configurations and some screenshots.
The WmiMonitorBrightnessMethods WMI class and its WmiSetBrightness method is leveraged here to set laptop's brightness.
For ddm
subcommands see this gist and Dell Community conversation.
Coded in IntelliJ IDEA using Batch Scripts Support plugin with love ❤️.