PcSleepTimer is a native app for Windows, Linux, and Mac, which gives your PC a sleep timer similar to the ones found in your TV. You can setup your own duration and the process that is ran once the time is up (default is the shutdown command for the OS).
There are two ways to get a copy of PcSleepTimer: Download the latest release under the release tab (windows only), or compile from source.
- Install Node JS and npm on your PC.
- Fork and clone the repository.
- Run command
npm install --save-dev
on the cloned folder. - Create a folder called
build
and move the icon file to that folder. - Run command
electron-builder build --windows
The app files will be built in the dist
folder. If you need to build for other operating systems, replace --windows
with your OS specific flag (Linux: --linux
, Mac: --mac
). Other OS flags can be found here.
Note: This has not been tested on linux or mac. Any contribution on that front will be greatly appriciated!
After you run PcSleepTimer for the first time it will create a settings.json
file. You can change all the settings int this file, but the app must be restarted for them to take affect.
Setting | Description |
---|---|
duration |
Duration of the sleep timer. |
overtime |
Duration of the overtime period. |
fullscreen |
Whether the app will switch to fullscreen duration overtime. |
process |
The process that will run if the timer is not reset after overtime. |