Fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way. It is written in pure c, with performance and customizability in mind. Currently Linux, Android, BSD and MacOS are supported.
With customization and speed being two competing goals, this project actually builds two executables.
The main one being fastfetch
, which can be very greatly configured via flags. These flags can be made persistent in ~/.config/fastfetch/config.conf
. To view the available options run fastfetch --help
.
The second executable being built is called flashfetch
, which is configured at compile time to eliminate any possible overhead. Configuration of it can be very easily done in src/flashfetch.c
.
At the moment the performance difference is measurable, but too small to be human recognizable. But the leap will get bigger with more and more options coming, and on slow machines this might actually make a difference.
There are some premade config files in presets
, including the ones used for the screenshots above. You can load them using --load-config <filename>
. They may also serve as a good example for format arguments.
Fastfetch dynamically loads needed libraries if they are available. Therefore its only hard dependencies are libc
(any implementation of the c standard library), libdl
and libpthread
. They are all shipped with glibc
, which is already installed on most linux distributions, so you probably don't have to worry about it.
The following libraries are used if present at runtime:
libpci
: GPU output.libvulkan
: Vulkan module & fallback for GPU output.libxcb-randr
,libXrandr
,libxcb
,libX11
: At least one of them sould be present in X11 sessions for better resolution detection and faster WM detection. The*randr
ones provide multi monitor support Thelibxcb*
ones usually have better performance.libwayland-client
: Better resolution performance and output in wayland sessions. Supports different refresh rates per monitor.libGIO
: Needed for values that are only stored GSettings.libDConf
: Needed for values that are only stored in DConf + Fallback for GSettings.libmagickcore
(ImageMagick): Images in terminal using sixel or kitty graphics protocol.libchafa
: Image output as ascii art.libZ
: Faster image output when using kitty graphics protocol.libDBus
: Needed for detecting current media player and song.libEGL
,libGLX
,libOSMesa
: At least one of them is needed by the OpenGL module for gl context creation.libOpenCL
: OpenCL modulelibXFConf
: Needed for XFWM theme and XFCE Terminal font.libsqlite3
: Needed for pkg & rpm package count.librpm
: Slower fallback for rpm package count. Needed on openSUSE.libplist
: Binaryplist
file parser ( macOS ). Needed for iTerm2 Terminal font and WM Theme.
All categories not listed here should work without needing a specific implementation.
Title, Separator, OS, Host, Kernel, Uptime, Processes, Packages, Shell, Resolution, DE, WM, WMTheme, Theme, Icons, Font, Cursor, Terminal, Terminal Font, CPU, CPUUsage, GPU, Memory, Swap, Disk, Battery, Player, Media, Vulkan, OpenGL, OpenCL, LocalIP, PublicIP, DateTime, Date, Time, Locale, Colors, Break, Custom
AlmaLinux, Alpine, Android, Arch, Arco, Artix, Bedrock, CachyOS, CentOS, Crystal, Debian, Devuan, Deepin, Endeavour, Fedora, FreeBSD, Garuda, Gentoo, KDE Neon, KISS, Kubuntu, LangitKetujuh, Linux, MacOS, Manjaro, Mint, MSYS2, NixOS, OpenSUSE, OpenSUSE Tumbleweed, OpenSUSE LEAP, Pop!_OS, RebornOS, RedstarOS, Rocky, Rosa, Slackware, Ubuntu, Void, Zorin
- Most of the logos have a small variant. Access it by appending _small to the logo name.
- Some logos have an old variant. Access it by appending _old to the logo name.
- Unknown/unsupported logos will be replaced with a generic linux logo when running fastfetch.
- Get a list of all available logos with
fastfetch --print-logos
. - Printing images as logo is supported using Sixel or Kitty graphics protocol.
Pacman, dpkg, rpm, emerge, xbps, nix, Flatpak, Snap, apk, pkg, brew, MacPorts
KWin, Mutter, Muffin, Marco, XFWM, Openbox (LXDE, LXQT & without DE), Quartz Compositor (macOS)
KDE Plasma, Gnome, Cinnamon, Mate, XFCE4, LXQt
Konsole, Gnome Terminal, Tilix, XFCE4 Terminal, Alacritty, LXTerminal, iTerm2, Apple Terminal, TTY
fastfetch uses cmake
and pkg-config
for building. The simplest steps to build the fastfetch and flashfetch binaries are:
mkdir -p build
cd build
cmake ..
cmake --build . --target fastfetch --target flashfetch
If pkg-config fails to find the headers for a library listed in dependencies, fastfetch will simply build without support for that specific feature. This means, it won't look for it at runtime and just act like it isn't available.
- DEB / RPM package:
cmake --build . --target package
- Install directly:
cmake --install . --prefix /usr/local
Q: Why do you need a very performant version of neofetch?
I like putting neofetch in my ~/.bashrc to have a system overwiew whenever i use the terminal, but the slow speed annoyed me, so i created this. Also neofetch didn't output everything correctly (e.g Font is displayed as "[Plasma], Noto Sans, 10 [GTK2/3]") and writing my own tool gave me the possibility to fine tune it to run perfectly on at least my configuration.
Q: It does not display [*] correctly for me, what can i do?
This is most likely because your system is not implemented (yet). At the moment i am focusing more on making the core app better, than adding more configurations. Feel free to open a pull request if you want to add support for your configuration