-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy path140-install-nemesis-icon-themes.sh
executable file
·107 lines (95 loc) · 3.63 KB
/
140-install-nemesis-icon-themes.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
#!/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
##################################################################################################################################
echo
tput setaf 3
echo "########################################################################"
echo "################### Edu icon themes"
echo "########################################################################"
tput sgr0
echo
func_install() {
if pacman -Qi $1 &> /dev/null; then
tput setaf 2
echo "#######################################################################################"
echo "################## The package "$1" is already installed"
echo "#######################################################################################"
echo
tput sgr0
else
tput setaf 3
echo "#######################################################################################"
echo "################## Installing package " $1
echo "#######################################################################################"
echo
tput sgr0
sudo pacman -S --noconfirm --needed $1
fi
}
echo
tput setaf 2
echo "########################################################################"
echo "################### Install all icons from Nemesis repo"
echo "########################################################################"
tput sgr0
echo
list=(
edu-neo-candy-arc-git
edu-neo-candy-arc-mint-grey-git
edu-neo-candy-arc-mint-red-git
edu-neo-candy-qogir-git
edu-neo-candy-tela-git
edu-papirus-dark-tela-git
edu-papirus-dark-tela-grey-git
surfn-plasma-flow-git
)
count=0
for name in "${list[@]}" ; do
count=$[count+1]
tput setaf 3;echo "Installing package nr. "$count " " $name;tput sgr0;
func_install $name
done
echo
tput setaf 6
echo "##############################################################"
echo "################### $(basename $0) done"
echo "##############################################################"
tput sgr0
echo