{"id":26053300,"url":"https://github.com/helland369/system_monitor","last_synced_at":"2026-04-21T06:33:32.748Z","repository":{"id":281012821,"uuid":"943328769","full_name":"Helland369/system_monitor","owner":"Helland369","description":"A simple system monitor project in C++ and GTK / GTKmm","archived":false,"fork":false,"pushed_at":"2025-03-06T14:32:06.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T14:37:07.673Z","etag":null,"topics":["cmake","cpp","cpp17","gtk4","gtkmm4"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Helland369.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-05T14:32:32.000Z","updated_at":"2025-03-06T14:32:09.000Z","dependencies_parsed_at":"2025-03-06T14:49:21.624Z","dependency_job_id":null,"html_url":"https://github.com/Helland369/system_monitor","commit_stats":null,"previous_names":["helland369/system_monitor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helland369%2Fsystem_monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helland369%2Fsystem_monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helland369%2Fsystem_monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helland369%2Fsystem_monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Helland369","download_url":"https://codeload.github.com/Helland369/system_monitor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242515313,"owners_count":20141995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","cpp","cpp17","gtk4","gtkmm4"],"created_at":"2025-03-08T07:27:51.083Z","updated_at":"2026-04-21T06:33:32.743Z","avatar_url":"https://github.com/Helland369.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# system_monitor\n\n## Table of Contents\n\n- [About](#About)\n- [Image](#Image)\n- [Installation](#Installation)\n  - [Dependencies](#Dependencies)\n- [Documentation](#Documentation)\n  - [Overview](#Overview)\n  - [How it works](#How-it-works)\n  - [Code structure](#Code-structure)\n  - [Running the program](#Running-the-program)\n  - [Keybindings](#Keybindings)\n  - [Testing](#Testing)\n  - [Known Limitations](#Known-Limitations)\n\n# About\n\nA simple system monitor for Linux, using gtkmm-4.0 and written in C++.\nThis project was created as part of a school assignment to learn system-level programming in C++ and explore GUI development in gtk.\n\nThis program displays real-time usages statistics for the CPU, GPU, memory, hard drives and internet (upload/download).\nThe program gets system information from the Linux `/proc` pseudo-file-system and uses the Nvidia and/or AMD API to retrieve the GPU stats.\n\n# Image\n\n![system_monitor](https://github.com/Helland369/system_monitor/blob/main/img/2026-04-01_17-30.png)\n\n# Installation\n\n## Dependencies\n\n - [gtk4](https://www.gtk.org/docs/installations/linux/)\n - [gtkmm-4.0](https://gnome.pages.gitlab.gnome.org/gtkmm-documentation/chapter-installation.html)\n - [cmake](https://cmake.org/)\n - [ninja](https://ninja-build.org/)\n - [gcc/g++](https://gcc.gnu.org/)\n\nYou can also use your favorite package manager to install the dependencies.\n\nOn Arch you would use pacman:\n\n```\nsudo pacman -S gcc gtk4 gtkmm4.0 cmake ninja\n```\n\n## Using git\n\nClone the repository:\n\n```\ngit clone https://github.com/Helland369/system_monitor.git\n```\n\nCd to project:\n\n```\ncd system_monitor\n```\n\nMake the build script executable:\n\n```\nchmod +x build.sh\n```\n\nRun the script:\n\n```\n./build.sh\n```\n\nrun the program\n\n```\n./build/system_monitor\n```\n\n## Binary\n\nYou can get a binary [here](https://github.com/Helland369/system_monitor/releases), but you need the [gtk4](https://www.gtk.org/docs/installations/linux/) and [gtkmm-4.0](https://gnome.pages.gitlab.gnome.org/gtkmm-documentation/chapter-installation.html) dependencies.\n\n\n# Documentation\n\n## Overview\n\nThis system monitor gathers system statistics by reading files from the `/proc` pseudo-filesystem and accessing the NVIDIA and/or AMD API for GPU stats. It uses  gtkmm-4.0 to build a modern, native Linux GUI.\n\n+ While running the program, you can press `1` through `5` to change the layout of the boxes.\n\n## How it works\n\n- **CPU \u0026 Memory Usage:**\n\n  Retrieved from `/proc/stat`, `/proc/meminfo`, and other related files.\n\n- **Disk Usage:**\n\n  Read from `/proc/diskstats`.\n\n- **Network Usage:**\n\n  Calculated Using `/proc/net/dev`, tracking changes in RX/TX byte counts over time.\n\n- **GPU Usage:**\n\n  Fetched via the Nvidia and/or AMD API. Depending on what GPU you have in your computer, the appropriate API (AMD or Nvidia or both) will be selected when building the program.\n\n- **GUI:**\n\n  Built with GTK4 widgets using the gtkmm C++ bindings, updated in real time using timers.\n\n## Code structure\n\n- `/src/main.cpp` Main entry point of the program.\n\n- `/src/SystemMonitorWindow.cpp` GTK related UI and rendering.\n\n- `/src/CpuUsage.cpp` Logic for gathering CPU usage info.\n\n- `src/FileSystem.cpp` Logic for gathering Disk usage info.\n\n- `src/MemInfo.cpp` Logic for gathering memory usage info.\n\n- `src/NetInfo.cpp` Logic for gathering Network info.\n\n- `src/GpuInfo.cpp` Logic for talking to the Nvidia and/or AMD API.\n\n## Running the program\n\nAfter building the project, you can run the binary from the `build/` folder:\n\n```bash\n./system_monitor\n```\n\n## Keybindings\n\n| Key to press | Action                      |\n|--------------|-----------------------------|\n| 1            | Toggle on/off CPU  usage    |\n| 2            | Toggle on/off Memory usage  |\n| 3            | Toggle on/off GPU usage     |\n| 4            | Toggle on/off Disk usage    |\n| 5            | Toggle on/off Network usage |\n\n\n## Testing\n\nTested on Arch Linux in I3 and X11.\nTested on Arch Linux in SWAY/Wayland.\n\n## Known Limitations\n\n- GPU monitoring only works with Nvidia GPUs via NVML and AMD GPUs via rocm_smi.h.\n\n- The program only supports Linux.\n\n- GTK themes maybe works.\n\n- UI may brake if you have multiple GPUs installed in you computer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelland369%2Fsystem_monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelland369%2Fsystem_monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelland369%2Fsystem_monitor/lists"}