Mercurial > topfetch++
changeset 2:4034cee64a58
add stuff
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Sun, 04 Oct 2026 14:33:37 -0500 |
| parents | 841975e638f2 |
| children | f7c837561bfa |
| files | .hgignore LICENSE README THIRD-PARTY-NOTICES |
| diffstat | 4 files changed, 106 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sun Oct 04 14:33:37 2026 -0500 @@ -0,0 +1,3 @@ +syntax: glob +.nix-cross-bin +topfetch++
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LICENSE Sun Oct 04 14:33:37 2026 -0500 @@ -0,0 +1,15 @@ +ISC License + +Copyright (c) 2026 Yasuri <yasuri@charliesmp.net> + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README Sun Oct 04 14:33:37 2026 -0500 @@ -0,0 +1,62 @@ +topfetch++ +========== + +A tiny live system monitor and fetch tool for Linux, written in C++. + +It combines fastfetch and btop in one small program: a distro logo and +system info that refresh every second, with live CPU, memory, and uptime. + + +FEATURES + + - Distro logo next to your system info (NixOS, Arch, Gentoo, plus a + generic fallback) + - Live-updating CPU usage, memory, and uptime + - Picks the logo from /etc/os-release, and derivatives work through + ID_LIKE (Manjaro gets the Arch logo, for example) + - No dependencies beyond the C++ standard library + - Reads /proc and /etc/os-release directly, so the code is short and + easy to follow + + +BUILD + + g++ -std=c++17 main.cpp -o topfetch + + +USAGE + + ./topfetch + ./topfetch --logo arch + + --logo overrides the detected distro. Available logos: nixos, arch, + gentoo. Unknown distros get a generic Tux. Stop it with Ctrl+C. + + +PLATFORM + + Linux only. It relies on /proc and /etc/os-release. + + +ADDING A LOGO + + Add an entry to the map in pickLogo in main.cpp. The key is the ID= + value from /etc/os-release. Each entry holds the art lines and an ANSI + color code. + + +SOURCE + + Development happens in Mercurial at https://hg.charliesmp.net/topfetch++. + Send patches to Yasuri <yasuri@charliesmp.net>. + This repository is a mirror. + + +LICENSE + + topfetch++ is licensed under the ISC license. See the LICENSE file. + + The ASCII art logos are adapted from pfetch (MIT): + Copyright (c) 2016-2021 Dylan Araps + Copyright (c) 2024-2025 Joey Reinhart + See the THIRD-PARTY-NOTICES file for the full license text.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/THIRD-PARTY-NOTICES Sun Oct 04 14:33:37 2026 -0500 @@ -0,0 +1,26 @@ +topfetch++ includes ASCII art logos adapted from pfetch +(the fork maintained by Joey Reinhart, originally by Dylan Araps), +which is distributed under the following license: + +The MIT License (MIT) + +Copyright (c) 2016-2021 Dylan Araps +Copyright (c) 2024-2025 Joey Reinhart + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.
