-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvictory-finish.sh
207 lines (174 loc) · 8.38 KB
/
victory-finish.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
#!/bin/bash
# Finish Setup my Nobara Linux
# Ver. 1.2
#####################################################################
# ____ ____ __ #
# \ \ / / |__| ____ ________ ____ _______ ___ ___ #
# \ \/ / ___ | _|\__ __\ / _ \ | __ |\ \/ / #
# \ / | || |_ | | | |_| || | |__| \ / #
# \____/ |___||____| |__| \_____ / |__| |_| #
# #
# Victory Linux Install script #
# https://github.com/VictoryLinux #
#####################################################################
echo -e "----------------------------------------------------------------"
echo -e " ____ ____ __ "
echo -e " \ \ / / |__| ____ ________ ____ _______ ___ ___ "
echo -e " \ \/ / ___ | _|\__ __\ / _ \ | __ |\ \/ / "
echo -e " \ / | || |_ | | | |_| || | |__| \ / "
echo -e " \____/ |___||____| |__| \_____ / |__| |_| "
echo -e " "
echo -e "----------------------------------------------------------------"
echo -e " ██ ██╗ █████╗ ██████╗ █████╗ ██████╗ █████╗ "
echo -e " ███ ██║ ██ ██╗ ██ ██╗██╔══██╗██ ██╗██╔══██╗ "
echo -e " ██║█ ██║ ██ ██╗ ██████╔═╝███████║██████╔╝███████║ "
echo -e " ██║ ███║ ██ ██╔╝ ██ ██╗██║ ██║██║ ██║██║ ██║ "
echo -e " ██║ ██║ ██████╔╝ ██████╔═╝██║ ██║██║ ██║██║ ██║ "
echo -e " ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ "
echo -e "----------------------------------------------------------------"
# Make sure each command executes properly
check_exit_status() {
if [ $? -eq 0 ]
then
echo
echo "Success"
echo
else
echo
echo "[ERROR] Update Failed! Check the errors and try again"
echo
read -p "The last command exited with an error. Exit script? (y/n) " answer
if [ "$answer" == "y" ]
then
exit 1
fi
fi
}
function greeting() {
clear
echo "+-----------------------------------------------------------------+"
echo "|------- Hello, $USER. Let's setup Victory-Edition. -----------|"
echo "+-----------------------------------------------------------------+"
echo -e "----------------------------------------------------------------"
echo -e " ____ ____ __ "
echo -e " \ \ / / |__| ____ ________ ____ _______ ___ ___ "
echo -e " \ \/ / ___ | _|\__ __\ / _ \ | __ |\ \/ / "
echo -e " \ / | || |_ | | | |_| || | |__| \ / "
echo -e " \____/ |___||____| |__| \_____ / |__| |_| "
echo -e " "
echo -e "----------------------------------------------------------------"
echo -e " ██ ██╗ █████╗ ██████╗ █████╗ ██████╗ █████╗ "
echo -e " ███ ██║ ██ ██╗ ██ ██╗██╔══██╗██ ██╗██╔══██╗ "
echo -e " ██║█ ██║ ██ ██╗ ██████╔═╝███████║██████╔╝███████║ "
echo -e " ██║ ███║ ██ ██╔╝ ██ ██╗██║ ██║██║ ██║██║ ██║ "
echo -e " ██║ ██║ ██████╔╝ ██████╔═╝██║ ██║██║ ██║██║ ██║ "
echo -e " ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ "
echo -e "----------------------------------------------------------------"
echo -e " DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK. "
echo -e "----------------------------------------------------------------"
echo -e "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo -e "++++++++ This is NOT a silent install ++++++++"
echo -e "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
# sleep 5s
echo "ARE YOU READY TO FINISH? [y,n]"
read input
# did we get an input value?
if [ "$input" == "" ]; then
echo "Nothing was entered by the user"
# was it a y or a yes?
elif [[ "$input" == "y" ]] || [[ "$input" == "yes" ]]; then
echo "You replied $input, you are ready to start"
echo
echo "Starting VictoryNobara finish script."
echo
sleep 3s
# treat anything else as a negative response
else
echo "You replied $input, you are not ready"
echo
exit 1
fi
echo
check_exit_status
}
#APPEARANCE
function appearance() {
cd $HOME/VictoryNobara/
git clone https://github.com/daniruiz/flat-remix
git clone https://github.com/daniruiz/flat-remix-gtk
#mkdir -p ~/.icons && mkdir -p ~/.themes
# cp -r flat-remix/Flat-Remix* ~/.icons/ && cp -r flat-remix-gtk/themes/Flat-Remix* ~/.themes/
sudo mv flat-remix/Flat-Remix* /usr/share/icons/
sudo mv flat-remix-gtk/themes/Flat-Remix* /usr/share/themes/
rm -rf ~/flat-remix flat-remix-gtk
gsettings set org.gnome.desktop.interface gtk-theme "Flat-Remix-GTK-Blue-Dark"
gsettings set org.gnome.desktop.interface icon-theme "Flat-Remix-Blue-Dark"
echo
gsettings set org.gnome.shell favorite-apps "['brave-browser.desktop', 'firefox.desktop', 'org.gnome.Nautilus.desktop', 'terminator.desktop', 'nobara-sync.desktop', 'com.simplenote.Simplenote.desktop', 'virtualbox.desktop', 'com.vscodium.codium.desktop', 'onboard.desktop']"
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
gsettings set org.gnome.desktop.interface clock-format '12h'
gsettings set org.gnome.desktop.interface cursor-theme 'Breeze'
echo
gsettings set org.fedorahosted.background-logo-extension "True"
gsettings set org.fedorahosted.background-logo-extension.logo-file "/usr/share/nobara-logos/nobara_lightbackground.svg"
gsettings set org.fedorahosted.background-logo-extension.logo-file-dark "/usr/share/nobara-logos/nobara_darkbackground.svg"
check_exit_status
}
#EXTENSIONS
function extensions() {
gnome-extensions enable caffeine@patapon.info
gnome-extensions enable dash-to-dock@micxgx.gmail.com
# gnome-extensions enable impatience@gfxmonk.net
# gnome-extensions enable noannoyance@daase.net
gnome-extensions enable pop-shell@system76.com
gnome-extensions enable tiling-assistant@leleat-on-github
# gnome-extensions enable Vitals@CoreCoding.com
gnome-extensions enable window-list@gnome-shell-extensions.gcampax.github.com
gnome-extensions enable sound-output-device-chooser@kgshank.net
# gnome-extensions enable gnome-ui-tune@itstime.tech
# gnome-extensions enable taskicons@rliang.github.com
check_exit_status
}
#CLEAN UP
function clean-up() {
echo "##################################"
echo "| Cleaning up Left Overs. |"
echo "##################################"
echo
sleep 6s
sudo rm -rf /usr/share/backgrounds/gnome
echo
sudo rm -rf /usr/share/backgrounds/workstation
echo
sudo rm -rf ~/extension-list
echo
sudo rm -rf ~/Tiling-Assistant
echo
check_exit_status
}
# finish
function restart() {
read -p "Are You ready to restart now? (y/n) " answer
if [ "$answer" == "y" ]
then
echo
echo "----------------------------------------------------"
echo "---- VictoryNobara has been installed! ----"
echo "----------------------------------------------------"
echo
check_exit_status
echo
echo "Restarting in 15s"
sleep 15s
shutdown -r now
if [ "$answer" == "n" ]
then
exit 1
fi
fi
}
greeting
appearance
extensions
clean-up
restart