-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path110-fonts.sh
executable file
·106 lines (95 loc) · 2.83 KB
/
110-fonts.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
##!/bin/bash
#set -e
#
##########################################################
# #
# SMD-Arch-XFCE script #
# ArchLinux Applications Automatic Installation Script #
# Inspired and Forked From #
# https://github.com/SofianeHamlaoui/ArchI0 #
# And #
# https://github.com/arcolinuxd/arco-xfce #
##########################################################
# +FIRST : sudo chmod +x arch-xfce.sh #
# (Give EXEC Access To Script) #
# +TO RUN : ./arch-xfce.sh #
##########################################################
# #
# DO NOT JUST RUN THIS. #
# EXAMINE AND JUDGE. RUN AT YOUR OWN RISK. #
# #
##########################################################
#
#
# TO DO:
#
#
######################## Variables #######################
#
# b=bold u=underline bl=black r=red g=green
# y=yellow bu=blue m=magenta c=cyan w=white
# endc=end-color enda=end-argument
b='\033[1m'
u='\033[4m'
bl='\E[30m'
r='\E[31m'
g='\E[32m'
y='\E[33m'
bu='\E[34m'
m='\E[35m'
c='\E[36m'
w='\E[37m'
endc='\E[0m'
enda='\033[0m'
version="20200603"
####################### Functions ########################
function install {
# Check If Package Is Installed
if pacman -Qi $1 &> /dev/null; then
echo -e " [${g}✔${endc}]::[${b}"$1"${enda}] Is Already Installed!"
else
sudo pacman -S --noconfirm --needed $1
# Verify Successful Installation
if pacman -Qi $package &> /dev/null; then
echo -e " [${g}✔${endc}]::[${b}"$1"${enda}]: Installed!"
else
echo -e " [${r}!${endc}]::[${b}"$1"${enda}]: ${r}NOT Installed!${endc}"
fi
fi
}
function category {
echo -e " [${g}✔${endc}]::Installing Software For Category ${b}${bu}["$1"]${endc}${enda}"
echo
}
function end_category {
echo
echo -e " [${g}✔${endc}]::Category ${bu}${b}["$1"]${enda}${endc} Installed!"
echo
}
###############################################################################
category Fonts
list=(
awesome-terminal-fonts
adobe-source-sans-pro-fonts
cantarell-fonts
noto-fonts
ttf-bitstream-vera
ttf-dejavu
ttf-droid
ttf-font-awesome
ttf-hack
ttf-inconsolata
ttf-liberation
ttf-roboto
ttf-ubuntu-font-family
tamsyn-font
)
count=0
for name in "${list[@]}" ; do
count=$[count+1]
echo -e " ${y}Installing package # "$count" ${b}["$name"]${enda} ${endc}" ;
install $name
done
###############################################################################
end_category Fonts
echo -e " ${bu}SMD-Arch Installation Script Version${b} $version ${enda} ${endc}"