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

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.

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

![Menu Screenshot](assets/for-readme/menu.png)

## 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 application

3. 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.