A Windows application that keeps your computer awake by preventing it from entering sleep mode.
- ✅ System tray icon
- ✅ Red icon when disabled
- ✅ Green icon when enabled
- ✅ Single click to toggle awake mode
- ✅ Right-click context menu
- ✅ Single binary with no external dependencies
- ✅ Support for x86_64 and ARM64 architectures
- Run
sleepnomore_amd64.exe
(for Intel/AMD processors) orsleepnomore_arm64.exe
(for ARM processors) - The icon will appear in the system tray (near the clock)
- Click the icon to toggle awake mode on/off
- Right-click to access the context menu
- Go 1.21 or higher
build.bat
chmod +x build.sh
./build.sh
Before pushing code, run local quality checks to replicate the same checks performed in GitHub Actions:
# Windows Bat
check.bat
# PowerShell (Windows/Linux/Mac)
pwsh check.ps1
# Windows Batch
quick-check.bat
# PowerShell with options
pwsh check.ps1 -Quick # Quick mode
pwsh check.ps1 -Verbose # Detailed output
pwsh check.ps1 -NoColor # No colors (CI-friendly)
The local checks include:
- Code formatting (gofmt, goimports)
- Static analysis (go vet, staticcheck)
- Linting (golangci-lint with project config)
- Security scanning (gosec)
- Test execution with coverage reporting
- Code complexity analysis (cyclomatic, cognitive)
- Build verification (AMD64, ARM64)
- Dependency verification (go mod verify/tidy)
# All tests with coverage
go test -v -coverprofile=coverage.txt -covermode=atomic ./...
# Quick tests only
go test -short ./...
# Integration tests (requires Windows and integration build tag)
go test -tags=integration ./...
# Benchmarks
go test -bench=. -benchmem ./...
sleepnomore_amd64.exe
- Windows x86_64 (Intel/AMD)sleepnomore_arm64.exe
- Windows ARM64
The application uses the Windows API SetThreadExecutionState
to prevent the system from entering sleep mode, keeping both the system and display active when the mode is enabled.
MIT License - feel free to use this project for any purpose.
Contributions are welcome! Please feel free to submit a Pull Request.