-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·74 lines (60 loc) · 2.16 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
function dependency {
pacman -Qi $1 &> /dev/null && return
read -p "Depenencies required: Do you want to install '$1'? [Y/n] " choice
if [[ "${choice^^}" != N ]]; then
sudo pacman -S --needed $1
fi
}
# Just making sure
mkdir -p ~/.config
echo "Installing picom…"
dependency "picom"
mkdir -p ~/.config/picom
ln --force ./files/picom.conf ~/.config/picom/picom.conf
echo "Installing NeoVim…"
dependency "python python-pynvim neovim"
mkdir -p ~/.config/nvim/.backup
ln --force ./files/init.vim ~/.config/nvim/init.vim
echo "Installing binaries…"
ln -sr --force ./files/bin ~/
echo "Installing i3…"
dependency "i3-gaps"
mkdir -p ~/.config/i3
ln --force ./files/i3config ~/.config/i3/config
echo "Installing X…"
dependency "xorg-xinit xorg-server"
ln --force ./files/xinitrc ~/.xinitrc
ln --force ./files/XCompose ~/.XCompose
echo "Installing Zsh…"
dependency "zsh zsh-autosuggestions"
ln --force ./files/zshrc ~/.zshrc
ln --force ./files/zprofile ~/.zprofile
ln -sr --force ./files/zsh ~/.config/
echo "Installing WeeChat…"
dependency "weechat"
mkdir -p ~/.weechat
ln --force ./files/weechat/weechat.conf ~/.weechat/weechat.conf
ln --force ./files/weechat/buflist.conf ~/.weechat/buflist.conf
ln --force ./files/weechat/irc.conf ~/.weechat/irc.conf
ln -sr --force ./files/weechat/python ~/.weechat/
echo "Installing Pipewire…"
dependency "pipewire-pulse"
mkdir -p ~/.config/pipewire/pipewire.conf.d
ln --force ./files/pipewire_mono.conf ~/.config/pipewire/pipewire.conf.d/mono.conf
echo "Setting up Alacritty…"
dependency "ttf-fira-mono"
mkdir -p ~/.config/alacritty
ln --force ./files/alacritty.toml ~/.config/alacritty/alacritty.toml
echo "Setting up XDG directory names…"
ln --force ./files/xdg.dirs ~/.config/user-dirs.dirs
echo "Setting up GTK theme…"
mkdir -p ~/.config/gtk-3.0
mkdir -p ~/.config/gtk-4.0
ln --force ./files/gtk3-settings.ini ~/.config/gtk-3.0/settings.ini
ln --force ./files/gtk4-settings.ini ~/.config/gtk-4.0/settings.ini
echo "Setting up systemd services…"
dependency "rsync nfs-utils"
sudo ln --force ./files/systemd/* /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now backup.timer