Files

Memory Monitor — Python

A btop-style memory monitor in one 1024x768 window, built from the new XFrame monitor widgets (Stage 2 of the btop-widget project). All data is live from /proc/meminfo, refreshed every 500 ms.

What it shows

  • XSysBox "MEMORY" — big used-% number, mini history graph, usage bar; the title carries the live total and available figures
  • XDonutGauge "Memory used" / "Swap used" — ring gauges (swap is 0% on machines with no swap configured); the label under each ring shows the GiB figures
  • XStackBar — used / cached / buffers / free in GiB, with legend
  • XHistoryGraph — used % and cached % over the last 60 seconds
  • XUsageBar x3 — Memory used, Cached, Swap used

"Used" follows the free convention: total − free − buffers − cached.

Run

PYTHONPATH=/root/monitor-wt/memory-monitor/lightgui_python \
    python3 examples/monitor_memory_monitor/main.py

(run from the repo root; close the window to quit)

Widgets used

XSysBox, XDonutGauge, XStackBar, XHistoryGraph, XUsageBar — all from the LightGUI registry (562 widgets: 547 + 15 monitor widgets), driven through MonitorWidget (set_value / push / set_segments / set_prop).