Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Switch between Windows light and dark modes at scheduled times

📅 2022-Dec-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ dark mode ⬩ 📚 Archive

Windows 10 has support for light mode and dark mode for both Windows and for applications. The former changes the colors for the Windows taskbar, while the latter affects all the application windows. However, switching between these modes can only be done manually. I wanted Windows to have light mode during the day and automatically switch to dark mode at night.

One way to solve this problem is to use the Task Scheduler that is in Windows. Essentially we schedule daily tasks to do the switch between light and dark modes. We can do the switch by setting the registry keys SystemUsesLightTheme and AppsUseLightTheme to 0 or 1.

Here is how to do that:

All done! You should see the light and dark modes switching at the scheduled time now.

Reference:


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧