Resource budget enforcement for my Linux desktop.
- Go 99.5%
- Shell 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| cmd/budget | ||
| internal/budget | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| install.sh | ||
| LICENSE | ||
| profiles.example.toml | ||
| README.md | ||
budget
Resource limits for desktop apps and terminal workloads. Requires Linux, cgroup v2, a systemd user session, and Go 1.26+.
Copy profiles.example.toml to ~/.config/budget/profiles.toml and edit limits, app IDs, and terminal prefixes.
| Action | Command |
|---|---|
| Install and apply | ./install.sh |
| Apply configuration edits | budget apply |
| Show configuration | budget status |
| Launch with a profile | budget run compute -- COMMAND |
| Override a running app or unit | budget set unrestricted TARGET |
| Test | go test -race ./... |
| Lint | golangci-lint run |