Skip to content

CerebruxCode/nerd-font-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖋️Install and manage Nerd Fonts

This project helps you easily download, install, and list high-quality Nerd Fonts for coding. Only the best mono fonts are included, with a preference for OpenType (.otf) files when available.

NOTE: If you just want to install some Nerd Fonts use Embelish

Embelish

Install with:

flatpak install flathub io.github.getnf.embellish

Features

  • Easy Installation: Download and install only the mono font files you want.
  • Clean Setup: Installs fonts to your user fonts directory (~/.local/share/fonts/), keeping your system tidy.
  • Smart Selection: Prefers .otf over .ttf files for better compatibility and quality.
  • Font Listing: List installed mono fonts in a clean, markdown-formatted table.
  • Filter & Search: Quickly filter fonts by name or show all details.
  • Find a glyph: Find a glyph by name

There is 2 tools nerd-tool and list-fonts.

Usage of nerd-tool

This is the main tool

Usage

$ ./nerd-tool --help

This script helps managing Nerd fonts.

Usage: ./nerd-tool [command] [options]

Commands:
  menu                   Displays the main interactive menu.
  install                Initiates an installation using 'fonts.txt' by default.

Options for 'install' command:
  -f, --file <filename>  Specify a custom file for installation.

Other options:
  -h, --help             Displays this help message

1. Install Fonts

Run the install script to download and install all fonts listed in fonts.txt or any file specified with -f:

./nerd-tool install [-f ./fonts.txt]

Fonts will be downloaded to the fonts/ directory and installed to ~/.local/share/fonts/<FontName>.

The primary use case is to automate a new install.

2. Menu Operation

When you run:

./nerd-tool

Interactive Menu Screenshot

You'll see an interactive menu (powered by gum) that lets you:

  • font-config: Many fonts in the system now have nerd symbols

  • choose-font: Allow to choose a font for your gnome-terminal Choose font

  • list-xx: List Nerd Only fonts List fonts Notice that have installed both Ubuntu and Ubuntu Nerd font. If we install the font-config rules the 2nd is not need it.

  • search: Search a glyph Search

Use the arrow keys to navigate and follow on-screen prompts to complete actions.

Usage of list-fonts

This tool help you locate font files. It'a a fancy replacement for fc-list

Font List

Options

./list-mono-fonts
./list-mono-fonts --all
./list-mono-fonts --filter Fira

License

Fonts are distributed under their respective licenses. Scripts in this repo are GPL3 Licence licensed.


Happy coding with beautiful fonts!

About

A tool to manage and install your Nerd fonts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages