[chezmoi] Add new onchange script templates
Some checks are pending
/ doom (push) Blocked by required conditions
Some checks are pending
/ doom (push) Blocked by required conditions
This commit is contained in:
parent
384b54a275
commit
09b89d7020
3 changed files with 179 additions and 0 deletions
4
run_onchange-configure-systemd.sh.tmpl
Normal file
4
run_onchange-configure-systemd.sh.tmpl
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# systemd-hash: {{ glob "~/.config/systemd/user/*" | join "" | sha256sum }}
|
||||
systemctl --user daemon-reload
|
12
run_onchange-install-email-certificates.sh.tmpl
Normal file
12
run_onchange-install-email-certificates.sh.tmpl
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eo pipefail
|
||||
set -xv
|
||||
|
||||
{{ if hasKey . "mail" -}}
|
||||
{{ range .mail.accounts -}}
|
||||
{{ if hasKey . "certificate" -}}
|
||||
echo '{{ .certificate }}' >"${HOME}/.cert/email-cert-{{ .name }}.pem"
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
163
run_onchange-install-packages.sh.tmpl
Normal file
163
run_onchange-install-packages.sh.tmpl
Normal file
|
@ -0,0 +1,163 @@
|
|||
#!/usr/bin/env bash
|
||||
exit 0
|
||||
ADD=(
|
||||
"gopass"
|
||||
"git-credential-gopass"
|
||||
"emacs-wayland"
|
||||
"ttf-jetbrains-mono-nerd"
|
||||
"otf-font-awesome"
|
||||
"sway-dynamic-names"
|
||||
"otf-ibm-plex"
|
||||
"otf-openmoji"
|
||||
"vim"
|
||||
"libvterm"
|
||||
"emacs-libvterm-git"
|
||||
"tmux"
|
||||
"aspell"
|
||||
"aspell-de"
|
||||
"aspell-en"
|
||||
"bat"
|
||||
"bemenu"
|
||||
"bibata-cursor-theme"
|
||||
"blesh"
|
||||
"borg"
|
||||
"borgmatic"
|
||||
"clang"
|
||||
# "clang-toolchain"
|
||||
"clipman"
|
||||
"cloc"
|
||||
"curl"
|
||||
"curlie"
|
||||
"direnv"
|
||||
"distrobox"
|
||||
"dmenu"
|
||||
"dragon-drop"
|
||||
"editorconfig-core-c"
|
||||
"emacs-pgtk"
|
||||
"glibc-locales"
|
||||
"libvterm"
|
||||
"meson"
|
||||
"enchant"
|
||||
"entr"
|
||||
"eza"
|
||||
"fd"
|
||||
"ffmpeg"
|
||||
"ffmpegthumbnailer"
|
||||
"font-ibm-plex"
|
||||
"font-jetbrains-mono"
|
||||
"font-openmoji"
|
||||
"foot"
|
||||
"fzf"
|
||||
"ghostscript"
|
||||
"gimp"
|
||||
"git"
|
||||
"git-delta"
|
||||
"glibc-locales"
|
||||
"glibc-locales"
|
||||
"gnupg"
|
||||
"gnuplot"
|
||||
"gnuplot"
|
||||
"gopls"
|
||||
"grim"
|
||||
"guile"
|
||||
"guile"
|
||||
"guile-colorized"
|
||||
"guile-readline"
|
||||
"hledger"
|
||||
"htop"
|
||||
"httpie"
|
||||
"i3status-rust"
|
||||
"imagemagick"
|
||||
"isync"
|
||||
"j4-dmenu-desktop"
|
||||
"jq"
|
||||
"openssl"
|
||||
"khal"
|
||||
"khard"
|
||||
"ledger"
|
||||
"distrobox"
|
||||
"podman"
|
||||
"flatpak"
|
||||
"libqalculate"
|
||||
"libreoffice"
|
||||
"mako"
|
||||
"mediainfo"
|
||||
"msmtp"
|
||||
"tree-sitter"
|
||||
"mtr"
|
||||
"mu"
|
||||
"mu"
|
||||
"ncmpcpp"
|
||||
"nextcloud-client"
|
||||
"pandoc"
|
||||
"pavucontrol"
|
||||
"pinentry-bemenu"
|
||||
"pinentry-emacs"
|
||||
"pinentry"
|
||||
"playerctl"
|
||||
"pngquant"
|
||||
"poppler"
|
||||
"prusa-slicer"
|
||||
"pwgen"
|
||||
"python-mpmath"
|
||||
"qt6-wayland"
|
||||
"qutebrowser"
|
||||
"ripgrep"
|
||||
"ruby"
|
||||
"scrot"
|
||||
"shellcheck"
|
||||
"slurp"
|
||||
"slurp"
|
||||
"socat"
|
||||
"socat"
|
||||
"sqlite"
|
||||
"sway"
|
||||
"swayidle"
|
||||
"swaylock"
|
||||
"starship"
|
||||
"wlsunset"
|
||||
"swayr"
|
||||
"swappy"
|
||||
"syncthing"
|
||||
"tig"
|
||||
"todoman"
|
||||
"upower"
|
||||
"vdirsyncer"
|
||||
"zsa-wally-cli"
|
||||
"wf-recorder"
|
||||
"wl-clipboard"
|
||||
"wmenu"
|
||||
"wol"
|
||||
"wtype"
|
||||
"xcursor-themes"
|
||||
"yaru-theme"
|
||||
"ydotool"
|
||||
"ykclient"
|
||||
"yq"
|
||||
"yt-dlp"
|
||||
"yubikey-oath-dmenu"
|
||||
"yubikey-personalization"
|
||||
"zathura"
|
||||
"zathura-pdf-poppler"
|
||||
"zoxide"
|
||||
"chromium"
|
||||
)
|
||||
|
||||
REMOVE=(
|
||||
firefox
|
||||
)
|
||||
|
||||
LOG=$(mktemp)
|
||||
|
||||
yay -S --needed --noconfirm "${ADD[@]}"
|
||||
exit 0
|
||||
for PACKAGE in "${ADD[@]}"; do
|
||||
if ! yay -Qs "^${PACKAGE}$" > /dev/null; then
|
||||
echo "Installing: ${PACKAGE}"
|
||||
if ! yay -S --noconfirm "${PACKAGE}" >> "${LOG}" ; then
|
||||
echo "Failed to install ${PACKAGE}"
|
||||
fi;
|
||||
else
|
||||
echo "Already installed: ${PACKAGE}"
|
||||
fi;
|
||||
done
|
Loading…
Reference in a new issue