Nerd Fonts

Nerd Fonts provide support for icons in your text-based programs by replacing some of the code points that no one cares about with more useful glyphs.

Examples

nvim-tree

nvim tree

dwmblocks

dwmblocks

zsh

zsh

Installation

If you want to try out all the font families, the Nerd Fonts Complete AUR Package is easy to install with yay.

$ yay -S nerd-fonts-complete

You could also find a more minimal install with just the font you want. For example, my laptop has a slow wifi card so I just installed this package.

$ yay -S ttf-nerd-fonts-hack-complete-git

Check out the Arch Wiki’s Fonts page for more information on how fonts actually get installed on your system.

Usage

If you’ve got Hack Nerd Font installed, you should notice that this web page switched to using it over the default monospace font.

Once you’ve got the fonts installed, you should be able to find them in your font listing.

$ fc-list | grep Nerd

/usr/local/share/fonts/Hack Bold Nerd Font Complete.ttf: Hack Nerd Font:style=Bold

Add them to programs using the name. For example in DWM’s config.h

static const char *fonts[]          = { "Hack Nerd Font:size=11" };
static const char dmenufont[]       = "Hack Nerd Font:size=11";