IMPORTANT!#
Explained scripts will not recieve more developments since I converted them to Ansible Playbooks. Please visit the Ansible Repository here.
It's currently only availabe in the development branch under Bash-Scripts to Ansible.
ASCII Generator
Welcome to my simple ASCII Generator. At the moment it's just a simple script that asks for input text and gives you back the centered text.
Ressource
The Repo for the font that is currently used can be found here.
Use
First you need to make the file executable with chmod +x ascii-generator
Then install the font using your favorite method. Depending on your OS you can either double click and then select install or you'll need to put it in either your local or system folder.
After that, simply execute the script in your terminal via ./ascii-generator, enter the text you want to have converted and you're done.
You should now see the text in ASCII Art inside your terminal. Feel free to use it wherever you please. For example paste it into a file and use it in your Neovim config to display the "logo" at startup just like I did.
Sixel-Converter
Note that this is only a quick and dirty script and might not work perfectly!
Requirements For this script to be able to work, you'll need the following packages:
- fastfetch
- chafa
- bc On Arch and arch based distros, you can simple run the following command to install that (priviledged rights required)
sudo pacman -S fastfetch chafa bc
Default Variable
By default, only the filepath for fastfetchs assests folder (must be manually created) is declared.
At the moment, it points to a custom direction so you might want to change that path.
You will need to create that folder via mkdir -p ~/.config/fastfetch/assets/ and then place the image you want to convert inside of that.
Gathering the needed information
First the script asks you for the filename. It is important that you only give the name, without the filetype.
Then it asks you for the filetype. You don't need to add a dot at the beginning, just type png or jpg for example.
Now it will ask you about the size. This is not the size of the file but the size it will be in sixel format! I recommend testing if 40 works for you. From my experience, this will work good most of the time.
Converting and displaying the image
In the background, it will now convert the image to a sixel format with the same name that you gave it. After this is done, a fastfetch command will be executed showing the new fastfetch design you just created.