diff --git a/home/.chezmoiexternal.toml b/home/.chezmoiexternal.toml index 0d5f044c..1ce6de7e 100644 --- a/home/.chezmoiexternal.toml +++ b/home/.chezmoiexternal.toml @@ -24,6 +24,11 @@ url = "https://gitlab.com/megabyte-labs/misc/betelgeuse.git" clone.args = ["--depth", "1"] pull.args = ["--ff-only"] +[".local/src/candy-icons"] + type = "git-repo" + url = "https://github.com/EliverLara/candy-icons.git" + clone.args = ["--depth", "1"] + pull.args = ["--ff-only"] [".local/src/yoru"] type = "git-repo" url = "https://github.com/rxyhn/yoru.git" diff --git a/home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl index 86344cce..99bb5f8f 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl @@ -18,4 +18,15 @@ if dconf read /org/gnome/shell/enabled-extensions | grep dash-to-dock > /dev/nul fi fi +### Merge latest Candy icons into the Betelgeuse icon theme +if command -v rsync > /dev/null; then + if [ -d "$HOME/.local/src/candy-icons" ] && [ -d "/usr/local/share/icons/{{ .theme }}" ]; then + rsync -rtvu "$HOME/.local/src/candy-icons/" "/usr/local/share/icons/{{ .theme }}/" + else + logg warn 'Skipping synchronization of Candy icons since either the target or destination folder is not present' + fi +else + logg warn '`rsync` is missing from the system!' +fi + {{ end -}}