Skip to content

AnderCMD/Vigilant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vigilant 👁️

Vigilant is a lightweight system tray application for Windows designed to keep your system active and prevent it from going into sleep mode or changing your status to "Away".

How it works

Vigilant runs silently in the background and periodically (every 3 minutes by default) simulates a press of the F15 key.

The F15 key is a non-disruptive key that is not present on most physical keyboards, meaning it won't interfere with your typing or any open applications, but it is recognized by the operating system as user activity.

Features

  • System Tray Integration: Easily accessible from the taskbar.
  • Visual Feedback: The icon changes to grayscale when paused and color when active.
  • Easy Control: Right-click the icon to Pause, Resume, or Exit.
  • Lightweight: Minimal CPU and memory footprint.
  • Auto-stop: Gracefully closes when you exit the app.

Project Structure

Vigilant/
├── assets/          # Application icons and images
├── scripts/         # Windows batch scripts for setup, run, and build
├── src/             # Python source code
├── .gitignore       # Git ignored files
├── LICENSE          # MIT License
├── README.md        # Project documentation
├── requirements.txt # Python dependencies
└── Vigilant.spec    # PyInstaller specification file

Installation

Prerequisites

  • Python 3.9+
  • Windows (Primary target for F15 key simulation)

Setup

  1. Clone the repository:

    git clone https://github.com/AnderCMD/Vigilant.git
    cd Vigilant
  2. Run the setup script: Execute the setup script in the scripts/ folder to create a virtual environment and install the required dependencies:

    .\scripts\setup.bat

Usage

After installation, you can run the application using the convenient batch script:

.\scripts\run.bat

Alternatively, you can run it directly with Python:

python src/main.py

Packaging

Building the Executable

If you want to create a standalone .exe file for Windows:

  1. Install PyInstaller:

    pip install pyinstaller
  2. Run the provided build.bat for an automated build:

    .\scripts\build.bat

    Or run the command manually:

    pyinstaller --noconsole --onefile --icon=assets/icon.ico --add-data "assets/icon.ico;assets" --name Vigilant src/main.py
    • --noconsole: Prevents a terminal window from appearing.
    • --onefile: Bundles everything into a single .exe.
    • --add-data: Includes the icon file inside the executable (mapped to assets/ subfolder).

The generated file will be in the dist/ folder.

Dependencies

  • pyautogui: For simulating key presses.
  • pystray: For creating the system tray icon.
  • Pillow: For image handling and icon manipulation.

Security

Vigilant does not collect any data, connect to the internet, or track your keystrokes. It only generates a single keypress at a fixed interval.

License

MIT License - feel free to use and modify for personal or commercial projects.

About

Vigilant is a lightweight system tray application for Windows designed to keep your system active and prevent it from going into sleep mode or changing your status to "Away".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors