-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_once_install-packages.sh.tmpl
50 lines (35 loc) · 1.51 KB
/
run_once_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
#!/bin/bash
exit 0
{{ $packages := list }}
{{/* shell */}}
{{ $packages = concat $packages ( list "fzf" ) }}
{{/* essential utililties */}}
{{ $packages = concat $packages ( list "htop" "nmon" "wget" "fd" "libqalculate" "nano" "pigz" "pv" "ncdu" "jq" "screen" "usbutils" "ripgrep" "bat" "git-delta-bin" "duf-bin" ) }}
{{/* python */}}
{{ $packages = concat $packages ( list "python-numpy" "python-scipy" "python-matplotlib" "python-pyserial" ) }}
{{/* desktop stuff */}}
{{ if hasKey . "monitors" }}
{{/* i3 */}}
{{ $packages = concat $packages ( list "i3-gaps" "i3lock-color-git" "compton" "polybar" "nerd-fonts-iosevka" "noto-fonts" ) }}
{{ $packages = concat $packages ( list "dmenu" "j4-dmenu-desktop" "feh" "scrot" "xclip" ) }}
{{ $packages = concat $packages ( list "alacritty" "nemo" ) }}
{{ $packages = concat $packages ( list "python-fontawesome" "python-i3ipc" ) }}
{{ if .is_laptop }}
# "xorg-xbacklight"
{{ end }}
{{/* media */}}
{{ $packages = concat $packages ( list "inkscape" "audacity" "gimp" "vlc" "pix" ) }}
{{/* coding */}}
# "code"
{{/* commandline */}}
{{ $packages = concat $packages ( list "imagemagick" ) }}
{{ end }}
{{define "join"}}{{ range . -}}{{ print . }} {{ end }}{{end}}
if pacman -Qi {{ template "join" $packages}} > /dev/null; then
exit 0
fi
read -p "there are missing pacakges, install ? [y/N] " -r
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
yay --norebuild --nocleanmenu --nodiffmenu --needed -S {{ template "join" $packages}}