-
Notifications
You must be signed in to change notification settings - Fork 1
/
arch-install.sh
executable file
·139 lines (121 loc) · 1.95 KB
/
arch-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
#!/usr/bin/env bash
###########################
# Maiste <[email protected]> #
# Arch Post install #
# Version 20240518 #
###########################
cd "$(dirname $0)/.."
. "./scripts/logger.sh"
print_header "Arch post installation"
print_root
print_section "pacman"
# Upgrade package
print_task "update pacman packages"
sudo pacman -Syu
TERMINAL_PKGS="foot\
ttf-jetbrains-mono-nerd \
ttf-hack \
ttf-font-awesome \
fastfetch"
# Install packages
SWAY_PKGS="sway \
swaybg \
swaylock \
wl-clipboard \
waybar \
kanshi \
dunst \
brightnessctl \
arc-gtk-theme \
papirus-icon-theme \
lxappearance \
network-manager-applet \
xdg-desktop-portal \
xdg-desktop-portal-wlr \
mpv \
imv \
glow \
ranger"
SYS_PKGS="stow \
zsh \
mosh \
curl \
wget \
zip \
unzip \
htop \
bluez \
bluez-utils \
blueberry \
pavucontrol \
flatpak \
cups \
hplip \
fwupd"
DEV_PKGS="neovim \
python-pip \
python-pynvim \
gcc \
make \
git \
tig \
m4 \
patch \
diffutils \
bubblewrap \
docker \
docker compose \
strace \
hyperfine \
zeal"
TOOL_PKGS="fzf \
ripgrep \
bat \
tree \
eza \
fd \
zoxyde \
git-delta \
pandoc \
texlive \
texlive-xetex \
texlive-latexmk \
zathura \
zathura-pdf-mupdf \
grim \
slurp \
obsidian \
simple-scan \
calibre \
libreoffice-fresh \
torbrowser-launcher \
transmission-gtk \
firefox"
AUR_PKGS="fswatch \
wlay \
tofi"
PACMAN_PKGS="$SYS_PKGS $SWAY_PKGS $DEV_PKGS $TOOL_PKGS"
print_task "pacman packages"
sudo pacman -Sy --noconfirm $PACMAN_PKGS
# --- Install Yay -- #
print_section "yay"
print_task "install yay"
which "yay" > /dev/null
if [[ $? -eq 1 ]] ; then
print_info "install Yay"
cd /tmp
sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ../
print_info "delete yay temporary directory"
rm -rf yay
print_success "yay installed"
else
skip_already_installed "yay"
fi
# Install AUR packages
print_task "installing AUR packages"
yay -Sy $AUR_PKGS
print_success "AUR packages installed"