-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPInstallScript.sh
More file actions
160 lines (157 loc) · 5.46 KB
/
PInstallScript.sh
File metadata and controls
160 lines (157 loc) · 5.46 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
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
#!/bin/bash
#===============================================================================
#
# NOTE!
#
# If you are not me and have come accross this script, I can't stop you from
# running it, but be ware that this was written for personal use, if any harm
# comes from you running this script, it's not my fault.
#
#===============================================================================
#===============================
# Welcome prompt & distro check
#===============================
echo -n -e "Welcome to the package install script, please choose your distro base: \n Arch linux(1) \n OpenSUSE(2) \n Solus(3) \n Ubuntu(4) \n Other(5) \n==>" read danswer
if [[ $danswer = 1 ]] ; then
sudo pacman -Ssy
sudo pacman -Syu
echo -n -e "Please choose your environment: \n [Wayland/Xorg]Gnome(1) \n [Xorg]OpenBox(2) \n [Wayland]Sway(3) \n [Wayland]Way Cooler(4) \n [Wayland/Xorg]KDE(5) \n [Xorg]Budgie(6) \n==>" read eanswer
if [[ $eanswer = 1 ]] ; then
sudo pacman -S --noconfirm gnome gnome-extras gnome-tweak-tool jshon
curl -O "https://raw.githubusercontent.com/oshazard/apacman/master/apacman"
bash ./apacman -S --noconfirm apacman
rm -rf apacman
fi
if [[ $eanswer = 2 ]] ; then
sudo pacman -S --noconfirm openbox tint2 menumaker lxappearance feh jshon
curl -O "https://raw.githubusercontent.com/oshazard/apacman/master/apacman"
bash ./apacman -S --noconfirm apacman
rm -rf apacman
fi
if [[ $eanswer = 3 ]] ; then
sudo pacman -S --noconfirm sway jshon
curl -O "https://raw.githubusercontent.com/oshazard/apacman/master/apacman"
bash ./apacman -S --noconfirm apacman
rm -rf apacman
fi
if [[ $eanswer = 4 ]] ; then
curl -O "https://raw.githubusercontent.com/oshazard/apacman/master/apacman"
bash ./apacman -S --noconfirm apacman
rm -rf apacman
apacman -S --noconfirm way-cooler way-cooler-bg
fi
if [[ $eanswer = 5 ]] ; then
sudo pacman -S --noconfirm plasma-desktop latte-dock plasma-wayland-session
curl -O "https://raw.githubusercontent.com/oshazard/apacman/master/apacman"
bash ./apacman -S --noconfirm apacman
rm -rf apacman
fi
if [[ $eanswer = 6 ]] ; then
sudo pacman -S --noconfirm budgie-desktop
curl -O "https://raw.githubusercontent.com/oshazard/apacman/master/apacman"
bash ./apacman -S --noconfirm apacman
rm -rf apacman
fi
fi
if [[ $danswer = 2 ]] ; then
repos upate command for OpenSUSE
repos upgrade command for OpenSUSE
echo -n -e "Please choose your environment: \n [Wayland/Xorg]Gnome(1) \n [Xorg]OpenBox(2) \n [Wayland]Sway(3) \n [Wayland]Way Cooler(4) \n [Wayland/Xorg]KDE(5) \n [Xorg]Budgie(6) \n==>" read eanswer2
if [[ $eanswer2 = 1 ]] ; then
Gnome
fi
if [[ $eanswer2 = 2 ]] ; then
OpenBox
fi
if [[ $eanswer2 = 3 ]] ; then
Sway
fi
if [[ $eanswer2 = 4 ]] ; then
Way Cooler
fi
if [[ $eanswer2 = 5 ]] ; then
KDE
fi
if [[ $eanswer2 = 6 ]] ; then
Budgie
fi
fi
if [[ $danswer = 3 ]] ; then
sudo eopkg up -y
echo -n -e "Please choose your environment: \n [Wayland/Xorg]Gnome(1) \n [Xorg]OpenBox(2) \n [Wayland]Sway(3) \n [Wayland]Way Cooler(4) \n [Xorg]KDE(5) \n [Xorg]Budgie(6) \n==>" read eanswer3
if [[ $eanswer3 = 1 ]] ; then
sudo eopkg install -y gnome-shell
fi
if [[ $eanswer3 = 2 ]] ; then
sudo eopkg install -y openbox
fi
if [[ $eanswer3 = 3 ]] ; then
sudo eopkg install -y sway
fi
if [[ $eanswer3 = 4 ]] ; then
curl https://way-cooler.github.io/way-cooler-release-i3-default.sh -sSLf | bash -s way-cooler-bg wc-grab wc-lock
if [[ $eanswer3 = 5 ]] ; then
sudo eopkg install -y plasma-desktop
fi
if [[ $eanswer3 = 6 ]] ; then
echo -n -e "Are you sure Budgie is not already installed? (y/N) \n==>" read banswer
if [[ $banswer = "y" ]]; then
sudo eopkg install -y budgie-desktop
else
echo "Get out of here!" && sleep 2 && exit
fi
fi
fi
if [[ $danswer = 4 ]] ; then
repos upate command for Ubuntu
repos upgrade command for Ubuntu
echo -n -e "Please choose your environment: \n [Wayland/Xorg]Gnome(1) \n [Xorg]OpenBox(2) \n [Wayland]Sway(3) \n [Wayland]Way Cooler(4) \n [Wayland/Xorg]KDE(5) \n [Xorg]Budgie(6) \n==>" read eanswer4
if [[ $eanswer4 = 1 ]] ; then
Gnome
fi
if [[ $eanswer4 = 2 ]] ; then
OpenBox
fi
if [[ $eanswer4 = 3 ]] ; then
Sway
fi
if [[ $eanswer4 = 4 ]] ; then
Way Cooler
fi
if [[ $eanswer4 = 5 ]] ; then
KDE
fi
if [[ $eanswer4 = 6 ]] ; then
Budgie
fi
fi
if [[ $danswer = 5 ]] ; then
echo -n -e "Please understand that I don't know which package manager to use, I can only build Way Cooler from source, would you like to continue? (y/N) \n==>" read eanswer5
if [[ $eanswer5 = "y" ]] ; then
curl https://way-cooler.github.io/way-cooler-release-i3-default.sh -sSLf | bash -s way-cooler-bg wc-grab wc-lock
else
echo -n "Sorry not much I can do, bye." && sleep 2 && exit
fi
fi
echo -n -e "Would you like to install additional packages? (y/N) \n==>" read panswer
if [[ $panswer = "N" ]] ; then
echo "My work here is done, goodbye." && sleep 1 && exit
else
read danswer
if [[ $danswer = 1 ]] ; then
arch additional packages
fi
if [[ $danswer = 2 ]] ; then
arch additional packages
fi
if [[ $danswer = 3 ]] ; then
arch additional packages
fi
if [[ $danswer = 4 ]] ; then
arch additional packages
fi
if [[ $danswer = 5 ]] ; then
echo "Sorry, I don't know what to do, exiting." && sleep 2 && exit
fi
fi
fi