--- title: fetch categories: - Tools and applications --- **fetch** is a suckless-style alternative to neofetch in one C file, inspired by macchina and hfetch. Feel free to modify it. ![fetch](https://raw.githubusercontent.com/hugoocoto/fetch/main/image.png) ## 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](pm-user-repository.md). ## See also - [Source code](https://github.com/hugoocoto/fetch) (GPL-3.0)