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 adds one privacy constraint: calculate usage without crawling disk contents.
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 only reads total and available capacity. 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.
CI verifies the packaged app contains the manifest and 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.
At publication time, the change targeted app version 1.1.5 and included Rust and Cloudflare Pages checks.