https://github.com/votline/powercheck
A lightweight OpenGL/GLFW battery monitor for Linux. Shutdown/suspend buttons
https://github.com/votline/powercheck
battery battery-monitor desktop-app desktop-application glfw go go-gl golang golang-app golang-application linux linux-app linux-application opengl shutdown suspend
Last synced: 5 months ago
JSON representation
A lightweight OpenGL/GLFW battery monitor for Linux. Shutdown/suspend buttons
- Host: GitHub
- URL: https://github.com/votline/powercheck
- Owner: Votline
- License: agpl-3.0
- Created: 2025-06-08T21:27:44.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-08-21T18:21:47.000Z (6 months ago)
- Last Synced: 2025-08-21T21:19:13.179Z (6 months ago)
- Topics: battery, battery-monitor, desktop-app, desktop-application, glfw, go, go-gl, golang, golang-app, golang-application, linux, linux-app, linux-application, opengl, shutdown, suspend
- Language: Go
- Homepage:
- Size: 8.79 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PowerCheck - Minimalist Battery Monitor
PowerCheck is a lightweight battery monitoring application built with OpenGL and GLFW.
## Description
The application displays current battery level.
### Key Features:
- **Battery percentage**: Accurate reading from `/sys/class/power_supply/BAT0/capacity`
- **Instant actions**: One-click shutdown or suspend
- **Lightweight**: Minimal resource consumption
- **Silent mode**: Run with `--smode=true` for background operation
- **SD** - Immediate shutdown
- **SS** - Suspend system
## Technologies
- **Go** (1.24.3) - primary language
- **[Go-gl](https://github.com/go-gl/gl)** - graphics rendering
- **[Go-gl/glfw](https://github.com/go-gl/glfw)** (v3.3) - window management
## Installation & Building
1. **Clone the repository**:
```bash
git clone https://github.com/Votline/PowerCheck
cd PowerCheck
```
2. **Download dependencies**:
```bash
go mod download
```
3. **Build the application**:
```bash
go build -o powercheck
```
4. **Run**:
```bash
./powercheck
```
## Licenses
This project is licensed under [GNU AGPL v3](LICENSE).
The full license texts are available in the [licenses directory](licenses/)