Better Resource Monitor gets a storage metric
PR #101 adds one missing metric to Better Resource Monitor: storage.
CPU, memory, GPU, and network were already in the tray. Storage looks simple next to those, but it has a privacy trap: a monitor should not need to crawl your disk just to show a percentage.
This implementation does not scan directories, read file names, inspect file contents, enumerate external drives, or collect per-volume details. It asks the OS for total and available capacity on the filesystem backing $HOME, then shows percent used in the menu bar.
How it works
The sampler is small and boring, which is the point. On macOS it uses CFURLCopyResourcePropertiesForKeys with total and available capacity keys. On Linux it uses statvfs. Then it calculates (total - available) / total * 100 and clamps the result to 0..100.
No root helper. No analytics. No telemetry. No private API path for App Store builds.
App Store detail
Apple requires privacy manifests for some accessed API categories. Disk space is one of them, so the PR bundles PrivacyInfo.xcprivacy and declares NSPrivacyAccessedAPICategoryDiskSpace with reason 85F4.1.
There is also a CI check for the boring part people forget: the packaged app must actually contain the manifest and the disk-space reason before upload.
What changed in the PR
Storage gets its own disc icon in the tray renderer and a localized “Show Storage” setting in the menu. Existing users with saved metric settings are not forced into the new segment; fresh installs can show it by default.
The tests cover the parts that are easiest to break later: percent math, settings migration, render width, alert behavior, translations, and icon ordering.
The PR is still open as I write this. It targets app version 1.1.5, with Rust and Cloudflare Pages checks passing.