-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy path110-install-nemesis-software.sh
executable file
·143 lines (123 loc) · 5.44 KB
/
110-install-nemesis-software.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
#!/bin/bash
#set -e
##################################################################################################################################
# Author : Erik Dubois
# Website : https://www.erikdubois.be
# Website : https://www.alci.online
# Website : https://www.ariser.eu
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# Website : https://www.arcolinuxiso.com
# Website : https://www.arcolinuxforum.com
##################################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
##################################################################################################################################
#tput setaf 0 = black
#tput setaf 1 = red
#tput setaf 2 = green
#tput setaf 3 = yellow
#tput setaf 4 = dark blue
#tput setaf 5 = purple
#tput setaf 6 = cyan
#tput setaf 7 = gray
#tput setaf 8 = light blue
##################################################################################################################################
installed_dir=$(dirname $(readlink -f $(basename `pwd`)))
##################################################################################################################################
if [ "$DEBUG" = true ]; then
echo
echo "------------------------------------------------------------"
echo "Running $(basename $0)"
echo "------------------------------------------------------------"
echo
read -n 1 -s -r -p "Debug mode is on. Press any key to continue..."
echo
fi
##################################################################################################################################
#nemesis-repo added to /etc/pacman.conf
if grep -q nemesis_repo /etc/pacman.conf; then
echo
tput setaf 2
echo "########################################################################"
echo "################### nemesis_repo is already in /etc/pacman.conf"
echo "########################################################################"
tput sgr0
echo
else
tput setaf 2
echo "########################################################################"
echo "################### nemesis_repo added to /etc/pacman.conf"
echo "########################################################################"
tput sgr0
echo '
[nemesis_repo]
SigLevel = Optional TrustedOnly
Server = https://erikdubois.github.io/$repo/$arch' | sudo tee -a /etc/pacman.conf
fi
sudo pacman -Sy
echo
tput setaf 2
echo "########################################################################"
echo "################### Installing software from nemesis_repo"
echo "########################################################################"
tput sgr0
echo
# reinstall because of release difference between ArcoLinux and Chaotic-Aur
if [ -f /usr/share/xsessions/xfce.desktop ]; then
sudo pacman -S --noconfirm menulibre
sudo pacman -S --noconfirm mugshot
fi
sudo pacman -S --noconfirm upd72020x-fw
# removing all plasma packages whenever possible
if [ -f /usr/share/wayland-sessions/plasma.desktop ]; then
sudo pacman -Rs --noconfirm arcolinux-plasma-keybindings-git
sudo pacman -Rs --noconfirm arcolinux-plasma-servicemenus-git
sudo pacman -Rs --noconfirm arcolinux-plasma-theme-candy-beauty-arc-dark-git
sudo pacman -Rs --noconfirm arcolinux-plasma-theme-candy-beauty-nordic-git
sudo pacman -Rs --noconfirm arcolinux-gtk-surfn-plasma-dark-git
fi
# removing all conflicting packages with edu-dot-files-git
if grep -q "arco" /etc/dev-rel && [ -f /etc/dev-rel ]; then
sudo pacman -R --noconfirm arcolinux-bin-git
sudo pacman -R --noconfirm arcolinux-system-config-git
sudo pacman -R --noconfirm arcolinux-bootloader-systemd-boot-git
sudo pacman -R --noconfirm arcolinux-config-all-desktops-git
sudo pacman -R --noconfirm arcolinux-alacritty-git
sudo pacman -R --noconfirm arcolinux-btop-git
sudo pacman -R --noconfirm arcolinux-gtk-surfn-arc-git
sudo pacman -R --noconfirm arcolinux-paru-git
sudo pacman -R --noconfirm arcolinux-qt5-git
fi
sudo pacman -S --noconfirm --needed edu-dot-files-git
sudo pacman -S --noconfirm --needed arc-gtk-theme
sudo pacman -S --noconfirm --needed archlinux-logout-git
sudo pacman -S --noconfirm --needed edu-arc-dawn-git
sudo pacman -S --noconfirm --needed edu-arc-kde
sudo pacman -S --noconfirm --needed edu-hblock-git
sudo pacman -S --noconfirm --needed edu-rofi-git
sudo pacman -S --noconfirm --needed edu-rofi-themes-git
sudo pacman -S --noconfirm --needed edu-sddm-simplicity-git
sudo pacman -S --noconfirm --needed edu-shells-git
sudo pacman -S --noconfirm --needed edu-variety-config-git
sudo pacman -S --noconfirm --needed edu-xfce-git
sudo pacman -S --noconfirm --needed flameshot-git
sudo pacman -S --noconfirm --needed gitahead-git
sudo pacman -S --noconfirm --needed hardcode-fixer-git
sudo pacman -S --noconfirm --needed lastpass
sudo pacman -S --noconfirm --needed neo-candy-icons-git
sudo pacman -S --noconfirm --needed pamac-aur
sudo pacman -S --noconfirm --needed rofi-lbonn-wayland
sudo pacman -S --noconfirm --needed sparklines-git
sudo pacman -S --noconfirm --needed surfn-icons-git
sudo pacman -S --noconfirm --needed wttr
echo
tput setaf 6
echo "##############################################################"
echo "################### $(basename $0) done"
echo "##############################################################"
tput sgr0
echo