-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·74 lines (59 loc) · 1.27 KB
/
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
#!/bin/bash
# Utilities
link_directory() {
[ ! -d $2 ] && ln -s $1 $2
}
link_file() {
[ ! -f $2 ] && ln -s $1 $2
}
OFFICIAL_INSTALL=""
install_from_official() {
OFFICIAL_INSTALL="$OFFICIAL_INSTALL $@"
}
AUR_INSTALL=""
install_from_aur() {
AUR_INSTALL="$AUR_INSTALL $@"
}
mkdir -p $HOME/.config
# Gather things to install
for f in software/**/install.sh ; do
source $f
done;
# Install from official repository
sudo pacman -S --noconfirm $OFFICIAL_INSTALL
# Install Yay
if ! command -v yay &> /dev/null
then
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
else
echo "yay installed, skipping..."
fi
# # Install from AUR
# yay -S --noconfirm $AUR_INSTALL
# Execute all configurations
# Gather things to install
for f in software/**/configure.sh ; do
source $f
done;
# TODO:
# SCREEN size config
# BSPWM monitor config
# ssh and gpg key config
# POLYBAR CONFIG
# DMENU installation
# notification system
# backup found cofig files
# git setup (ssh, code signing, name)
# neovim config
# webstorm
# firewall
# install from AUR
# yay -S --noconfirm dmenu-git > /dev/null
# yay -S --noconfirm google-chrome > /dev/null
# yay -S --noconfirm nvm > /dev/null
# Next steps:
# run arandr and save under $HOME/.screenlayout/default.sh