resmon — a systemload+netload merge; willing to upstream
Hi all,
I merged xfce4-systemload-plugin 1.3.2 and xfce4-netload-plugin into a single applet, "resmon", and would like to upstream it (or its network part) with your guidance.
Repo + screenshots: https://github.com/hamidi2/resmon (v1.0.0, meson build)
What it adds over the stock plugins:
- netload's network monitor inside systemload: two adjacent bars (download/upload, configurable colors) with byte rates at the flanks, Auto_Max adaptive scale, and rates as K/M/G (bytes or bits).
- Three traffic sources: manual device, default-route device (netload MR !28 (merged), which I authored), or the sum of all devices via IpExt. Note: the stock systemload network monitor reads /proc/net/netstat with a 4 KiB buffer, which truncates the file on modern kernels — IpExt no longer fits, which is one reason the bar always showed ~0 on fast links.
- Layout: network section below/above/left/right of the system monitors; on multi-row panels it stacks and splits the height (side-by-side rows span the full height, netload-style).
- All spacing/widths configurable (bar width, bar spacing, text-to-bar gap); value labels are pixel-locked to the widest case so the applet never resizes/jitters with the numbers.
- Everything lives under the plugin's xfconf base and is live-updating.
Licensing: the netload-derived parts (default-route lookup, Auto_Max/averaging) are GPL-2-or-later, the rest BSD-2-Clause; the combined work is distributed as GPL-2.0-or-later. Happy to rework per your policy (e.g. contributing the network section directly into systemload instead of a separate plugin).
I can prepare an MR against whichever tree you prefer (a new panel-plugins project, or as a feature branch of systemload replacing the current network monitor). Feedback welcome — thanks!
hamidi