Architecture decisions
Why urja is built the way it is: each significant decision as a short record (context, the decision, its consequences), in the ADR format. A decision is never edited away: a later one supersedes it. Sources: docs/adr.
Record architecture decisions
Decisions about how urja is built (its dependencies, its boundaries, the trade-offs it accepts) were made in conversations and commit messages, where nobody finds them later. A con…
Ship as its own repository, as a Vyom tool
urja started as a script inside Vayu that piped rows into wofi. Living inside the desktop's dotfiles meant it couldn't be installed, versioned or tested on its own, and wofi's plai…
Read the battery from sysfs
UPower adds a daemon dependency; the kernel already exposes everything needed.
The charge graph comes from UPower's history, over D-Bus
The card shows the charge over the last three hours. UPower already records every battery's charge (/var/lib/upower/history-charge-.dat), but those files are readable by root only.…