Tabbed TPageControl app in one 1024x768 window. Processes tab is a live XProcessList from /proc (sortable Pid/Program/User/MemB/Cpu%). Performance tab is XHistoryGraph (60 s CPU+memory), XCoreGrid (per-core), XUsageBar (Memory, Disk /, Swap), XStackBar (memory breakdown) and XNetGraph (live /proc/net/dev rates). Data sampled every 500 ms from /proc/stat, /proc/meminfo, /proc/net/dev and statvfs; repaint every 2 s (a full repaint issues ~500 XAllocColor round trips via get_color_Srgb, ~0.5 s wall on this Xvfb, so a 500 ms repaint would never catch up). Widgets-only: no raw X11 drawing for UI elements.
Task Manager — monitor app
A Windows-style Task Manager clone in one 1024×768 window, built from the LightGUI XFrame monitor widgets (Stage 2 of the btop-widget project).
Tabs
- Processes —
XProcessList: live/proctable, columns Pid / Program / User / MemB / Cpu%, click a column header to sort (click again to reverse). Refreshes every 2 s. - Performance —
XHistoryGraph(60 s CPU + memory),XCoreGrid(one mini history graph per CPU core),XUsageBar(Memory, Disk /, Swap),XStackBar(memory Used / Cached / Buffers / Free in GiB),XNetGraph(live download / upload bytes/s from/proc/net/dev). All graphs refresh every 500 ms from live/procdata (/proc/stat,/proc/meminfo,/proc/net/dev,statvfs).
Build and run
make
DISPLAY=:112 ./task-manager
Close the window (or press q / Esc) to quit.
Widgets used
TPageControl, XProcessList, XHistoryGraph, XCoreGrid,
XUsageBar, XStackBar, XNetGraph — all from the LightGUI
registry. No raw X11 drawing for UI elements: the only raw X11 here
is the window shell and the event loop, as in the per-widget demo
mains.