Skip to content

DarthHelmut/fetch-master-6000

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch-master 6000

Simple fetching tool

Works on Linux & BSD

ASCII art of Dilbert is taken from the Kakoune text editor
ASCII art of Alice, PHB is taken from Christopher Johnson's collection
ASCII art of wolf is taken from asciiart.eu

Screenshots

all1.png al2l.png arts.png

Installation

Its just a perl script download it make it executable and put somewhere in your $PATH

For Gentoo refer to the XDream's Repository

Via install script

bash -c "$(curl https://raw.githubusercontent.com/anhsirk0/fetch-master-6000/master/install.sh)"

Manually

with wget

wget https://raw.githubusercontent.com/anhsirk0/fetch-master-6000/master/fm6000.pl -O fm6000

or

with curl

curl https://raw.githubusercontent.com/anhsirk0/fetch-master-6000/master/fm6000.pl --output fm6000

making it executable

chmod +x fm6000

copying it to $PATH (~/.local/bin/ , this step is optional)

cp fm6000 ~/.local/bin/

Usage

if fm6000 in $PATH

fm6000

runing the script

./fm6000

or

perl fm6000

or

bash fm6000

Displaying custom ASCII from file

fm6000 -f wolf.txt

wolf.png

kak wolf.txt

rawwolf.png

fm6000 -f arch_logo.txt

arch_logo.png

About custom ascii_art file

every line should be of same length (use spaces if needed)
atleast 10 lines is required (use empty spaces lines if needed)

Colors

color1.png

color2.png

Geometry

geometry.png

Available Options

-h or --help for help
-c or --color for base color
-w or --wally display Wally
-dog or --dogbert display Dogbert
-al or --alice display Alice
-phb or --phb display Pointy Haired Boss
-as or --asok display Asok
-r or --random display Random art
-f or --file display ascii art from file

-o or --os for os
-k or --kernel for kernel
-de or --de for desktop environment
-s or --shell for shell
-u or --uptime for uptime
-pa or --package for package count
-n or --not_de to use 'WM' instead of 'DE'
-v or --vnstat to use vnstat instead of kernel

-m or --margin Space on the left side of info
-g or --gap Spaces between info and info_value
-l or --length Length of the board (should be greater than 14)

option can be of single character or more
for ex: -help can be used via -h -he -hel -help as long as it avoids ambiguity
for ex: -d is ambiguous (-dogbert , -de) so atleast 2 characters should be specified

Available colors

black red green yellow blue magenta cyan white random

bright_black bright_red bright_green bright_yellow
bright_blue bright_magenta bright_cyan bright_white

Randomization

For random color use:

fm6000 -color random

or

fm6000 -c random

For random character use:

fm6000 -random

or

fm6000 -r

Troubleshooting

If your distro is not {arch, debian, fedora, freeBSD} based fetch-master-6000 wont be able to detect number of packages In that case you have to specify number of packages yourself For example: On Solus (eopkg) command to list all istalled packages is:

eopkg list-installed

to count packages pipe the list to wc -l

eopkg list-installed | wc -l

make it an alias to avoid typing it everytime

alias fm6000='fm6000 -p $(eopkg list-installed | wc -l)'

Similiarly for other distros

fm6000 -p $(pacman -Q | wc -l)

output out2.png

About

Simple Dilbert themed system info-fetching tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 92.5%
  • Shell 7.5%