-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFastCat-FastFetch-Themes
More file actions
106 lines (95 loc) · 3.51 KB
/
FastCat-FastFetch-Themes
File metadata and controls
106 lines (95 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/bin/bash
# ULTIMATE COLOR PALETTE 🎨
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
MAGENTA='\033[0;35m'
CYAN='\033[0;36m'
WHITE='\033[1;37m'
PINK='\033[1;35m'
BOLD='\033[1m'
DIM='\033[2m'
ITALIC='\033[3m'
UNDERLINE='\033[4m'
BLINK='\033[5m'
REVERSE='\033[7m'
STRIKETHROUGH='\033[9m'
# GRADIENT COLORS 🌈
BRIGHT_RED='\033[1;31m'
BRIGHT_GREEN='\033[1;32m'
BRIGHT_YELLOW='\033[1;33m'
BRIGHT_BLUE='\033[1;34m'
BRIGHT_MAGENTA='\033[1;35m'
BRIGHT_CYAN='\033[1;36m'
# BACKGROUND COLORS 🎭
BG_RED='\033[41m'
BG_GREEN='\033[42m'
BG_YELLOW='\033[43m'
BG_BLUE='\033[44m'
BG_MAGENTA='\033[45m'
BG_CYAN='\033[46m'
BG_WHITE='\033[47m'
NC='\033[0m' # No Color
# EPIC FUNCTIONS 🚀
rainbow_text() {
local text="$1"
local colors=("$BRIGHT_RED" "$BRIGHT_YELLOW" "$BRIGHT_GREEN" "$BRIGHT_CYAN" "$BRIGHT_BLUE" "$BRIGHT_MAGENTA")
local result=""
for (( i=0; i<${#text}; i++ )); do
local color_index=$((i % 6))
result+="${colors[$color_index]}${text:$i:1}"
done
echo -e "$result$NC"
}
typewriter_effect() {
local text="$1"
local color="$2"
for (( i=0; i<${#text}; i++ )); do
echo -ne "${color}${text:$i:1}${NC}"
sleep 0.05
done
echo ""
}
loading_bar() {
local duration=$1
local message="$2"
local color="$3"
echo -ne "${color}${message} ${NC}"
for i in {1..20}; do
echo -ne "${BRIGHT_CYAN}█${NC}"
sleep $(echo "scale=2; $duration/20" | bc)
done
echo -e " ${GREEN}✓${NC}"
}
# CLEAR SCREEN AND START THE SHOW!
clear
rm -rf /tmp/FastCat
cd /tmp
#echo "┌───────────────────────────────────────────────────┐"
#typewriter_effect " WELCOME TO FASTCAT AUTOCONFIGURATOR⛛ │"
#typewriter_effect " THEMING UTILITY FOR FASTFETCH CLI ⛛ │"
#echo "└───────────────────────────────────────────────────┘"
#typewriter_effect " ⟹ WELCOME TO FASTCAT AUTOCONFIGURATOR │" "$BRIGHT_GREEN"
#typewriter_effect " ⟹ THEMING UTILITY FOR FASTFETCH CLI │" "$BRIGHT_GREEN"
echo -e "${PINK} ───────── ⛛ F A S T C A T ⛛ ───────── "
echo -e "${BRIGHT_CYAN}${BOLD}Initializing FastCat in ${NC}"
for i in {2..1}; do
echo -ne "${BRIGHT_GREEN}${BOLD}${i}${NC} "
#sleep 1
done
echo -e "${BRIGHT_GREEN}${BOLD} EXECUTING FASTCATS ${NC}"
echo ""
echo -e "${BRIGHT_BLUE}${BOLD}┌─────────────────────────────────────────────┐${NC}"
echo -e "${BRIGHT_BLUE}${BOLD}│${NC} ${BRIGHT_CYAN}Cloning FastCat git repo to /tmp${NC} ${BRIGHT_BLUE}${BOLD}│${NC}"
echo -e "${BRIGHT_BLUE}${BOLD}└─────────────────────────────────────────────┘${NC}"
echo -e "${BLUE}Cloning FastCat git repo to /tmp -->${NC}"
git clone --depth 1 https://github.com/m3tozz/FastCat.git && cd FastCat && bash ./fastcat.sh --shell
echo ""
echo -e "${GREEN}${BOLD}FastCat successfully customized FastFetch!${NC}"
echo ""
echo -e "${YELLOW}Cleaning up fastcat files${NC}"
echo ""
rm -rf /tmp/FastCat && sleep 8 && cd
# Display final message with typewriter effect
#typewriter_effect "FastCat configuration complete!" "$BRIGHT_GREEN"