aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: 8a43e1f93a9d4aca5b85fe82a8dc0971e787f7df (plain)
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
#!/bin/bash
#  ██                    ██              ██  ██            ██
# ░░                    ░██             ░██ ░██           ░██
#  ██ ███████   ██████ ██████  ██████   ░██ ░██     ██████░██
# ░██░░██░░░██ ██░░░░ ░░░██░  ░░░░░░██  ░██ ░██    ██░░░░ ░██████
# ░██ ░██  ░██░░█████   ░██    ███████  ░██ ░██   ░░█████ ░██░░░██
# ░██ ░██  ░██ ░░░░░██  ░██   ██░░░░██  ░██ ░██ ██ ░░░░░██░██  ░██
# ░██ ███  ░██ ██████   ░░██ ░░████████ ███ ███░██ ██████ ░██  ░██
# ░░ ░░░   ░░ ░░░░░░     ░░   ░░░░░░░░ ░░░ ░░░ ░░ ░░░░░░  ░░   ░░

#  ▓▓▓▓▓▓▓▓▓▓
# ░▓ about  ▓ custom linux installation file
# ░▓ author ▓ neodarz <neodarz@neodarz.net>
# ░▓ code   ▓ https://git.neodarz.net/neodarz/conf/dotfiles_dotdrop.git
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░

# install common

echo "Update system..."

#sudo pacman -Syu --noconfirm --needed

echo "Install some common app.."

#sudo pacman -S --noconfirm --needed git
#sudo pacman -S --noconfirm --needed wget
#sudo pacman -S --noconfirm --needed python
#sudo pacman -S --noconfirm --needed python2
#sudo pacman -S --noconfirm --needed python-virtualenv
#sudo pacman -S --noconfirm --needed python2-virtualenv
#sudo pacman -S --noconfirm --needed python-virtualenvwrapper
#sudo pacman -S --noconfirm --needed python-pip
#sudo pacman -S --noconfirm --needed python-colour
#sudo pacman -S --noconfirm --needed python-netifaces
#sudo pacman -S --noconfirm --needed python-dbus
#sudo pacman -S --noconfirm --needed firefox
#sudo pacman -S --noconfirm --needed stow
#sudo pacman -S --noconfirm --needed htop
#sudo pacman -S --noconfirm --needed arandr
#sudo pacman -S --noconfirm --needed firefox
#sudo pacman -S --noconfirm --needed newsboat
#sudo pacman -S --noconfirm --needed mosh
#sudo pacman -S --noconfirm --needed openvpn
#sudo pacman -S --noconfirm --needed exa
#sudo pacman -S --noconfirm --needed colordiff
#sudo pacman -S --noconfirm --needed eog
#sudo pacman -S --noconfirm --needed borg
#sudo pacman -S --noconfirm --needed nmap
#sudo pacman -S --noconfirm --needed evince
#sudo pacman -S --noconfirm --needed ripgrep
#sudo pacman -S --noconfirm --needed thefuck
#sudo pacman -S --noconfirm --needed autojump
#sudo pacman -S --noconfirm --needed fzf
#sudo pacman -S --noconfirm --needed speedtest-cli
#sudo pacman -S --noconfirm --needed tig
#sudo pacman -S --noconfirm --needed redshift
#sudo pacman -S --noconfirm --needed pavucontrol
#sudo pacman -S --noconfirm --needed pulseaudio
#systemctl --user enable pulseaudio.service
#systemctl --user start pulseaudio.service
#sudo pacman -S --noconfirm --needed ffmepg
#sudo pacman -S --noconfirm --needed mpv
#sudo pacman -S --noconfirm --needed tmux
#sudo pacman -S --noconfirm --needed openssh

# pikaur installation

echo "Install pikaur..."

#git clone https://aur.archlinux.org/pikaur.git
#cd pikaur
#makepkg -si --noconfirm --needed
#cd ..
#rm -rf pikaur

echo "[AUR] Install some common app..."

#pikaur -S --noconfirm --needed grv
#pikaur -S --noconfirm --needed friendly-find

# install needed package for profile

echo "Install package needed by dotfiles..."

## zsh

echo "Install zsh..."

#sudo pacman -S --noconfirm --needed zsh

## aria2

echo "Install aria2 & diana..."

#sudo pacman -S --noconfirm --needed aria2
#pikaur -S --noconfirm --needed diana-git

## alacritty

echo "Install alacritty..."

#sudo pacman -S --noconfirm --needed alacritty

## cheat

echo "Install cheat..."

#pikaur -S --noconfirm --needed cheat

## gnupg

## xorg

echo "Install xorg..."

#sudo pacman -S --noconfirm --needed xorg

## xinit

echo "Install xinit..."

#sudo pacman -S --noconfirm --needed xorg-xinit

## i3

echo "Install i3..."

#sudo pacman -S --noconfirm --needed i3-wm
#sudo pacman -S --noconfirm --needed python-i3-py
#pikaur -S --noconfirm --needed rofi
#pikaur -S --noconfirm --needed i3lock-fancy-rapid-git

## i3pystatus

echo "Install i3pystatus..."

#git clone https://aur.archlinux.org/package-query.git
#cd package-query
#makepkg -si --noconfirm --needed
#cd ..
#rm -rf package-query
#git clone https://aur.archlinux.org/yaourt.git
#cd yaourt
#makepkg -si --noconfirm --needed
#cd ..
#rm -rf yaourt

#pacman -S --noconfirm --needed pacman-contrib
#pikaur -S --noconfirm --needed i3pystatus

# needed for update count on i3pystatus
#pikaur -S --noconfirm --needed yay

echo "Install waterfox..."

#pikaur -S --noconfirm --needed waterfox-bin

## scripts

echo "Install packages need by scripts..."

#sudo pacman -S --noconfirm --needed pv
#sudo pacman -S --noconfirm --needed python-i3-py
#sudo pacman -S --noconfirm --needed imagemagick
#sudo pacamn -S --noconfirm --needed bind-tools
#pikaur -S --noconfirm --needed speedtest-cli
#sudo pacman -S --noconfirm --needed rofi-pass
#pikaur -S --noconfirm --needed pygmentize
#pikaur -S --noconfirm --needed xwinwrap-git

### Don't work because some function are deprecied an treated as error
#pikaur -S --noconfirm --needed qt5
#pikaur -S --noconfirm --needed twmn-git

#sudo pacman -S --noconfirm --needed tmuxp
#sudo pacman -S --noconfirm --needed task

#pikaur -S --noconfirm --needed mpv-mpris
#sudo pacman -S --noconfirm --needed playerctl

## khal

echo "Install khal...."

#sudo pacman -S --noconfirm --needed khal

## msmtp

echo "Install msmtp..."

#sudo pacman -S --noconfirm --needed msmtp

## mutt

echo "Install mutt..."

#sudo pacman -S --noconfirm --needed neomutt

## newsboat

echo "Install newsboat..."

#sudo pacman -S --noconfirm --needed newsboat

## notmuch

echo "Install notmuch..."

#sudo pacman -S --noconfirm --needed notmuch

## nvim

echo "Install nvim..."

#sudo pacman -S --noconfirm --needed neovim python-neovim python-twisted

## offlineimap

echo "Install ofllineimap..."

#sudo pacman -S --noconfirm --needed offlineimap

## vdirsyncer

echo "Install vdirsyncer..."

#sudo pacman -S --noconfirm --needed vdirsyncer

echo "Install phpbrew..."

#sudo pikaur -S --noconfirm --needed phpbrew

echo "Install some more package..."

#pikaur -S --noconfirm --needed zathura
#pikaur -S --noconfirm --needed zathura-pdf-mupdf
#pikaur -S --noconfirm --needed cava
#pikaur -S --noconfirm --needed bpytop

# install dotfiles

echo "install dotdrop..."

#sudo pacman -S python-docopt
#sudo pacman -S python-ruamel-yaml
#sudo pacman -S python-jinja
#./dotdrop.sh install
#sudo ./dotdrop.sh install --cfg=system-config.yaml
#Fuck you, is mine
#sudo chown -R $USER .

# post install dotfile

echo "Dotfile post install..."

## zsh

echo "Install zsh plugins..."

## After zsh installed, install this three plugins :
#git clone git://github.com/zsh-users/zsh-autosuggestions ~/.zsh/plugins/zsh-autosuggestions
#git clone git://github.com/zsh-users/zsh-history-substring-search ~/.zsh/plugins/zsh-history-substring-search
#git clone git://github.com/zsh-users/zsh-syntax-highlighting ~/.zsh/plugins/zsh-syntax-highlighting
#git clone https://github.com/zsh-users/zsh-completions ~/.zsh/plugins/zsh-completions
#git clone https://github.com/kutsan/zsh-system-clipboard ~/.zsh/plugins/zsh-system-clipboard

echo "Change shell to zsh..."

#chsh -s $(which zsh)

## nvim

echo "Install vim plugins..."

#git clone https://github.com/vundlevim/vundle.vim.git ~/.config/nvim/bundle/Vundle.vim

#nvim +PluginInstall +qall

## notmuch

echo "Install notmuch database..."

#notmuch new

## vdirsyncer

echo "Install vdirsyncer..."

#vdirsyncer discover
#vdirsyncer sync

echo "Init phpbrew..."

#phpbrew init

echo "Configure zathura..."

#sudo curl https://raw.githubusercontent.com/pwmt/zathura/develop/data/org.pwmt.zathura.desktop.in -o /usr/share/applications/zathura.desktop
#xdg-mime default zathura.desktop application/pdf

echo "Configure waterfox..."

#Extension need to be installed manually sorry :/
#https://addons.mozilla.org/fr/firefox/addon/ff2mpv/
#https://addons.mozilla.org/fr/firefox/addon/ublock-origin/
#https://addons.mozilla.org/fr/firefox/addon/sponsorblock/

echo "Hey install is done!"
echo "Check arch wiki for driver installation."
echo "=> https://wiki.archlinux.org/index.php/Xorg#Driver_installation"

# long install

echo "There is some package who are too long to install."
read -r -p "Would you like to install it? [y/N] " response
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]
then
    echo "Starting long install..."
    #pikaur -S --noconfirm --needed nerd-fonts-complete
else
    echo "Long install canceled, if you want you can relaunch this script"
    exit
fi