zFetch is a lightweight system information fetcher for the Linux platform developed in C99 without any additional dependency. Unlike other system fetchers, this one focuses on providing an easy-to-use interface, extremely fast startup performance and a reasonable amount of core features.

sample usage

At the time being, it supports the following features:

The program can be compiled using any modern C compiler (GCC/Clang) and the resulting binary file can be moved wherever you prefer. In its simplest usage, you can just invoke it without any additional parameters and it will run will all options enabled.

If you instead prefer to enable or disable some specific feature, you can do so by creating a configuration file in one of the following paths:

Inside it, you can specify which option to enable and which one to disable using the following syntax:

HOST     = 1
OS       = 0
UPTIME   = 1
CPU      = 1
MEMORY   = 1
DISK     = 1
IP       = 1
LOGO     = 1
BARS     = 0
SHELL    = 1
TERMINAL = 0
DESKTOP  = 1
INIT     = 1
BATTERY  = 1

Then, to retrieve which options are currently enabled, you can append the -s flag to the program, that is:

$ ./zfetch --list-opts # or -s
HOST     : ON
OS       : OFF
UPTIME   : ON
CPU      : ON
MEMORY   : ON
DISK     : ON
IP       : ON
LOGO     : ON
BARS     : OFF
SHELL    : ON
TERMINAL : OFF
DESKTOP  : ON
INIT     : ON
BATTERY  : ON