Replies: 3 comments 3 replies
-
That is not possible because we don't have any telemtry over the theme switch. If you want an execution delay you need to program it into your script. |
Beta Was this translation helpful? Give feedback.
-
You could put an sleep timer to your custom script |
Beta Was this translation helpful? Give feedback.
-
The following # https://github.com/AutoDarkMode/Windows-Auto-Night-Mode/wiki/How-to-add-custom-scripts
Enabled: true
Component:
Scripts:
- Name: Sleep
Command: cmd
ArgsLight:
- /C
- 'timeout 10 && rundll32 powrprof.dll,SetSuspendState 0,1,0' However, you need to make sure to run the following command in an admin CMD window: powercfg -hibernate off As Armin2208 mentioned, run the following to register the script: %LocalAppData%\Programs\AutoDarkMode\AutoDarkModeShell --restart |
Beta Was this translation helpful? Give feedback.
-
Describe the enhancement or feature you'd like
Run the script after the theme has fully been changed
Describe alternatives you've considered
Toggling the theme manually, waiting until the pixels turn to the other side, and then doing the other task
Additional context
I wish to automate changing the theme to light and then putting the computer to sleep. This is to avoid the theme change as the computer wakes up, which lags it
I discovered custom scripts yesterday, but the script executes as soon as I toggle the theme to light, which doesn't prevent the lag
Beta Was this translation helpful? Give feedback.
All reactions