Giter Site home page Giter Site logo

fetcho's Introduction

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

fetcho's People

Contributors

callmeechocodes avatar theredspecial0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

theredspecial0

fetcho's Issues

Add .deb package

This shouldn't be too hard but I'm lazy

Progress Tracker

  • Figure out how to create a deb file with make
  • Add it to the github workflow

Add configuration

I want to make this configurable but I'm not sure how.

Option 1: Suckless style

Suckless style means configuring with a config.h file in the source code

Pros:

  • Easy to implement
  • No slowdown because we don't really need to read a config file

Cons:

  • You would have to recompile every time you change config
  • Packaging becomes pretty much worthless

Option 2: Neofetch style

Neofetch style means using a traditional config file

Pros:

  • Easy to use

Cons:

  • Causes slowdown when reading the file
  • Hard to implement

Option 3: ENVVAR style

take a wild guess as to what this means

Pros:

  • Easy to implement
  • Very small amount of slowdown

Cons:

  • Can be annoying to use with big configs

Progress Tracker

  • Choose style
  • Implement system to define config options in an easy way
  • Add options!

host module not working on AUR build

Whenever I try to add the host module, it does not want to load and says "host" is not a valid module! when i run fetcho. Is it just something on my end, and if so, how can I check?

Running arch linux on a laptop with the linux-zen kernel, all packages up to date.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.