https://github.com/efeckc17/keepalive
A lightweight Windows system tray application that prevents your computer from going to sleep. Features multiple timer options and automatic fullscreen detection. Perfect for long-running tasks, downloads, or when you need to keep your system active.
https://github.com/efeckc17/keepalive
c keepalive tray-application
Last synced: 3 months ago
JSON representation
A lightweight Windows system tray application that prevents your computer from going to sleep. Features multiple timer options and automatic fullscreen detection. Perfect for long-running tasks, downloads, or when you need to keep your system active.
- Host: GitHub
- URL: https://github.com/efeckc17/keepalive
- Owner: Efeckc17
- License: mit
- Created: 2025-05-24T16:45:17.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-06-15T18:31:21.000Z (4 months ago)
- Last Synced: 2025-06-15T19:36:23.832Z (4 months ago)
- Topics: c, keepalive, tray-application
- Language: C
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KeepAlive
A Windows application that prevents the system from sleeping. It runs in the system tray and allows you to set a timer for how long you want to prevent sleep mode.
## Screenshot

## Features
- System tray icon with context menu
- Multiple duration options (30 minutes, 1 hour, 2 hours, 4 hours, 8 hours)
- Shows remaining time in the tray icon tooltip
- Prevents system sleep while active
- Single instance check
- Automatic sleep prevention when any application is in fullscreen mode## Building
### Prerequisites
- CMake (version 3.10 or higher)
- Visual Studio with C/C++ development tools
- Windows SDK### Build Steps
1. Create a build directory:
```bash
mkdir build
cd build
```2. Configure the project:
```bash
cmake ..
```3. Build the project:
```bash
cmake --build .
```The executable will be created in the `build` directory.
## Usage
1. Run the application:
```bash
./KeepAlive
```2. The application will appear in the system tray. Right-click the icon to:
- View current status
- Start/Stop the timer
- Select duration
- Exit the application3. The tray icon tooltip will show the remaining time when active.
## License
This project is licensed under the MIT License - see the LICENSE file for details.