Code Monkey home page Code Monkey logo

cutefetch's Introduction

cutefetch

Tiny coloured fetch script with cute little animals

This script works on both Linux and Mac OS systems. Enjoy~ :3

A "fork" of elenapan's bunnyfetch script. Uses improvements from strafe/bunnyfetch and adds Mac OS compatibility

image

Install

  • Place the fetch script somewhere on your $PATH (I use $HOME/.local/bin/)
  • Make it executable by running chmod a+x ./cutefetch in the directory it is located
  • It is recommended to use a NerdFont as your terminal font if the glyphs are not being displayed properly.

Usage

After installation, run cutefetch in the terminal.

Command line arguments can be passed to specify the animal and eye style.

  • Valid animal arguments: --kitty, -k, --bunny, -b
  • Valid eye styles: integers from 0 to 13

Examples: cutefetch --kitty 6, cutefetch -k 6, cutefetch prints the default kitty. cutefetch --bunny 0, cutefetch -b 0, cutefetch -b, etc. prints a bunny.

Output of cutefetch --help

Cutefetch - Tiny coloured fetch script to display sysinfo

USAGE: cutefetch [MODE] [EYE_SELECTOR]

    [MODE]:
        -h,  --help: print this help message
        -k,  --kitty: show kitty ascii art with sysinfo
        -k2, --kitty2: show kitty ascii art with sysinfo (2nd variant)
        -b,  --bunny: show bunny ascii art with sysinfo
        -p,  --puppy: show puppy ascii art with sysinfo
        -s,  --simple: show sysinfo with no ascii art
        -v,  --version: print the version number
        no option: same as -k, --kitty
        unkown option: print this help message
                       and return status code 1

    [EYE_SELECTOR] (optional):
        (numbers from 0 to 14)
         0:  . .
         1:  · ·
         2:  ^ ^
         3:  - -
         4:  ~ ~
         5:  * *
         6:  ^.^
         7:  -.-
         8:  ~.~
         9:  *.*
        10:  0.0
        11:  0 0
        12:  o o
        13:  o.o
        14:  ° o
        no/other number:
             ^.^ (kitty)
          or . . (bunny)
          or 0 0 (puppy)

Extras

cutefetch $(printf '-k\n-b\n-p' | shuf -n 1) $(shuf -i 1-13 -n 1) prints a random animal with random face. Add this to your .zshrc, .bashrc, config.fish, etc. to spice up your shell. :3

this wonderful idea of randomizing the animal and face was contributed by Westofer

Screenshots

desktop

Links:

cutefetch's People

Contributors

cybardev avatar yogeshdnumb 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cutefetch's Issues

Cutefetch Look broken

Hello, is there any possible fix for this issue? I didn't tamper with source code, What I do after downloading the script is copied it to my home bin folder.

Distro : Zorin OS 16.1 Lite
Terminal : xfce4-terminal
Shell : zsh

image

resolution not available

It was working fine some time ago but now I'm not able to get any output for xdpyinfo | grep 'dimensions' | grep -o '[0-9]+x[0-9]+' | head -n 1

I think some update to xdpyinfo changes the format of output so should I change the regex

feat: use getopt to parse command-line arguments

Description

Given that the complexity of this script has been rising recently, we think it's big enough to warrant using getopt to parse command-line arguments.

Changes Requested

  • use getopt to parse command-line arguments
  • try to make certain combinations invalid, e.g. cutefetch --random eyes paired with an eye number. (randomizer to be implemented for #9)

Acceptance Criteria

  • script uses getopt to parse command-line arguments
  • rejects invalid flag combinations

Resources

Blockers

  • Blocks: #9
  • Blocked-by: N/A

feat: add randomizer function

Description

We want a function in the script that uses shuf to randomize the animals and eyes. Currently we only have a note under the Extras section in the readme.

Code suggested by @Kalitsune in #8 (comment):

# welcome screen
fetch () {
  eyes=(0 1 2 3 4 6 7 8 11 12 14)
  cutefetch -k2 $(shuf -e "${eyes[@]}" -n 1)
}
fetch

This radomizes the eyes but not the animal. Ideally, we would also randomize the animal. Optionally, we can make it a flag with args, like -r eyes and -r animal, with the default -r and -r all having both effects.

Changes Requested

  • add randomizer function called randomfetch or randfetch
    (either is fine but I prefer randomfetch since it's more explicit and clear)
  • use two lists: one for eyes, one for animal
  • add randomizer flag that takes optional args to randomize eyes or animal
  • flag default (without args) should be to randomize both

Acceptance Criteria

  • randomizes animal with -r animal and --random animal flags
  • randomizes eyes with -r eyes and --random eyes flags
  • randomizes both with -r, -r all, --random, and --random all flags
  • existing features are unaltered and continue to work

Blockers

  • Blocks: N/A
  • Blocked-by: #10

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.