-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_onchange_install-packages.sh.tmpl
executable file
·76 lines (60 loc) · 1.15 KB
/
run_onchange_install-packages.sh.tmpl
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
#!/bin/sh
read -r -d '' deps << EOM
dunst
eww-wayland-git socat
qt5-styleplugins
tela-icon-theme-bin
orchis-theme
swaybg slurp grim wl-clipboard xdg-desktop-portal-hyprland-git
{{- if .nvidia}}
hyprland-nvidia-git
{{- else}}
hyprland-git
{{- end}}
neovim
python-pynvim
ripgrep
ttf-roboto-mono-nerd
ttf-material-design-icons-git
python-rofi-git peerflix
polkit-kde-agent
python python-pip python-babel python-pygments colorpicker
alacritty
syslog-ng-openrc python-requests
vscode-css-languageserver
vscode-html-languageserver
vscode-json-languageserver
lua-language-server
typescript-language-server
prettier
EOM
function checkInstalled() {
package="$1"
pacman -Qi "$package" >/dev/null 2>&1
}
function checkAllInstalled() {
for package in $deps; do
if ! checkInstalled "$package"; then
echo "Missing: $package"
return 1
fi
done
return 0
}
if checkAllInstalled; then
echo "All needed packages are already installed"
exit 0
fi
set -x
paru --sudoloop --needed -S $deps
#libnotify bspwm hsetroot
#copyq
# oreo-cursors-git
#nodejs
#npm
#the_silver_searcher
#xclip
#picom-git
#polybar terminus-font
# python-dbus python-gobject
#sxhkd qutebrowser