Monitor Widgets — btop-style live widgets for LightGUI
Monitor widgets are LightGUI's btop-style live widgets: fifteen XFrame widgets for building system monitors, dashboards and status boards — scrolling graphs, gauges, bars, a process table, a load badge, and buttons that watch a process, a systemd unit or a TCP port and glow green or red with the answer.

Every widget is a plain XFrame widget: construct it, feed it values, draw it. Your app does no hand-rolled drawing — the widgets do that — and each widget ships with a working example in examples/<Name>.cpp that builds, runs and is screenshotted under Xvfb.
The fifteen widgets
| Widget | What it does |
|---|---|
| XHistoryGraph | Scrolling multi-series time-series line graph. |
| XCoreGrid | A grid of mini history graphs, one per CPU core. |
| XNetGraph | Dual up/down scrolling graph with current rates and totals. |
| XTempHistory | Temperature history with a threshold line and over-temp colouring. |
| XUsageBar | Horizontal gradient usage bar with label and percentage text. |
| XStackBar | Stacked multi-segment bar (used/cached/buffers/free) with a legend. |
| XVerticalBar | Vertical bar meter with a scale and a peak-hold marker. |
| XTachometer | Round tachometer: needle, redline zone, digital readout, peak hold. |
| XArcGauge | Semicircular arc gauge with coloured zones and a big percentage in the middle. |
| XDonutGauge | Circular progress ring with the percentage centred. |
| XProcessList | Live process table: sortable columns, in-cell CPU% bars, colour-coded rows, auto-refresh. |
| XLoadBadge | Load-average badge (1/5/15 min) with colour thresholds and uptime. |
| XMonitorButton | A button that IS a live monitor: process, systemd unit, or TCP port. |
| XMonitorGrid | A panel of XMonitorButtons in a labelled grid, on one shared poll timer. |
| XSysBox | Composite resource box: title, big number, history graph, usage bar. |
Build a dashboard
One XSysBox per resource (CPU, MEM, NET), a XHistoryGraph for the trends, an XCoreGrid for the cores, and an XMonitorGrid for the services — that is a btop screen made of widgets. Each widget's own page has its methods and a working snippet.
Ports
All fifteen widgets exist in C, Rust and Python under the same names.
Get the code
These widgets ship in all three LightGUI repos:
- lightgui (C)
- lightgui_rust (Rust)
- lightgui_python (Python)