Fastfetch
Fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way. It is written mainly in C, with performance and customizability in mind. Currently, Linux, Android, FreeBSD, MacOS and Windows 7+ are supported.
There are screenshots on different platforms
Customization
With customization and speed being two competing goals, this project actually builds two executables:
- The main one is
fastfetch
, which can be very greatly configured via flags. These flags can be made persistent by modifying$XDG_CONFIG_HOME/fastfetch/config.conf
. Usefastfetch --gen-config conf
to generate one. To view the available options, runfastfetch --help
. - The second executable is called
flashfetch
, which is configured at compile time to eliminate any possible overhead. Configuration of it can be very easily done insrc/flashfetch.c
.
Currently, the performance difference is measurable, but too small to be recognizable by humans. But with more options planned, the leap will get bigger over time 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.
Logos can be heavily customized too; see the logo documentation for more information.
Customization with new JSONC format
A new, structure based, and user-friendly config file format was introduced in v2.0.0. This format is based on JSONC. See more details in Wiki
Dependencies
Fastfetch dynamically loads needed libraries if they are available. On Linux, its only hard dependencies are libc
(any implementation of the c standard library), libdl
, libm
and libpthread
(if built with multithreading support). They are all shipped with glibc
, which is already installed on most Linux distributions.
The following libraries are used if present at runtime:
Linux and FreeBSD
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 display detection and faster WM detection. The*randr
ones provide multi monitor support Thelibxcb*
ones usually have better performance.libwayland-client
: Better display 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
: Bluetooth, Player & Media detection.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.libnm
: Used for Wifi detection.libpulse
: Used for Sound detection.libddcutil
: Used for brightness detection of external displaysDirectX-Headers
: Used for GPU detection in WSL
macOS
MediaRemote
: Need for Media detection. It's a private framework provided by newer macOS system.DisplayServices
: Need for screen brightness detection. It's a private framework provided by newer macOS system.IO80211
: Need for Wifi detection on Sonoma (and maybe later). It's a private framework provided by newer macOS system.MoltenVK
: Vulkan driver for macOS.molten-vk
libmagickcore
(ImageMagick): Images in terminal using sixel graphics protocol.imagemagick
libchafa
: Image output as ascii art.chafa
libsqlite3
: Used for fast wallpaper detection ( fallback to AppleScript )
For the image logo, iTerm with iterm image protocol should work. Apple Terminal is not supported.
Windows
wlanapi
: A system dll which isn't supported by Windows Server by default. Used for Wifi info detection.libvulkan
: Vulkan module. Usually has been provided by GPU drivers.vulkan-loader
vulkan-headers
libOpenCL
: OpenCL module.opencl-icd
Note: In Windows 7, 8 and 8.1, ConEmu is required to run fastfetch due to the lack of ASCII escape code native support. In addition, as fastfetch for Windows targets UCRT C runtime library, it must be installed manually as UCRT is only pre-installed in Windows 10 and later.
For the image logo, WezTerm with iterm image protocol is known to work, surprisingly.
Android
freetype
: Used for Termux font detection.freetype
libvulkan
: Vulkan module, also used for GPU detection. Usually has been provided by Android system.vulkan-loader-android
vulkan-headers
termux-api
: Used for Wifi / Battery detection. Both the package termux-api and the Android app Termux API must be installed and the appTermux API
must be configured to be able to self-running. In order to make Wifi detection actuall work, location privilege must be granted to the appTermux API
. Read the official doc for detail.libandroid-wordexp-static
:wordexp.h
support for Android.
For the image logo, Termux Monet supports iterm image protocol.
Support status
All categories not listed here should work without needing a specific implementation.
Available Modules
Battery, Bios, Bluetooth, Board, Break, Brightness, Colors, Command, CPU, CPUUsage, Cursor, Custom, Date, DateTime, DE, Disk, DiskIO, Display, Font, Gamepad, GPU, Host, Icons, Kernel, LM, Locale, LocalIP, Media, Memory, Monitor, NetIO, OpenCL, OpenGL, OS, Packages, Player, Power Adapter, Processes, PublicIP, Separator, Shell, Sound, Swap, Terminal, Terminal Font, Terminal Size, Theme, Time, Title, Uptime, Version, Vulkan, Wallpaper, Weather, Wifi, WM, WMTheme
Builtin logos
AerOS, Afterglow, AIX, AlmaLinux, Alpine, Alpine2Small, AlpineSmall, Alter, Amazon, AmazonLinux, AmogOS, Anarchy, Android, AndroidSmall, Antergos, Antix, AoscOS, AoscOS_old, AoscOsRetro, AoscOsRetro_small, Aperture, Apple, AppleSmall, Apricity, Arch, Arch2, ArchBox, Archcraft, Archcraft2, Archlabs, ArchSmall, ArchStrike, ArcoLinux, ArcoLinuxSmall, ArseLinux, Artix, Artix2Small, ArtixSmall, Arya, Asahi, Aster, AsteroidOS, AstOS, Astra, Ataraxia, Athena, Bedrock, BigLinux, Bitrig, BlackArch, BlackPanther, BLAG, BlankOn, BlueLight, Bodhi, Bonsai, BSD, BunsenLabs, CachyOS, CachyOSSmall, Calculate, CalinixOS, CalinixOSSmall, Carbs, CBL-Mariner, CelOS, Center, CentOS, CentOSSmall, Chakra, ChaletOS, Chapeau, Chimera Linux, ChonkySealOS, Chrom, Cleanjaro, CleanjaroSmall, ClearLinux, ClearOS, Clover, Cobalt, Condres, ContainerLinux, CRUX, CRUXSmall, CrystalLinux, Cucumber, CutefishOS, CuteOS, CyberOS, Dahlia, DarkOS, Debian, DebianSmall, Deepin, DesaOS, Devuan, DevuanSmall, DietPi, DracOS, DragonFly, DragonFlyOld, DragonFlySmall, Drauger, Droidian, Elbrus, Elementary, ElementarySmall, Elive, EncryptOS, Endeavour, EndeavourSmall, Endless, Enso, EuroLinux, EvolutionOS, EvolutionOS_old, EvolutionOSSmall, Exherbo, ExodiaPredator, Fedora, FedoraOld, FedoraSmall, FemboyOS, Feren, Finnix, Floflis, FreeBSD, FreeBSDSmall, FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, GarudaDragon, GarudaSmall, Gentoo, GentooSmall, GhostBSD, Glaucus, GNewSense, Gnome, GNU, GoboLinux, GrapheneOS, Grombyang, Guix, GuixSmall, Haiku, HaikuSmall, HamoniKR, HarDClanZ, HardenedBSD, Hash, Huayra, Hybrid, HydroOS, Hyperbola, HyperbolaSmall, Iglunix, InstantOS, IRIX, Itc, Januslinux, Kaisen, Kali, KaliSmall, KaOS, KDENeon, Kibojoe, KISSLinux, Kogaion, Korora, KrassOS, KSLinux, Kubuntu, LainOS, LangitKetujuh, Laxeros, LEDE, LibreELEC, Linspire, Linux, LinuxLight, LinuxLightSmall, LinuxMint, LinuxMintOld, LinuxMintSmall, LinuxSmall, Live_Raizo, LMDE, Lunar, MacOS, MacOS2, MacOS2Small, MacOSSmall, Mageia, MageiaSmall, MagpieOS, Mandriva, Manjaro, ManjaroSmall, MassOS, MatuusOS, MaUI, Meowix, Mer, Minix, Mint, MintOld, MintSmall, MiracleLinux, MOS, Msys2, MX, MXSmall, Namib, Nekos, Neptune, NetBSD, NetRunner, Nitrux, NixOS, NixOS_small, NixOsOld, NixOsSmall, Nobara, NomadBSD, Nurunner, NuTyX, Obarun, OBRevenge, OmniOS, OpenBSD, OpenBSDSmall, OpenEuler, OpenIndiana, OpenKylin, OpenMamba, OpenMandriva, OpenStage, OpenSuse, OpenSuseLeap, OpenSuseSmall, OpenSuseTumbleweed, OpenWrt, OPNsense, Oracle, Orchid, OrchidSmall, OS_Elbrus, OSMC, OSX, OSXSmall, PacBSD, Panwah, Parabola, ParabolaSmall, Parch, Pardus, Parrot, Parsix, PCBSD, PCLinuxOS, PearOS, Pengwin, Pentoo, Peppermint, PhyOS, Pisi, PNMLinux, Pop, PopSmall, Porteus, PostMarketOS, PostMarketOSSmall, Proxmox, PuffOS, Puppy, PureOS, PureOSSmall, Q4OS, Qubes, Qubyt, Quibian, Radix, Raspbian, RaspbianSmall, RavynOS, Reborn, RebornSmall, RedCore, RedHatEnterpriseLinux, RedHatEnterpriseLinux_old, RedstarOS, Refracted Devuan, Regata, Regolith, RhaymOS, RockyLinux, RockyLinuxSmall, RosaLinux, Sabayon, Sabotage, Sailfish, SalentOS, SalientOS, Salix, SambaBOX, Sasanqua, Scientific, Semc, Septor, Serene, SharkLinux, ShastraOS, Siduction, SkiffOS, Slackel, Slackware, SlackwareSmall, Slitaz, SmartOS, Soda, Solaris, SolarisSmall, Solus, SourceMage, Sparky, Star, SteamOS, StockLinux, Sulin, Suse, SuseSmall, Swagarch, T2, Tails, TeArch, TorizonCore, Trisquel, TuxedoOS, Twister, Ubuntu, Ubuntu2Old, Ubuntu2Small, UbuntuBudgie, UbuntuCinnamon, UbuntuGnome, UbuntuKde, UbuntuKylin, UbuntuMate, UbuntuOld, UbuntuSmall, UbuntuStudio, UbuntuSway, UbuntuTouch, UbuntuUnity, Ultramarine, Univalent, Univention, UOS, UrukOS, Uwuntu, Vanilla, Venom, VenomSmall, Vnux, Void, VoidSmall, Vzlinux, WiiLinuxNgx, Windows, Windows11, Windows11Small, Windows8, Windows95, Xenia, Xferience, YiffOS, Zorin
Run fastfetch --print-logos
to print them
Package managers
apk, brew, Chocolatey, dpkg, emerge, eopkg, Flatpak, MacPorts, nix, opkg, Pacman, paludis, pkg, pkgtool, rpm, scoop, Snap, xbps
WM themes
DWM (Windows), KWin, Marco, Muffin, Mutter, Openbox (LXDE, LXQT & without DE), Quartz Compositor (macOS), XFWM
DE versions
Budgie, Cinnamon, Gnome, KDE Plasma, LXQt, Mate, XFCE4
Terminal fonts
Alacritty, Apple Terminal, ConEmu, Deepin Terminal, foot, Gnome Console, Gnome Terminal, iTerm2, Kitty, Konsole, LXTerminal, MATE Terminal, mintty, QTerminal, st, Tabby, Terminator, Termux, Tilix, TTY, Warp, WezTerm, Windows Terminal, XFCE4 Terminal, Yakuake
Building
fastfetch uses cmake
for building. pkg-config
is recommended for better library detection. The simplest steps to build the fastfetch and flashfetch binaries are:
mkdir -p build
cd build
cmake ..
cmake --build . --target fastfetch --target flashfetch
If the build process 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.
Building on Windows
Currently GCC or clang is required (MSVC is not supported). MSYS2 with CLANG64 subsystem (or CLANGARM64 if needed) is suggested (and tested) to build fastfetch. If you need Windows 7 / 8.x support, using MINGW64 is suggested.
- Install MSYS2
- Open
MSYS2 / CLANG64
(notMSYS2 / MSYS
, which targets cygwin C runtime) - Install dependencies
pacman -Syu mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-pkgconf mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-vulkan-loader mingw-w64-clang-x86_64-opencl-icd
Follow the building instructions of Linux next.
Packaging
Repositories
Manual
- DEB / RPM package:
cmake --build . --target package
- Install directly:
cmake --install . --prefix /usr/local
FAQ
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