GithubHelp home page GithubHelp logo

deepjyoti30 / yaf Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 2.0 253 KB

Yet another system fetch that is minimal and customizable

License: MIT License

Go 98.47% Makefile 1.53%
system fetch golang cli system-information system-info system-info-monitoring screenshot script distro

yaf's Introduction

Yaf - Yet Another Fetch

yaf

Brief

Yet Another Fetch is a tool that fetches system information and shows it in a beautiful way for some extra upvotes on r/unixporn. It is extremely minimal and customizability is it's strong feature. Don't want to show your disk usage? Hide it with the exclude flag. Want to change the separator between the os and Arch Linux field? Use separator flag.

yaf is written in Golang. (Because everyone is writing a fetch in some language, why not Go then?)

Installation

Binary

Get the latest release binary from GitHub and use it on your system. Yes, as simple as that.

Arch Linux

yaf is available on AUR here and can be installed with:

yay -S yafetch

or

paru -S yafetch

NOTE: yaf was taken so had to publish with yafetch name.

Gentoo Linux

You can install yaf, by adding the overlay to layman with this command

sudo layman -a thamognya

and then you can do

sudo emerge -a yaf

It will ask you to unmask it, as it is still testing for bugs (this is standard procedure for new ebuilds) hence you can unmask it by doing

sudo emerge yaf --autounmask && dispatch-conf

then type u

and then emerge it with the following command

sudo emerge -a yaf --autounmask

and then install the package how you would normally.

Manual

If you wish, you can install the package manually using the following:

  • Clone the repo: git clone [email protected]:deepjyoti30/yaf.git
  • Cd into the repo and use make to install the package: cd yaf && make install

NOTE: You might want to use the mighty sudo with the make command above.

Usage

Usage of yaf:
  -exclude disk os
    	Exclude the passed fields from output. Values should be space separated, eg: disk os (default "username hostname")
  -key-prefix string
    	Prefix to be set before the key is printed (default "▪ ")
  -no-color
    	Disable showing colors in the output
  -separator string
    	Separator to be used between the key and the value (default "  ")

Support

If you like this package and my other works, your support would be appreciated!

undefined undefined undefined

Contribution

Your contribution would be appreciated. Consider taking a look at the guidelines before opening a PR. If you just want a new feature added, you can open a feature request!

yaf's People

Contributors

clyhtsuriva avatar deepjyoti30 avatar thamognya avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

yaf's Issues

Yaf on windows can't read kernel

When i run yaf it says :
couldn't read kernel version
error occurred while reading uptime file
couldn't read the memory file

@PowerEdgeT100
━━━━━━━━━━━━━━

▪ kernel not found
▪ shell
▪ uptime
▪ memory
▪ disk
▪ os windows

This happens even if i give it "-exclude kernel"

yaf_cant_read_kernel.mp4

[Feature Request]: Gentoo Ebuild

I would like to ask for permission to develop and later on add an ebuild for Gentoo users to install this fetching app. This would allow Gentoo users to install this fetching package from their portage package manager instead of building it from source by themselves.

enhancement: choosing the install directory

As of today, it's not possible to change the install directory except from manually modifying the Makefile.

I propose to add the DESTDIR variable set with /usr/bin by default.
Therefore, to change it, a user will simply have to set the variable while calling make if he desires to.

Example :

make install DESTDIR="/home/user/.local/bin"

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.