[chezmoi] Add new onchange script templates
Some checks are pending
/ doom (push) Blocked by required conditions

This commit is contained in:
Sebastian Schulze 2024-09-09 19:43:42 +02:00
parent 384b54a275
commit 09b89d7020
No known key found for this signature in database
GPG key ID: F6BA63C6A7D3044E
3 changed files with 179 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# systemd-hash: {{ glob "~/.config/systemd/user/*" | join "" | sha256sum }}
systemctl --user daemon-reload

View 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 }}

View 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