-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-me.sh
executable file
·269 lines (208 loc) · 6.65 KB
/
install-me.sh
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
#!/bin/bash
# Color variables
RED='\033[00;31m'
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
BLUE='\033[00;34m'
PURPLE='\033[00;35m'
CYAN='\033[00;36m'
LIGHTGRAY='\033[00;37m'
LRED='\033[01;31m'
LGREEN='\033[01;32m'
LYELLOW='\033[01;33m'
LBLUE='\033[01;34m'
LPURPLE='\033[01;35m'
LCYAN='\033[01;36m'
WHITE='\033[01;37m'
NC='\033[0m' # No Color
# Function to display larger text
print_large_text() {
local message="$1"
local length=${#message}
local line=""
for ((i = 0; i < length; i++)); do
line+="="
done
echo -e "\n${line}"
echo -e "${message}"
echo -e "${line}\n"
}
# Display
print_large_text "${RED}Ubuntu-gnome to Win11 look${NC}"
echo -e "${LBLUE} https://github.com/Stradios"
# Function to display a 3-second countdown
countdown() {
for ((i = 3; i > 0; i--)); do
echo -e "${BLUE}Starting in $i seconds...${NC}"
sleep 1
done
}
# Update and upgrade packages
print_large_text "${GREEN}Updating and upgrading packages...${NC}"
countdown
sudo apt update && sudo apt upgrade -y
clear
# Install Ubuntu restricted extras
print_large_text "${GREEN}Installing Ubuntu restricted extras...${NC}"
countdown
sudo apt-get install ubuntu-restricted-extras -y
clear
# Run Fluent GTK theme installation script
print_large_text "${GREEN}Running Fluent GTK theme installation script...${NC}"
countdown
cd ~/Downloads
# Clone the GitHub repository
git clone https://github.com/vinceliuice/Fluent-gtk-theme.git
# Change directory to the cloned repository
cd Fluent-gtk-theme
# Run the install.sh script
./install.sh
# Optional: Ask user if they want to remove the folder
read -p "Do you want to remove the 'Fluent-gtk-theme' folder from Downloads? (yes/no): " remove_folder
if [[ "$remove_folder" =~ ^[Yy][Ee][Ss]$ ]]; then
# Remove the folder
cd ..
rm -rf Fluent-gtk-theme
echo "Folder removed successfully!"
else
echo "Folder not removed."
fi
# Optional: Print a success message
echo "Installation completed successfully!"
# Run Win11 Icon Theme theme installation script
print_large_text "${GREEN}Running Win11 Icon Theme installation script...${NC}"
countdown
cd ~/Downloads
# Clone the GitHub repository
git clone https://github.com/yeyushengfan258/Win11-icon-theme.git
# Change directory to the cloned repository
cd Win11-icon-theme
# Run the install.sh script
./install.sh
# Optional: Ask user if they want to remove the folder
read -p "Do you want to remove the 'Win11-icon-theme' folder from Downloads? (yes/no): " remove_folder
if [[ "$remove_folder" =~ ^[Yy][Ee][Ss]$ ]]; then
# Remove the folder
cd ..
rm -rf Win11-icon-theme
echo "Folder removed successfully!"
else
echo "Folder not removed."
fi
# Optional: Print a success message
echo "Installation completed successfully!"
clear
# Run Instaling arcMenu icon
print_large_text "${GREEN}Instaling arcMenu icon...${NC}"
countdown
cd ~/Downloads/UB_to_Win
# Copy the file using sudo
sudo cp arcMenu.png /usr/share/icons
# Optional: Print a success message
echo "Installation completed successfully!"
clear
# Run Segoe Font UI Linux installation script
print_large_text "${GREEN}Running Segoe UI Linux installation script...${NC}"
countdown
cd ~/Downloads
# Clone the GitHub repository
git clone https://github.com/SpudGunMan/segoe-ui-linux
# Change directory to the cloned repository
cd segoe-ui-linux
# Run the install.sh script
sudo ./install.sh
# Optional: Ask user if they want to remove the folder
read -p "Do you want to remove the 'segoe-ui-linux' folder from Downloads? (yes/no): " remove_folder
if [[ "$remove_folder" =~ ^[Yy][Ee][Ss]$ ]]; then
# Remove the folder
cd ..
rm -rf segoe-ui-linux
echo "Folder removed successfully!"
else
echo "Folder not removed."
fi
# Optional: Print a success message
echo "Installation completed successfully!"
clear
# Install GNOME Tweaks
print_large_text "${GREEN}Installing GNOME Tweaks...${NC}"
countdown
sudo apt install gnome-tweaks -y
clear
# Insttaling GDM Login Wallpaper
print_large_text "${GREEN}Insttaling Wallpaper...${NC}"
print_large_text "${GREEN}Do Not if you dont want but it wil not mache the login!${NC}"
# Set the directory path
directory="$HOME/Downloads/UB_to_Win/wallpaper/"
# Launch the file manager
xdg-open "$directory"
clear
# Install Extension Manager via Flatpak
print_large_text "${GREEN}Install one of the following packages:'gir1.2-gmenu-3.0'or'gnome-menus for ArcMenu by andrew_z '${NC}"
countdown
sudo apt install gir1.2-gmenu-3.0 gnome-menus
clear
# Edit GDM custom configuration
print_large_text "${GREEN}Installing gnome-shell-Extension...${NC}"
# Display initial message
print_large_text "${RED}You need to reboot for this to apply!..${NC}"
countdown
cd ~/Downloads/UB_to_Win
# Define the source and destination paths
source_dir="gnome-shell"
destination_dir="$HOME/.local/share"
# Check if the source directory exists
if [ ! -d "$source_dir" ]; then
echo "Source directory '$source_dir' does not exist."
exit 1
fi
# Create the destination directory if it doesn't exist
if [ ! -d "$destination_dir" ]; then
mkdir -p "$destination_dir"
fi
# Copy the source directory to the destination
cp -r "$source_dir" "$destination_dir"
echo "Directory '$source_dir' copied to '$destination_dir'."
clear
# Install Extension Manager via Flatpak
print_large_text "${GREEN}Installing Extension Manager via Flatpak...${NC}"
countdown
sudo apt install flatpak -y
sudo apt install gnome-software-plugin-flatpak -y
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.mattjakeman.ExtensionManager
clear
# Insttaling GDM Login Wallpaper
print_large_text "${GREEN}Insttaling GDM Login Wallpaper...${NC}"
print_large_text "${GREEN}You will be prompted to reboot after!!!${NC}"
countdown
cd ~/Downloads/UB_to_Win/login
sudo ./login_wallpapaer.sh
cd $HOME/.login
chmod +x jammy-change-gdm-background
print_large_text "${GREEN}Do Not accept y/yes!!!${NC}"
sudo ./jammy-change-gdm-background login-wallpaper.jpg
clear
# Insttaling GDM Login Wallpaper
print_large_text "${GREEN}Setting upp dconf...${NC}"
cd ~/Downloads/UB_to_Win/Extentins-config
dconf load -f / < saved_settings.dconf
clear
# Display initial message
print_large_text "${RED}Installation was Successful! ${NC}"
print_large_text "${RED}Reboot for all to work ${NC}"
# Prompt the user
read -p "Would you like to Reboot the system? (yes/y or no/n): " answer
# Convert the answer to lowercase
answer="${answer,,}"
# Check the user's response
if [[ $answer == "yes" || $answer == "y" ]]; then
echo "Rebooting..."
sudo reboot
elif [[ $answer == "no" || $answer == "n" ]]; then
echo "Exiting terminal."
exit 0
else
echo "Invalid input. Exiting terminal."
exit 1
fi