Home

Awesome

Fetch-master 6000

Simple dilbert themed fetching tool for Linux and 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 the Wolf is taken from asciiart.eu ASCII art of the Astronaut is taken from this site

Screenshots

all.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 For Arch users its available in the AUR as fm6000

Via install script

sh -c "$(curl https://codeberg.org/anhsirk0/fetch-master-6000/raw/branch/main/install.sh)"

install script help page

sh -c "$(curl https://codeberg.org/anhsirk0/fetch-master-6000/raw/branch/main/install.sh)" -- -h

install script options

example

sh -c "$(curl https://codeberg.org/anhsirk0/fetch-master-6000/raw/branch/main/install.sh)" -- --install-path=/usr/bin --root

or

install_path=/usr/bin root=1 sh -c "$(curl https://codeberg.org/anhsirk0/fetch-master-6000/raw/branch/main/install.sh)"

Manually

with wget

wget https://codeberg.org/anhsirk0/fetch-master-6000/raw/branch/main/fm6000.pl -O fm6000

or

with curl

curl https://codeberg.org/anhsirk0/fetch-master-6000/raw/branch/main/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 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)

Say

fm6000 -say "Hello world!"

say.png

Geometry

geometry.png

Available Options

Available colors

black red green yellow blue magenta cyan bright_black bright_red bright_green bright_yellow bright_blue bright_magenta bright_cyan random

Randomization

For random color:

fm6000 -color "random"

or

fm6000 -c "random"

For random character:

fm6000 -random

or

fm6000 -r

For random ascii from a directory:

fm6000 --random-dir "directory_name"

or

fm6000 -rd "directory_name"

Troubleshooting

If your distro is not {arch, debian, fedora, freeBSD, gentoo, venom, solus} 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) Solus is already supported command to list all istalled packages is:

eopkg list-installed is slow because its prints a lot of info, use ls /var/lib/eopkg/package instead

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)

Can't locate experimental.pm

fm6000 uses experimental module to do a smartmatch for WMs .This module is pre-installed on most of the distros, if for some reason its not present. Use your package manager to install perl-experimental module.