-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·47 lines (37 loc) · 1.03 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
#!/usr/bin/bash
set -e
dotfiles=$(dirname "$(realpath "$0")")
mkdir --verbose --parents \
~/.cache \
~/.config \
~/.local/bin \
~/.local/share \
~/.local/state \
~/Documents \
~/Downloads \
~/Media/images/screenshots \
~/Media/music \
~/Media/videos \
~/archives \
~/bin \
~/projects \
~/repos
stow --verbose --dir "$dotfiles" --target ~ home
# quote heredoc label to avoid expanding variables
cat >> ~/.bashrc << 'BASH'
# shellcheck source=.config/bash/.bashrc
[[ -f ~/.config/bash/.bashrc ]] && source ~/.config/bash/.bashrc
BASH
if ! command -v paru > /dev/null; then
# Download the binary version to avoid compilation
git clone https://aur.archlinux.org/paru-bin.git ~/repos/paru-bin
cd ~/repos/paru-bin
makepkg --syncdeps --install
fi
paru -S --needed - < "$dotfiles/etc/packages.txt"
paru -S --needed - < "$dotfiles/etc/aur-packages.txt"
systemctl --user enable \
tldrcache.timer \
org.gnome.GPaste.service
# set keyboard layout
localectl set-x11-keymap latam