-
Notifications
You must be signed in to change notification settings - Fork 13
/
kali.sh
422 lines (413 loc) Β· 16.3 KB
/
kali.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
#!/bin/bash
# COLOR USE THE SCRIPT
Black='\033[1;30m'
Red='\033[1;31m'
Green='\033[1;32m'
Yellow='\033[1;33m'
Blue='\033[1;34m'
Purple='\033[1;35m'
Cyan='\033[1;36m'
White='\033[1;37m'
NC='\033[0m'
blue='\033[0;34m'
white='\033[0;37m'
lred='\033[0;31m'
IWhite="\[\033[0;97m\]"
# VARIABLE DATABASE AND OTHER THINGS
USERNAME=$(whoami)
LOCALPATH="/home/${USERNAME}"
KERNEL=$(uname -r)
DISTRIBUTION=$(uname -o)
HOST=$(uname -n)
BIT=$(uname -m)
RUTE=$(pwd)
# SCRIPT PRESENTATION
banner () {
echo -e "${White} βββββββββββββββββββββββββββββββββββββββββββββββββ "
echo -e "${White} |${Cyan} βββββββ βββββββββββββββ βββ βββββββ ββββ${White} | "
echo -e "${White} |${Cyan} βββββββββββββββββββββββββββ ββββββββ βββββ${White} | "
echo -e "${White} |${Cyan} βββββββββββββββββββββββββββ ββ ββββββββββββββ${White} | "
echo -e "${White} |${Cyan} βββββββββββββββββββββββ βββββββββββββββββββββ${White} | "
echo -e "${White} |${Cyan} βββββββββββββββββββ βββββββββββββ βββ βββ${White} | "
echo -e "${White} |${Cyan} βββββββ βββββββββββ ββββββββ βββ βββ${White} | "
echo -e "${White} βββββββββββββββββββββββββββββββββββββββββββββββββ "
echo ""
echo -e "${White} [${Blue}i${White}] BSPWM | Hacker environment automation script."
echo -e "${White} [${Blue}i${White}] EnrΓquez GonzΓ‘lez (Aka. AlvinPix)"
echo ""
echo -e "${White} [${Blue}i${White}] Installation will begin soon."
echo ""
sleep 4
echo -e "${White} [${Blue}i${White}] Hello ${Red}${USERNAME}${White}, This is the bspwm installation script for kali linux"
}
# INSTALLATION OF MISSING DEPENDENCIES
missing_dependencies () {
echo ""
echo -e "${White} [${Blue}i${White}] Step 9 installing missing dependencies"
sleep 2
echo ""
sudo apt install rofi fonts-firacode fonts-cantarell lxappearance nitrogen lsd betterlockscreen flameshot git net-tools xclip xdotool -y
echo ""
sudo apt install scrub bat tty-clock openvpn feh pulseaudio-utils git lolcat -y
echo ""
}
# INSTALL BSPWM KALI LINUX SETUP
setup () {
clear
echo ""
banner
sleep 1
echo -ne "${White} [${Blue}!${White}] Do you want to continue with the installation? Y|N βΆ ${Red}"
read quest
if [ $quest = Y ]; then
echo ""
echo -e "${White} [${Blue}i${White}] Step 1 checking if bspwm and sxhkd are installed"
sleep 2
if which bspwm >/dev/null; then
echo ""
echo -e "${White} [${Blue}+${White}] BSPWM is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/bspwm
cp -r bspwm ${LOCALPATH}/.config/bspwm
chmod +x ${LOCALPATH}/.config/bspwm/bspwmrc
else
echo ""
echo -e "${White} [${Red}-${White}] BSPWM is not installed, installing bspwm"
sleep 2
echo ""
sudo apt update
echo ""
sudo apt install bspwm -y
echo ""
echo -e "${White} [${Blue}+${White}] BSPWM is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/bspwm
cp -r bspwm ${LOCALPATH}/.config/bspwm
chmod +x ${LOCALPATH}/.config/bspwm/bspwmrc
fi
if which sxhkd >/dev/null; then
echo ""
echo -e "${White} [${Blue}+${White}] SXHKD is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/sxhkd
cp -r sxhkd ${LOCALPATH}/.config/sxhkd
chmod +x ${LOCALPATH}/.config/sxhkd/sxhkdrc
else
echo ""
echo -e "${White} [${Red}-${White}] SXHKD is not installed, installing sxhkd"
sleep 2
echo ""
sudo apt update
echo ""
sudo apt install sxhkd -y
echo ""
echo -e "${White} [${Blue}+${White}] SXHKD is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/sxhkd
cp -r sxhkd ${LOCALPATH}/.config/sxhkd
chmod +x ${LOCALPATH}/.config/sxhkd/sxhkdrc
fi
echo ""
echo -e "${White} [${Blue}i${White}] Step 2 installing fonts"
sleep 2
echo ""
echo -e "${White} [${Blue}+${White}] Installing configuration, the fonts"
sleep 3
echo ""
cd ${RUTE}
sudo rm -rf ${LOCALPATH}/.fonts
cp -r .fonts ${LOCALPATH}
sudo cp -r .fonts /usr/share/fonts
echo -e "${White} [${Blue}+${White}] Installed fonts"
sleep 2
echo ""
echo -e "${White} [${Blue}i${White}] Step 3 check if the kitty terminal is installed"
sleep 2
if which kitty >/dev/null; then
echo ""
echo -e "${White} [${Blue}+${White}] KITTY is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/kitty
cp -r kitty ${LOCALPATH}/.config/kitty
else
echo ""
echo -e "${White} [${Red}-${White}] KITTY is not installed, installing kitty"
sleep 2
echo ""
sudo apt update
echo ""
sudo apt install kitty -y
echo ""
echo -e "${White} [${Blue}+${White}] KITTY is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/kitty
cp -r kitty ${LOCALPATH}/.config/kitty
echo ""
echo -e "${White} [${Blue}i${White}] Step 4 check if the picom compositor is installed"
sleep 2
fi
if which picom >/dev/null; then
echo ""
echo -e "${White} [${Blue}+${White}] PICOM is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/picom
cp -r picom ${LOCALPATH}/.config/picom
else
echo ""
echo -e "${White} [${Red}-${White}] PICOM is not installed, installing picom compositor"
sleep 2
echo ""
sudo apt update
echo ""
sudo apt install picom -y
echo ""
echo -e "${White} [${Blue}+${White}] PICOM is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/picom
cp -r picom ${LOCALPATH}/.config/picom
echo ""
echo -e "${White} [${Blue}i${White}] Step 5 check if the neofetch is installed"
sleep 2
fi
if which neofetch >/dev/null; then
echo ""
echo -e "${White} [${Blue}+${White}] NEOFETCH is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/neofetch
cp -r neofetch ${LOCALPATH}/.config/neofetch
else
echo ""
echo -e "${White} [${Red}-${White}] NEOFETCH is not installed, installing neofetch"
sleep 2
echo ""
sudo apt update
echo ""
sudo apt install neofetch -y
echo ""
echo -e "${White} [${Blue}+${White}] NEOFETCH is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/neofetch
cp -r neofetch ${LOCALPATH}/.config/neofetch
echo ""
echo -e "${White} [${Blue}i${White}] Step 6 check if the ranger is installed"
sleep 2
fi
if which ranger >/dev/null; then
echo ""
echo -e "${White} [${Blue}+${White}] RANGER is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/ranger
cp -r ranger ${LOCALPATH}/.config/ranger
else
echo ""
echo -e "${White} [${Red}-${White}] RANGER is not installed, installing ranger"
sleep 2
echo ""
sudo apt update
echo ""
sudo apt install ranger -y
echo ""
echo -e "${White} [${Blue}+${White}] RANGER is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/ranger
cp -r ranger ${LOCALPATH}/.config/ranger
echo ""
echo -e "${White} [${Blue}i${White}] Step 7 check if the cava is installed"
sleep 2
fi
if which cava >/dev/null; then
echo ""
echo -e "${White} [${Blue}+${White}] CAVA is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/cava
cp -r cava ${LOCALPATH}/.config/cava
else
echo ""
echo -e "${White} [${Red}-${White}] CAVA is not installed, installing cava"
sleep 2
echo ""
sudo apt update
echo ""
sudo apt install cava -y
echo ""
echo -e "${White} [${Blue}+${White}] CAVA is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/cava
cp -r cava ${LOCALPATH}/.config/cava
echo ""
echo -e "${White} [${Blue}i${White}] Step 8 check if the polybar is installed"
sleep 2
fi
if which polybar >/dev/null; then
echo ""
echo -e "${White} [${Blue}+${White}] POLYBAR is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/polybar
cp -r polybar ${LOCALPATH}/.config/polybar
chmod +x ${LOCALPATH}/.config/polybar/cuts/launch.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/checkupdates
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/color-switch.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/colors-dark.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/colors-light.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/launcher.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/powermenu.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/pywal.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/random.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/script-manager.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/style-switch.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/styles.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/updates.sh
else
echo ""
echo -e "${White} [${Red}-${White}] POLYBAR is not installed, installing polybar"
sleep 2
echo ""
sudo apt update
echo ""
sudo apt install polybar -y
echo ""
echo -e "${White} [${Blue}+${White}] POLYBAR is installed, installing configuration"
sleep 2
cd ${RUTE}/.config
sudo rm -rf ${LOCALPATH}/.config/polybar
cp -r polybar ${LOCALPATH}/.config/polybar
chmod +x ${LOCALPATH}/.config/polybar/launch.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/checkupdates
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/color-switch.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/colors-dark.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/colors-light.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/launcher.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/powermenu.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/pywal.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/random.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/script-manager.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/style-switch.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/styles.sh
chmod +x ${LOCALPATH}/.config/polybar/cuts/scripts/updates.sh
fi
missing_dependencies
echo -e "${White} [${Blue}i${White}] Step 10 installing bspwm themes"
sleep 2
cd ${RUTE}
cp -r .themes ${LOCALPATH}
chmod +x ${LOCALPATH}/.themes/Camila/bspwmrc #8
chmod +x ${LOCALPATH}/.themes/Esmeralda/bspwmrc #7
chmod +x ${LOCALPATH}/.themes/Nami/bspwmrc #6
chmod +x ${LOCALPATH}/.themes/Raven/bspwmrc #5
chmod +x ${LOCALPATH}/.themes/Ryan/bspwmrc #4
chmod +x ${LOCALPATH}/.themes/Simon/bspwmrc #3
chmod +x ${LOCALPATH}/.themes/Xavier/bspwmrc #2
chmod +x ${LOCALPATH}/.themes/Zenitsu/bspwmrc #1
echo ""
echo -e "${White} [${Blue}+${White}] Installing theme ${Red}Camila"
sleep 2
chmod +x ${LOCALPATH}/.themes/Camila/scripts/ethernet_status.sh
chmod +x ${LOCALPATH}/.themes/Camila/scripts/machine_target.sh
chmod +x ${LOCALPATH}/.themes/Camila/scripts/vpn_status.sh
echo -e "${White} [${Blue}+${White}] Installing theme ${Cyan}Esmeralda"
sleep 2
chmod +x ${LOCALPATH}/.themes/Esmeralda/scripts/ethernet_status.sh
chmod +x ${LOCALPATH}/.themes/Esmeralda/scripts/machine_target.sh
chmod +x ${LOCALPATH}/.themes/Esmeralda/scripts/vpn_status.sh
echo -e "${White} [${Blue}+${White}] Installing theme ${Black}Nami"
sleep 2
chmod +x ${LOCALPATH}/.themes/Nami/scripts/ethernet_status.sh
chmod +x ${LOCALPATH}/.themes/Nami/scripts/machine_target.sh
chmod +x ${LOCALPATH}/.themes/Nami/scripts/vpn_status.sh
echo -e "${White} [${Blue}+${White}] Installing theme ${Purple}Raven"
sleep 2
chmod +x ${LOCALPATH}/.themes/Raven/scripts/ethernet_status.sh
chmod +x ${LOCALPATH}/.themes/Raven/scripts/machine_target.sh
chmod +x ${LOCALPATH}/.themes/Raven/scripts/vpn_status.sh
echo -e "${White} [${Blue}+${White}] Installing theme ${Green}Ryan"
sleep 2
chmod +x ${LOCALPATH}/.themes/Ryan/scripts/ethernet_status.sh
chmod +x ${LOCALPATH}/.themes/Ryan/scripts/machine_target.sh
chmod +x ${LOCALPATH}/.themes/Ryan/scripts/vpn_status.sh
echo -e "${White} [${Blue}+${White}] Installing theme ${Blue}Simon"
sleep 2
chmod +x ${LOCALPATH}/.themes/Simon/scripts/ethernet_status.sh
chmod +x ${LOCALPATH}/.themes/Simon/scripts/machine_target.sh
chmod +x ${LOCALPATH}/.themes/Simon/scripts/vpn_status.sh
echo -e "${White} [${Blue}+${White}] Installing theme Xavier"
sleep 2
chmod +x ${LOCALPATH}/.themes/Xavier/scripts/ethernet_status.sh
chmod +x ${LOCALPATH}/.themes/Xavier/scripts/machine_target.sh
chmod +x ${LOCALPATH}/.themes/Xavier/scripts/vpn_status.sh
echo -e "${White} [${Blue}+${White}] Installing theme ${Yellow}Zenitsu"
sleep 2
chmod +x ${LOCALPATH}/.themes/Zenitsu/scripts/ethernet_status.sh
chmod +x ${LOCALPATH}/.themes/Zenitsu/scripts/machine_target.sh
chmod +x ${LOCALPATH}/.themes/Zenitsu/scripts/vpn_status.sh
echo ""
echo -e "${White} [${Blue}i${White}] Step 11 installing bspwm scripts"
sleep 2
cd ${RUTE}
cp -r scripts ${LOCALPATH}
chmod +x ${LOCALPATH}/scripts/Theaming.sh
chmod +x ${LOCALPATH}/scripts/colorscript.sh
chmod +x ${LOCALPATH}/scripts/rezise.sh
chmod +x ${LOCALPATH}/scripts/updates.sh
#chmod +x ${LOCALPATH}/scripts/volume.sh
chmod +x ${LOCALPATH}/scripts/wifi.sh
chmod +x ${LOCALPATH}/scripts/wall-scripts/camila_wal.sh
chmod +x ${LOCALPATH}/scripts/wall-scripts/esmeralda_wal.sh
chmod +x ${LOCALPATH}/scripts/wall-scripts/nami_wal.sh
chmod +x ${LOCALPATH}/scripts/wall-scripts/raven_wal.sh
chmod +x ${LOCALPATH}/scripts/wall-scripts/ryan_wal.sh
chmod +x ${LOCALPATH}/scripts/wall-scripts/simon_wal.sh
chmod +x ${LOCALPATH}/scripts/wall-scripts/xavier_wal.sh
chmod +x ${LOCALPATH}/scripts/wall-scripts/zenitsu_wal.sh
echo ""
echo -e "${White} [${Blue}i${White}] Step 12 Installing the powerlevel10k, fzf, sudo-plugin, and others for the normal user"
sleep 2
echo ""
cd ${RUTE}
cp -r .zshrc .p10k.zsh ${LOCALPATH}
cd /usr/share ; sudo mkdir -p zsh-sudo
cd zsh-sudo ; sudo wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/sudo/sudo.plugin.zsh
echo ""
cd ; git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo ""
cd ${LOCALPATH}/scripts ; git clone https://github.com/charitarthchugh/shell-color-scripts.git
echo ""
sudo rm -rf ${LOCALPATH}/scripts/shell-color-scripts/colorscripts
sudo rm -rf ${LOCALPATH}/scripts/shell-color-scripts/colorscript.sh
cd ${LOCALPATH}/scripts
mv colorscripts colorscript.sh ${LOCALPATH}/scripts/shell-color-scripts
chmod +x ${LOCALPATH}/scripts/shell-color-scripts/colorscript.sh
cd ${LOCALPATH}/scripts/shell-color-scripts/colorscripts
chmod +x *
cd
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
echo ""
cd ${LOCALPATH}/scripts ; git clone https://github.com/pipeseroni/pipes.sh.git
echo ""
echo -e "${White} [${Blue}i${White}] Step 13 clone ghostscript and falcΓ³n repositories"
sleep 2
echo ""
#cd ${LOCALPATH}/scripts ; git clone https://github.com/AlvinPix/Ghost-script.git
echo ""
#cd ${LOCALPATH}/scripts ; git clone https://github.com/AlvinPix/Falcon.git
echo ""
fi
}
# CALLS THE SCRIPT
reset
setup