Auto Dark Mode for Windows(github.com)
github.com
Auto Dark Mode for Windows
https://github.com/AutoDarkMode/Windows-Auto-Night-Mode
12 comments
I had similar idea of changing my PC's brightness according to the time of the day. It probably could've been implemented pretty easily using Windows API and some little hacking.
Look at (Monitorian)[https://github.com/emoacht/Monitorian] for that.
Years ago, I wrote a very stripped-down version in a few lines of PowerShell. I'll upload it when I get home.
I did the same just a few days ago based on webcam, 26 lines of PowerShell.
See https://gist.github.com/lostmsu/cde4a8578d8e0ea1182f579f44bd...
See https://gist.github.com/lostmsu/cde4a8578d8e0ea1182f579f44bd...
my minimal powershell code
$old = -1
while ($true) {
$d = Get-Date
$hour = $d.Hour
if ($hour -ge 6 -and $hour -lt 19) {
$light = 1
} else {
$light = 0
}
if ($old -ne $light) {
Set-ItemProperty HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize AppsUseLightTheme $light
$old = $light
echo $light $d
}
sleep -Seconds 2
}Does it really matter if 60% of system dialogs are still a flash bang?
Are you on Windows 11?
They fixed the copy dialogs now but it's still not a full dark mode.
[deleted]
That's true tho
It's honestly surprising that it took this long even on KDE.
I was switching themes automatically for years with a preference setting in f.lux. Every app on system preference, dark reader as well.
[1] https://learn.microsoft.com/en-us/windows/powertoys/light-sw...