Live process table from /proc (sortable columns, in-cell CPU% bars, colour-coded rows, refresh()), load-average badge (1/5/15 min, threshold colours, uptime from /proc), monitor button bound to a process (/proc scan), systemd unit (systemctl is-active) or TCP port (connect to localhost) with poll()/update() and click-for-details, grid panel of monitor buttons with one shared poll_all(), composite resource box (title + big number + history + usage bar). Header-only C++, demo mains (polling loop for the live three), examples, Xvfb screenshots.
14 lines
253 B
CMake
14 lines
253 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
project(XSysBox LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
add_executable(XSysBox main_XSysBox.cpp)
|
|
|
|
target_link_libraries(XSysBox PRIVATE X11::X11)
|