ldm/rand0m
1
1
Fork
You've already forked rand0m
0
very very simple and very very lame snippet to print random images to the terminal (written to understand how arrays work in bash)
  • Shell 100%
2023年12月20日 08:49:18 +00:00
demo Upload files to "demo" 2023年12月17日 21:47:09 +00:00
img Upload files to "img" 2023年12月18日 16:12:52 +00:00
.gitignore Update .gitignore 2023年12月16日 08:01:38 +00:00
LICENSE Initial commit 2023年12月13日 08:08:14 +00:00
rand0m.sh Update rand0m.sh 2023年12月18日 15:42:05 +00:00
README.md Update README.md 2023年12月20日 08:49:18 +00:00

rand0m 💻

very very simple and very very lame snippet to print random image to the terminal

(written to understand how arrays work in bash)

Description 📝

bash script that randomly select one image from a specific directory and prints it to the terminal using Chafa image-to-text converter

you can run it on terminal startup by adding rand0m.sh to your .bashrc

Installation 🛠️

  • install Chafa in your system
  • git clone this repo (or just copy rand0m.sh and use your own images)
  • edit the script by changing the images directory path
  • make the script executable with chmod +x rand0m.sh
  • have fun

Demo 🎞️

HOWTO:

HOWTO

STARTUP:

STARTUP

USING ANIMATIONS:

ANIMATIONS

Known issues

if there are spaces in the file or directory names then it doesn't work (but I don't care, I won't fix this issue)

Notes

all the repo images are free and I got them from Iconfinder, Icon-Icons, Animated Noto Emoji website