Jump to content

fetch

From Hugo's wiki

fetch is a suckless-style alternative to neofetch in one C file, inspired by macchina and hfetch. Feel free to modify it.

fetch

Configuration

Like suckless tools, it is configured by editing config.h and recompiling. Each line is a label and the shell command that produces its value:

const char *const show[][3] = {
        { "host", "echo ${USER}@$(hostname)" },
        { "kernel", KERNEL },
        { "distro", DISTRO },
        { "uptime", UPTIME },
        { "packages", PACKAGES },
        { "cpu", CPU },
        { "gpu", GPU },
        ...
};

The package count uses pacman -Q by default.

Installation

$ git clone https://github.com/hugoocoto/fetch
$ cd fetch
$ make

It is also available through the pm user repository.

See also