-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_onchange_configure-environment.sh
More file actions
64 lines (57 loc) · 1.02 KB
/
Copy pathrun_onchange_configure-environment.sh
File metadata and controls
64 lines (57 loc) · 1.02 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
#!/usr/bin/env bash
set -euo pipefail
all_packages=(
zsh
zsh-autosuggestions
zsh-completions
zsh-syntax-highlighting
fastfetch
bat
btop
yazi
waybar
rofi
kitty
cava
imagemagick
zoxide
neovim
swaync
starship
awww
nwg-look
matugen
hyprshot
hyprpolkitagent
fzf
eza
adw-gtk-theme
network-manager-applet
hyprlock
thunar
qt6ct
gvfs
thunar-volman
tumbler
ffmpegthumbnailer
)
echo "Dotfiles request packages/files to be installed for correct functionality."
echo "Checking installed packages..."
packages=()
installed=$(pacman -Qq)
for pkg in "${all_packages[@]}"; do
if ! grep -qx "$pkg" <<<"$installed"; then
packages+=("$pkg")
fi
done
if [[ ${#packages[@]} -eq 0 ]]; then
echo "All packages already installed. Continuing."
else
echo "Packages to be installed (pacman): ${packages[@]}"
read -rp "Continue to install? (y/n) " decision
if [[ "$decision" == [yY] || -z "$decision" ]]; then
sudo pacman -S --needed "${packages[@]}"
else
echo "Not proceeding with package installation."
fi
fi