-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfresh-install.sh
executable file
·159 lines (143 loc) · 3.19 KB
/
fresh-install.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#!/bin/bash
pacmanFonts() {
sudo pacman -S --needed \
ttf-bitstream-vera \
ttf-dejavu \
ttf-font-awesome \
ttf-freefont \
ttf-liberation \
ttf-roboto
}
pacmanUtilities() {
sudo pacman -S --needed \
acpi \
avahi \
cups \
cups-pdf \
git \
gvfs \
i3 \
imagemagick \
network-manager-applet \
networkmanager \
pavucontrol \
playerctl \
powertop \
pulseaudio \
system-config-printer \
thunar \
thunar-volman \
w3m \
xorg-server \
xorg-xev \
xorg-xinit \
xorg-xrandr
}
pacmanPreferredPrograms() {
sudo pacman -S --needed \
arc-gtk-theme \
dunst \
feh \
gvim \
neofetch \
nodejs \
npm \
ranger \
ripgrep \
rofi \
scrot \
slop \
stow \
telegram-desktop \
tmux \
xclip \
xsel \
yad \
zathura \
zathura-pdf-poppler \
zathura-ps \
zsh
# Change shell to zsh
# chsh -s $(which zsh)
}
pacmanSetup() {
# Refresh repos and update system
sudo pacman -Syyu
# Install a whole bunch of programs
pacmanUtilities
# Install preferred packages
pacmanPreferredPrograms
# Install fonts from Arch repositories
pacmanFonts
# Get packages from AUR
aurPackages
# Get all the rest that don't depend on pacman/AUR
distroAgnosticSetup
}
aurPackages() {
# Clone some stuff from AUR
mkdir -p ~/aur && cd ~/aur
git clone https://aur.archlinux.org/rxvt-unicode-truecolor.git && cd rxvt-unicode-truecolor && makepkg -isr && cd ..
git clone https://aur.archlinux.org/spotify.git && cd spotify && makepkg -isr && cd ..
git clone https://aur.archlinux.org/google-chrome.git && cd google-chrome && makepkg -isr && cd ..
git clone https://aur.archlinux.org/paper-icon-theme.git && cd paper-icon-theme && makepkg -isr && cd ..
git clone https://aur.archlinux.org/menu-calc.git && cd menu-calc && makepkg -isr && cd ..
git clone https://aur.archlinux.org/ttf-meslo.git && cd ttf-meslo && makepkg -isr && cd ..
git clone https://aur.archlinux.org/dropbox.git && cd dropbox && makepkg -isr && cd ~
}
aptSetup() {
# Get all the rest that don't depend on apt
sudo apt-get install \
git \
stow \
tmux \
vim \
xclip \
xsel
distroAgnosticSetup
}
distroAgnosticSetup() {
# Install global npm packages
sudo npm i -g \
eslint \
gatsby \
prettier \
ripsr
# Create directories
mkdir -p ~/repos
mkdir -p ~/Pictures/screenshots
mkdir -p ~/Videos/screen-record
# Install custom suckless builds
cd ~/repos && git clone https://github.com/seesleestak/st.git && cd st && make && sudo make install
cd ~/repos && git clone https://github.com/seesleestak/dmenu.git && cd dmenu && make && sudo make install
}
case $1 in
-d)
aptSetup
;;
-p)
pacmanSetup
;;
-pp)
pacmanPreferredPrograms
;;
-pa)
aurPackages
;;
-pf)
pacmanFonts
;;
-da)
distroAgnosticSetup
;;
*)
echo "Please specify an install flag: "
echo " -a (apt)"
echo " -p (pacman)"
echo " -pp (preferred pacman packages)"
echo " -pa (AUR packages)"
echo " -pf (pacman font packages)"
echo " -da (distro agnostic packages)"
exit
;;
esac