Skip to content

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.

License

Notifications You must be signed in to change notification settings

Efeckc17/KeepAlive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:
mkdir build
cd build
  1. Configure the project:
cmake ..
  1. Build the project:
cmake --build .

The executable will be created in the build directory.

Usage

  1. Run the application:
./KeepAlive
  1. 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
  2. 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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks