vigilo

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
  • Start on startup option
  • Minimal resource usage

Installation

go install github.com/ranglust/vigilo@latest
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
  5. Click "Start on Startup" to automatically launch Vigilo when you log in

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
⌂ 换网址