Skip to content

Add ThemeByTimeOfDay and NightLightByTime scripts - #62

Open
mamadaevv wants to merge 3 commits into
t1m0thyj:masterfrom
mamadaevv:add-time-scripts
Open

mamadaevv wants to merge 3 commits into
t1m0thyj:masterfrom
mamadaevv:add-time-scripts

Conversation

@mamadaevv

Copy link
Copy Markdown

Adds two new stable scripts:

  • ThemeByTimeOfDay.ps1 — switches the full Windows theme (apps + system) between light and dark at user-configured times of day (e.g. 08:00 light / 20:00 dark), instead of following WDD's sunrise/sunset schedule. Uses the same registry approach as the existing theme scripts, plus immediate theme refresh via SendMessageTimeout.
  • NightLightByTime.ps1 — enables Windows Night Light at night and disables it in the morning at user-configured times, by toggling the CloudStore blue light reduction registry blob.

Both scripts are standalone time-based and don't depend on themeMode. Each is idempotent (no-ops if the state already matches, so no flickering on wallpaper updates).

Also available in my standalone collection: https://github.com/mamadaevv/wdd-scripts-nikolay

Two new scripts:
- ThemeByTimeOfDay.ps1: switches light/dark Windows theme (apps + system) at user-configured times
- NightLightByTime.ps1: enables/disables Night Light at user-configured times

Both are standalone time-based (no dependency on themeMode). Also available at https://github.com/mamadaevv/wdd-scripts-nikolay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant