This script is a customized version of the popular neofetch
utility. It displays system information alongside a custom ASCII art image with specified colors.
- Custom Image: Converts a specified image to ASCII art.
- Custom Colorscheme: Allows customization of text and ASCII art colors.
- System Information: Displays various system details such as OS, distro, kernel, CPU, GPU, memory, disk usage, uptime, shell, resolution, terminal, and package count.
jp2a
: A command-line tool to convert images to ASCII art.xrandr
: Utility to get screen resolution.- Ensure the script is executed in an environment where these tools are available.
-
Install
jp2a
andxrandr
if not already installed:sudo apt-get install jp2a x11-xserver-utils
-
Save the script to a file, for example,
fetch.sh
. -
Make the script executable:
chmod +x fetch.sh
-
Update the
IMAGE
variable in the script to point to your desired image file:IMAGE=your_image.png
-
Customize the colors by updating the
imageColor
,TextColor
, andSpec
variables:imageColor=$RED TextColor=$YELLOW Spec=$BROWN_ORANGE
-
Run the script:
./fetch.sh
Note: Make sure the IMAGE file path is correct and that the image is accessible. Customize the colors as needed to suit your preference.
To add the fetch.sh
script to your PATH as diagofetch
:
-
Move the script to a directory in your PATH:
mv fetch.sh /usr/local/bin/diagofetch
-
Make it executable:
chmod +x /usr/local/bin/diagofetch
-
Now you can use
diagofetch
from any directory.