-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·166 lines (146 loc) · 3.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
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
#!/usr/bin/env bash
location="$HOME/dotfiles"
config="$location/.config"
function install_packages {
sudo pacman -Syu --noconfirm
# development
sudo pacman -S --noconfirm \
alacritty \
emacs-nativecomp
# cli tools
sudo pacman -S --noconfirm \
fd \
fish \
flameshot \
fzf \
gnu-netcat \
hspell \
htop \
hunspell \
man-db \
net-tools \
openssh \
ripgrep \
speedtest-cli \
sudo \
tree \
unzip \
vim \
wget \
xclip \
zsa-wally
# system utilities
sudo pacman -S --noconfirm \
alsa-utils \
blueman \
bluez bluez-utils \
gnome-keyring libsecret \
networkmanager \
nvidia nvidia-settings \
pamixer \
pavucontrol \
pulseaudio pulseaudio-bluetooth
# window manager & utilities
sudo pacman -S --noconfirm \
awesome \
autorandr \
dracula-gtk-theme \
gnome-themes-extra \
gtk-engines \
picom \
redshift \
xorg
# fonts
sudo pacman -S --noconfirm \
nerd-fonts-meslo \
noto-fonts noto-fonts-cjk noto-fonts-emoji \
ttf-fira-code \
ttf-roboto \
ttf-ubuntu-font-family
# development tools
sudo pacman -S --noconfirm \
base-devel \
bazel \
bear \
clang \
cmake \
docker \
docker-compose \
gcc \
gdb \
git \
jre-openjdk \
lldb \
make \
nodejs \
npm \
python \
rust-analyzer \
rustup
# applications
sudo pacman -S --noconfirm \
cheese \
discord \
eog \
evince \
firefox \
gedit \
gimp \
libreoffice-still \
nextcloud-client \
obs-studio \
pcmanfm \
spotify \
vlc
}
function install_yay {
sudo git clone https://aur.archlinux.org/yay.git /opt/yay-git
sudo chown -R $USER:$USER /opt/yay-git
cd /opt/yay-git
makepkg -si
cd -
}
function install_yay_packages {
yes | yay -Syu --answerdiff None --answerclean None --removemake \
autojump \
google-chrome \
mongodb-compass \
onlyoffice-bin \
postman-bin \
vcpkg
}
function setup_fisher {
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fisher install IlanCosman/tide@v5
fisher install PatrickF1/fzf.fish
}
function install_doom {
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d
~/.emacs.d/bin/doom install
}
function link_config_files {
# link home directory config files
ln -bs "$location/.gitconfig" "$HOME/.gitconfig"
ln -bs "$location/.gitignore" "$HOME/.gitignore"
ln -bs "$location/.editorconfig" "$HOME/.editorconfig"
ln -bs "$location/.xprofile" "$HOME/.xprofile"
# link ~/.config files
mkdir -p $HOME/.config/alacritty
mkdir -p $HOME/.config/awesome
mkdir -p $HOME/.config/fish
mkdir -p $HOME/.config/picom
mkdir -p $HOME/.config/rofi
ln -bs "$config/alacritty/alacritty.yml" "$HOME/.config/alacritty/alacritty.yml"
ln -bs "$config/awesome/rc.lua" "$HOME/.config/awesome/rc.lua"
ln -bs "$config/fish/config.fish" "$HOME/.config/fish/config.fish"
ln -bs "$config/picom/picom.conf" "$HOME/.config/.picom/picom.conf"
ln -bs "$config/rofi/config.rasi" "$HOME/.config/.rofi/config.rasi"
# link doom files
ln -bs "$location/.doom.d" "$HOME/.doom.d"
}
install_packages
install_yay
install_yay_packages
setup_fisher
link_config_files
install_doom