-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·85 lines (72 loc) · 1.48 KB
/
setup.sh
File metadata and controls
executable file
·85 lines (72 loc) · 1.48 KB
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
#!/bin/bash
# TODO:
# * Configure Ly as desktop manager
confirm_proceed() {
if [ "$1" != "" ]; then
echo $1
fi
read -p "Do you want to proceed? (y/N): " yn
case $yn in
y) echo "proceeding..." ;;
*)
echo "bye!"
exit
;;
esac
}
install_pkgs() {
sudo pacman -Syu \
zsh \
waybar \
hyprlock \
hyprpaper \
hyprsunset \
hyprshot \
rofi \
kitty \
ttf-font-awesome \
noto-fonts-emoji \
nwg-displays \
ly \
brightnessctl \
playerctl
sudo pacman -Syu \
btop \
neovim \
htop \
nvtop \
eza
sudo pacman -Syu \
yazi \
zellij \
fastfetch \
imagemagick \
cava \
grim \
bat \
unzip
sudo pacman -Syu \
firefox \
go
go install golang.org/x/tools/gopls@latest
go install github.com/nametake/golangci-lint-langserver@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
# installing oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
}
configure_symlinks() { # issue with files that already exist
ln -s ~/.config/.zshrc ~/.zshrc
ln -s ~/.config/fonts ~/.local/share/fonts
}
main() {
confirm_proceed "Configuring the following user: $(whoami)"
echo "[!] Installing the following packages: "
declare -f install_pkgs
confirm_proceed
install_pkgs
echo "[!] Creating the following symlinks:"
declare -f configure_symlinks
confirm_proceed
configure_symlinks
}
main