https://github.com/votline/powerchecker
A lightweight OpenGL/GLFW battery monitor for Linux. Shutdown/suspend buttons
https://github.com/votline/powerchecker
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/powerchecker
- Owner: Votline
- License: mit
- Created: 2025-06-08T21:27:44.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-08-31T14:44:52.000Z (5 months ago)
- Last Synced: 2025-08-31T16:21:46.431Z (5 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: 12.6 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PowerChecker - Minimalist Battery Monitor
PowerChecker 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/PowerChecker
cd PowerChecker
```
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 [MIT](LICENSE).
The full license texts are available in the [licenses directory](licenses/)