An open API service indexing awesome lists of open source software.

https://github.com/helmare/pcsleeptimer

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.
https://github.com/helmare/pcsleeptimer

cross-platform electron-app sleep-timer

Last synced: 12 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

# Welcome To The PcSleepTimer App!
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).

## How Do I Get It?
There are two ways to get a copy of PcSleepTimer: Download the latest release under the release tab (windows only), or compile from source.

### How To Compile From Source
1. Install Node JS and npm on your PC.
2. Fork and clone the repository.
3. Run command ```npm install --save-dev``` on the cloned folder.
4. Create a folder called ```build``` and move the icon file to that folder.
5. 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](https://www.electron.build/cli).

**Note: This has not been tested on linux or mac. Any contribution on that front will be greatly appriciated!**

## Settings
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.|