⭐ Clearus 1.0
0
README.md
Normal file
93
clearus
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Dedicated to my friend Clearus. Thanks for unblocking me fam! Also me and leafus are JUST FRIENDS. JUST FRIENDS...
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
RESTORE='\033[0m'
|
||||||
|
HBLACK='\e[1;90m'
|
||||||
|
HRED='\e[1;91m'
|
||||||
|
HGREEN='\e[1;92m'
|
||||||
|
HYELLOW='\e[1;93m'
|
||||||
|
HBLUE='\e[1;94m'
|
||||||
|
HPURPLE='\e[1;95m'
|
||||||
|
HCYAN='\e[1;96m'
|
||||||
|
HWHITE='\e[1;97m'
|
||||||
|
|
||||||
|
# Get terminal size
|
||||||
|
height=$(tput lines)
|
||||||
|
width=$(tput cols)
|
||||||
|
|
||||||
|
# play BELL.
|
||||||
|
tput bel
|
||||||
|
|
||||||
|
clearus() {
|
||||||
|
# Clear the terminal
|
||||||
|
clear
|
||||||
|
|
||||||
|
# Ensure the 'yiff' directory is present and not empty
|
||||||
|
if [ ! -d "yiff" ] || [ -z "$(ls -A yiff 2>/dev/null)" ]; then
|
||||||
|
echo "Error: 'yiff' directory is missing or empty."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Select a random image from the directory
|
||||||
|
yiff=$(find yiff -type f | shuf -n 1)
|
||||||
|
|
||||||
|
# Check if jp2a is installed
|
||||||
|
if ! command -v jp2a &>/dev/null; then
|
||||||
|
echo "Error: jp2a is not installed. Install it and try again."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Display the image
|
||||||
|
jp2a --colors "$yiff" --size=${width}x${height}
|
||||||
|
}
|
||||||
|
|
||||||
|
version() {
|
||||||
|
printf "\n |\__/,| ( \n _.|o o |_ ) )\n-(((---(((--------\n\u2665$HRED Clearus v1.0\n$RESTORE\u2665 Developed by ${HCYAN}theridev$RESTORE (https://github.com/theridev)\nDedicated to Clearus: get fucked :3\n\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Parse arguments
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
case "$1" in
|
||||||
|
help)
|
||||||
|
echo "Spierdalaj czarnuhu :3"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
version | --version)
|
||||||
|
version
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
--height)
|
||||||
|
if [[ -n $2 ]]; then
|
||||||
|
height=$2
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
echo -e "$HRED ERROR: Argument for --height not provided.$RESTORE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
--width)
|
||||||
|
if [[ -n $2 ]]; then
|
||||||
|
width=$2
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
echo -e "$HRED ERROR: Argument for --width not provided.$RESTORE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo -e "$HRED ERROR: Unknown argument '$1'.$RESTORE"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
# Call clearus once
|
||||||
|
clearus
|
||||||
|
|
||||||
|
# One more dedication.
|
||||||
|
# I DEDICATE THIS PROJECT TO U LEAFUS I LOVE YOUUUUU (platonically)
|
||||||
|
# coding this on a VC was an awesome experience.
|
BIN
yiff/SPOILER_1344380bb0c8dc5f9f133f7c00dd981f.png
Normal file
After Width: | Height: | Size: 420 KiB |
BIN
yiff/SPOILER_471.png
Normal file
After Width: | Height: | Size: 262 KiB |
BIN
yiff/SPOILER_574265.png
Normal file
After Width: | Height: | Size: 344 KiB |
BIN
yiff/SPOILER_8a9f46361b85e78e47f4999358f3edf0.png
Normal file
After Width: | Height: | Size: 379 KiB |
BIN
yiff/SPOILER_8e2b24343b7b7b40ea99db38749c7f60.png
Normal file
After Width: | Height: | Size: 849 KiB |
BIN
yiff/SPOILER_90587dff9c9a0cb72a5abddb3f1ae71c.png
Normal file
After Width: | Height: | Size: 410 KiB |
BIN
yiff/SPOILER_9e4373b931221066a5ed4cdc8192e504.png
Normal file
After Width: | Height: | Size: 404 KiB |
BIN
yiff/SPOILER_IMG_20240827_125128_688.jpg
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
yiff/SPOILER_IMG_20241102_021930_378.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
yiff/SPOILER_IMG_20241203_224316_283.png
Normal file
After Width: | Height: | Size: 406 KiB |
BIN
yiff/SPOILER_IMG_20241211_135428.png
Normal file
After Width: | Height: | Size: 318 KiB |
BIN
yiff/SPOILER_RDT_20240802_0241477477867632268078727.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
yiff/SPOILER_SPOILER_image0.jpg
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
yiff/SPOILER_e1a25bf5c45243d60c65c8ee85a6fd98.png
Normal file
After Width: | Height: | Size: 338 KiB |
BIN
yiff/SPOILER_photo_2024-12-01_18-30-57.png
Normal file
After Width: | Height: | Size: 686 KiB |
BIN
yiff/SPOILER_u0cDkQCW.jpg
Normal file
After Width: | Height: | Size: 53 KiB |