Last active
October 8, 2020 05:51
-
-
Save 0x07dc/f77e5573e11c6384813c299bf99c90da to your computer and use it in GitHub Desktop.
Batch file to simplify running windowsSleepTimer.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: | |
:: windowsSleepTimer.py is in a folder called deps in this implementation | |
:: this folder is in the same folder as windowsSleepTimer.py | |
:: | |
:: Usage: | |
:: To control time until audio silence: | |
:: > sleepTimer.bat <minutesUntilSilence> | |
:: To use the default setting: | |
:: > sleepTimer.bat | |
:: Example: | |
:: > sleepTimer.bat 60 | |
:: > sleepTimer.bat | |
:: | |
:: You can put this file in your System Environment to make it convenient. | |
:: Then, at any time, run: | |
:: > sleepTimer 60 | |
:: to silence the audio in 60 minutes | |
:: | |
:: Currently the default if you don't set it is 140 minutes | |
:: Then, you can just run: | |
:: > sleepTimer | |
:: | |
:: ππππππππππππππππππ | |
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: | |
if %~1=="" (python %~dp0deps\windowsSleepTimer.py 140 | |
) else (python %~dp0deps\windowsSleepTimer.py %~1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment