Skip to content

CallMeEchoCodes/fetcho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetcho

A simple fetch made in C++

Image

Release Stars License

Installing

Arch-based

If you use an AUR helper, use it instead, e.g paru -S fetcho or paru -S fetcho-git

git clone https://aur.archlinux.org/fetcho.git # use fetcho-git.git instead for latest commit
cd foto
makepkg -si

Debian-based

A .deb package is planned for an easier installation

sudo apt install build-essential libprocps-dev
git clone https://github.com/CallMeEchoCodes/fetcho.git
cd foto
git checkout "$(git describe --tags --abbrev=0)" # checkout to latest tag, omit for latest commit
sudo make install RELEASE=1

Other distros

Install libprocps (also known as procps-ng) using your package manager before you do this.

git clone https://github.com/CallMeEchoCodes/fetcho.git
cd fetcho
git checkout "$(git describe --tags --abbrev=0)" # checkout to latest tag, omit for latest commit
sudo make install RELEASE=1

Customizing

Fetcho is customized using environment variables. These can be set by adding a line like this to your shells configuration file (eg. .bashrc, .zshrc, config.fish):

export VARIABLE_NAME="variable value"

FO_MODULES

FO_MODULES defines the modules that should be shown. It is a string that contains a list of modules seperated by a space. The modules will be shown from first to last in the variable.

Valid modules:

os

kernel

uptime

shell

ram

de

editor

host

arch

Default:

export FO_MODULES="os kernel uptime shell ram de editor host arch"

FO_NERDFONTS

FO_NERDFONTS is used to decide if icons should be shown. If it is set to either "true" or "1" then icons will be shown. Icons are automatically disabled if you are in a TTY regardless of what this variable is set to.

Default:

export FO_NERDFONTS="false"

FO_LINETEXT

FO_LINETEXT is the character used for the seperator line between the username@hostname and the modules. Make sure it is only 1 character or strange behavior can occur.

Default:

export FO_LINETEXT=""

Acknowledgments

  • mekb-turtle for helping me with C stuff I didn't understand
  • angelofallars for creating treefetch, which inspired the design of fetcho (mainly the seperator)
  • dylanaraps for pretty much creating fetch programs