vigilo

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 8 Imported by: 0

README

Vigilo

A lightweight macOS menu bar application that prevents your Mac from sleeping.

Features

  • Prevents display sleep
  • Prevents system sleep
  • Simple toggle interface
  • Visual status indicator in menu bar
  • Minimal resource usage

Installation

Build from source
go build -o vigilo main.go
Run
./vigilo

The application will appear in your menu bar.

Usage

  1. Click the menu bar icon to open the menu
  2. Click "Disable" to turn off sleep prevention
  3. Click "Enable" to turn it back on
  4. The icon shows "ON" or "OFF" to indicate current state

The application starts enabled by default.

Requirements

  • macOS
  • Go 1.25.1 or later

Dependencies

  • github.com/ebitengine/purego - Pure Go system calls
  • github.com/getlantern/systray - System tray functionality

How it works

Vigilo uses macOS IOKit Power Management APIs to create power assertions that prevent both display and system sleep. When enabled, it maintains two assertions:

  • PreventUserIdleDisplaySleep - Keeps the display on
  • PreventUserIdleSystemSleep - Keeps the system awake

License

See LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL