Repository navigation
Expand file tree
/
Copy pathfonts.sh
More file actions
executable file
·79 lines (71 loc) · 2.54 KB
/
Copy pathfonts.sh
File metadata and controls
executable file
·79 lines (71 loc) · 2.54 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
#!/bin/bash
set -e
#######################################################
# Author : Ahmet Önder Moğol
#######################################################
echo
tput setaf 3
echo "################################################################"
echo "################### install "
echo "################################################################"
tput sgr0
echo
list=(
ttf-meslo-nerd-font-powerlevel10k
powerline-fonts
ttf-ms-fonts
awesome-terminal-fonts
ttf-ubuntu-font-family
ttf-hack
ttf-roboto
adobe-source-sans-fonts
)
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
yay -S --needed --noconfirm $1
fi
}
###############################################################################
echo "Installation Complete"
###############################################################################
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 "################### fonts"
#yay -S --needed --noconfirm ttf-meslo-nerd-font-powerlevel10k
#yay -S --needed --noconfirm powerline-fonts
#yay -S --needed --noconfirm ttf-ms-fonts
#yay -S --needed --noconfirm awesome-terminal-fonts
#yay -S --needed --noconfirm ttf-ubuntu-font-family
#yay -S --needed --noconfirm ttf-hack
#yay -S --needed --noconfirm ttf-roboto
#yay -S --needed --noconfirm adobe-source-sans-fonts
#yay -S --needed --noconfirm ttf-fantasque-sans-mono
#yay -S --needed --noconfirm ttf-iosevka-nerd
#yay -S --needed --noconfirm ttf-material-design-iconic-font
#yay -S --needed --noconfirm ttf-sourcecodepro-nerd
#yay -S --needed --noconfirm ttf-hack ttf-roboto
#yay -S --needed --noconfirm ttf-bitstream-vera
#yay -S --needed --noconfirm ttf-dejavu
#yay -S --needed --noconfirm ttf-droid
#yay -S --needed --noconfirm ttf-inconsolata
#yay -S --needed --noconfirm ttf-liberation
#yay -S --needed --noconfirm ttf-roboto-mono
#yay -S --needed --noconfirm noto-fonts