5 releases
0.0.6 | Jun 7, 2024 |
---|---|
0.0.5 | Jan 26, 2023 |
0.0.3 | Sep 20, 2022 |
0.0.2 | Oct 11, 2021 |
#89 in Operating systems
301 downloads per month
21KB
454 lines
Font Manager CLI
A simple CLI to manage fonts on Linux
WIP!!
This proyect is already usable, but breaking changes are expected.
Installation
Using cargo
cargo install font-manager
About
This utility simplifies managing fonts inside of the terminal.
Built-in support for nerd fonts on the nerd font aggregator proyect
All the fonts will be installed under the $HOME/.fonts/
creating it if it doesn't exist
Usage
use help to understand all options
font-manager --help
Install
you can install nerd fonts that are contained on the project just by giving the name:
font-manager install --nerd FiraCode
or install any font giving the path to a zip file containing the fonts:
font-manager install --from-zip /path/to/zipfile/font.zip
If you don't want to manually download the font, you might pass the url containing the zip file
Ex: the JetbrainsMono font
font-manager install --from-url https://download.jetbrains.com/fonts/JetBrainsMono-2.242.zip
Flags
These flags can be sent for any installation option.
--use-otf
By default, this will ignore any .otf
fonts to avoid conflicts of the same font with .ttf.
If you prefer the .otf
, or the package only contains .otf
, send this flag and .otf
fonts will be installed ignoring .ttf
font-manager install --nerd FiraCode --use-otf
--interactive
By default, this will install everything in the package (taking into account the otf/ttf preference). If you prefer to select the specific files to be installed, send this flag
font-manager install --nerd FiraCode -i
if interactive is sent, the --use-otf
will be ignored if also sent, as you will be asked for each file
--delete-zip
Installing nerd fonts won't leave any residual files, but downloading will leave the zip file, you can indicate a flag
to delete this. (this flag also works for --from-zip
if you want to delete the zip file as well)
font-manager install --from-url https://download.jetbrains.com/fonts/JetBrainsMono-2.242.zip --delete-zip
font-manager install --from-zip /path/to/zipfile/font.zip --delete-zip
Uninstall
any installed nerd font can be removed just by giving the font name
font-manager uninstall FiraCode
If you wish to remove any other installed font, you need to give the exact folder name containing the fonts on the $HOME/.fonts/
folder.
Usually, it will use the zip name as the name
font-manager uninstall JetBrainsMono-2.242
Dependencies
~15–28MB
~409K SLoC