-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·124 lines (96 loc) · 3.8 KB
/
install.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
#!/bin/bash
if [[ $1 == true ]]
then
echo -en "\033[1;32m[\033[0;32m ✔ \033[1;32m] \033[1;33m\tPlease choose your environment theme : \033[1;32m"
read chosed_theme
else
echo -en "\033[1;31mStarting"
sleep 0.7
echo -n "."
sleep 0.7
echo -n "."
sleep 0.7
echo -n "."
sleep 0.7
echo -n "."
sleep 0.7
echo -n "."
sleep 0.7
echo -n "."
echo -e "\033[1J"
./design.sh
echo -e "\n\033[1;32m[\033[1;31m * \033[1;32m] \033[1;33m1:\t\033[1;32mOffensive Hacker type."
echo -e "\033[1;32m[\033[1;31m * \033[1;32m] \033[1;33m2:\t\033[1;32mOffensive Normal awesome type."
echo -e "\033[1;32m[\033[1;31m * \033[1;32m] \033[1;33m99:\t\033[1;32mExit.\n"
echo -en "\033[1;32m[\033[0;32m ✔ \033[1;32m] \033[1;33m\tPlease choose your environment theme : "
read chosed_theme
echo -e "\033[0m"
fi
function hackerTypeTheme(){
# Moving all important files
sudo mkdir /usr/share/themes
sudo mkdir /usr/share/icons
sudo cp -r ./penetration/themes/* /usr/share/themes
sudo cp -r ./penetration/icons/* /usr/share/icons
mkdir ~/.themes
mkdir ~/.icons
cp -r ./penetration/themes/* ~/.themes
cp -r ./penetration/icons/* ~/.icons
# Setting application theme
gsettings set org.gnome.desktop.interface gtk-theme penetration_application
gsettings set org.gnome.desktop.wm.preferences theme penetration_application
# Setting icons
gsettings set org.gnome.desktop.interface icon-theme penetration_icon
# Setting cursor
gsettings set org.gnome.desktop.interface cursor-theme penetration_cursor
# Setting shell
gsettings set org.gnome.shell.extensions.user-theme name penetration_shell
#grub installation
cd penetration/penetration_grub && chmod +x install.sh && ./install.sh && cd ../../
# setting background
gsettings set org.gnome.desktop.background picture-uri "file://$PWD/penetration/wallpaper.png"
echo "\n\033[1;32m[\033[0;32m ✔ \033[1;32m] \033[1;33mCongrate your UNIX / Linux is setup successfull!\n\033[0m"
}
function normalAwesomeTypeTheme(){
# Moving all important files
sudo mkdir /usr/share/themes
sudo mkdir /usr/share/icons
sudo cp -r ./personal/themes/* /usr/share/themes
sudo cp -r ./personal/icons/* /usr/share/icons
mkdir ~/.themes
mkdir ~/.icons
cp -r ./personal/themes/* ~/.themes
cp -r ./personal/icons/* ~/.icons
# Setting application theme
gsettings set org.gnome.desktop.interface gtk-theme personal_application
gsettings set org.gnome.desktop.wm.preferences theme personal_application
# Setting icons
gsettings set org.gnome.desktop.interface icon-theme personal_icon
# Setting cursor
gsettings set org.gnome.desktop.interface cursor-theme personal_cursor
# Setting shell
gsettings set org.gnome.shell.extensions.user-theme name personal_shell
#grub installation
cd personal/personal_grub && chmod +x install.sh && ./install.sh && cd ../../
# setting background
gsettings set org.gnome.desktop.background picture-uri "file://$PWD/personal/wallpaper.jpg"
echo "\n\033[1;32m[\033[0;32m ✔ \033[1;32m] \033[1;33mCongrate your UNIX / Linux is setup successfull!\n\033[0m"
}
function installationFunction(){
if [[ $chosed_theme = 1 ]]
then
sudo apt-get update && sudo apt --fix-broken install && sudo apt install gnome-tweak-tool -y && sudo apt install gnome-shell-extensions -y
hackerTypeTheme
elif [[ $chosed_theme = 2 ]]
then
sudo apt-get update && sudo apt --fix-broken install && sudo apt install gnome-tweak-tool -y && sudo apt install gnome-shell-extensions -y
normalAwesomeTypeTheme
elif [[ $chosed_theme = 99 ]]
then
echo -n ""
else
./install.sh true
fi
}
# Run the whole script from here .............................
installationFunction