Coder Social home page Coder Social logo

wayfetch's Introduction

wayfetch

A neofetch rewrite that is still lacking some features

The "way" prefix has nothing to do with Wayland

Example: example output

example 2

Available Logos

  • Tux
  • Big tux
  • Arch Linux
  • Artix Linux
  • Debian GNU/Linux
  • Devuan
  • Fedora GNU/Linux
  • FreeBSD
  • Gentoo Linux
  • GNU Guix
  • Hyperbola GNU/Linux-libre
  • Parabola GNU/Linux-libre
  • Kiss
  • Manjaro Linux
  • Linux Mint
  • OpenSUSE
  • Pop!_OS
  • Qubes OS
  • Redhat Linux
  • Trisquel GNU/Linux

Although not every logo of every distro/OS is ported, it is relatively easy to do so, even with 0 programming experience. If you need a ported logo, you can do it by yourself and we'll gladly accept it (see Contributing Logos at the bottom)

Configuration

Wayfetch is configured using config.h. The first include defines which logo is used. The order function defines the order of the entries. Simply change the order of the entries

Instead you can also use the Autoconfigure script

Performance

Using hyperfine neofetch uses 140ms and wayfetch 1ms

$ time -p wayfetch &>/dev/null
real 0.01
user 0.00
sys 0.00
$ time -p neofetch &>/dev/null
real 0.53
user 0.28
sys 0.27
hyperfine "neofetch --config none"
Benchmark #1: neofetch --config none
  Time (mean _ _):     368.7 ms _  13.7 ms    [User: 202.7 ms, System: 172.0 ms]
  Range (min _ max):   344.3 ms _ 387.7 ms    10 runs
hyperfine "wayfetch"
Benchmark #1: wayfetch
  Time (mean _ _):       3.2 ms _   2.3 ms    [User: 0.9 ms, System: 3.0 ms]
  Range (min _ max):     1.3 ms _  17.8 ms    155 runs

Contributing Logos

  • Every line should have equal length, otherwise it's going to mess up the printing.
  • Every logo should have an extra "blank" row full of spaces.
  • Modify "#define ROWS n" to rows of the logo without counting the last "blank" row.
  • Multicolor Logos are a bit harder to do, see mint.h as an example. It's best to start with a normal no color logo and then add the coloring, to preserver spacing.
  • Name files as OS or distro. For example: Linux Mint -> "mint.h", Parabola GNU/Linux-libre -> "parabola.h".

Displaying package count currently only works with Pacman.

Criticism is encouraged.

wayfetch's People

Contributors

bielxvf avatar billy02357 avatar palanixyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jahway603

wayfetch's Issues

Matching "PRETTY_NAME" instead of "NAME" in /etc/os-release

void os() {
                FILE *os = fopen("/etc/os-release","r");
                char buffer[150];
                // fscanf(os, "NAME=\"%[^\"]+", buffer);
                fscanf(os, "PRETTY_NAME=\"%[^\"]+", buffer);
                snprintf(info[i], 149, COLOR"OS"SEPARATOR" "CLOSE"%s %s", buffer, u.machine);
                fclose(os);
                i += 1;
}

I'm trying to match the content within the double quotes after "PRETTY_NAME" in /etc/os-release but the same regex doesnt seem to work.
What am I doing wrong? :^)

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.