From d48916dbb1072902b9f7b7527df07d5833b75958 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 24 Jan 2023 11:29:33 +0000 Subject: [PATCH] Update 3 files - /home/dot_local/bin/executable_install-gnome-extensions - /home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl - /home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl --- .../run_onchange_before_10-remove-bloatware.tmpl | 4 ++++ .../universal/run_onchange_after_99-restart-gnome.tmpl | 10 ++++++++++ home/dot_local/bin/executable_install-gnome-extensions | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl diff --git a/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl b/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl index 0de8367e..5fbdf8e7 100644 --- a/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl +++ b/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl @@ -6,6 +6,10 @@ {{- $removePackages := join " " .removeLinuxPackages }} +echo "HEREEEE" +echo '{{ $removePackages }}' +echo "DONNEEEE" + ### Remove bloatware packages defined in .chezmoidata.yaml for PKG in {{ $removePackages }}; do if command -v apk > /dev/null; then diff --git a/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl new file mode 100644 index 00000000..1027daba --- /dev/null +++ b/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl @@ -0,0 +1,10 @@ +{{- if eq .host.distro.family "linux" -}} +#!/usr/bin/env bash + +### Restart GNOME +if command -v gnome-shell > /dev/null; then + logg info 'Reloading `gnome-shell`' + killall -3 gnome-shell +fi + +{{ end -}} diff --git a/home/dot_local/bin/executable_install-gnome-extensions b/home/dot_local/bin/executable_install-gnome-extensions index 40a6ee90..1efd97df 100644 --- a/home/dot_local/bin/executable_install-gnome-extensions +++ b/home/dot_local/bin/executable_install-gnome-extensions @@ -13,6 +13,9 @@ # # ################################################################# +### NOTE ### +# The upstream project might not work - some modification was necessary on this file + #vars script_revision="v1.2.1" args_count="$#"