From 56cbb7e535c98fc65a482ef50df6235cd282cb02 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 12 Jan 2023 07:08:41 +0000 Subject: [PATCH] Update 2 files - /home/.chezmoiexternal.toml - /home/.chezmoiscripts/universal/run_onchange_after_70-misc-bug-fixes.tmpl --- home/.chezmoiexternal.toml | 5 +++++ .../run_onchange_after_70-misc-bug-fixes.tmpl | 11 +++++++++++ 2 files changed, 16 insertions(+) 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 -}}