diff --git a/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl index 4e7b1a87..7386aca8 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl @@ -66,4 +66,12 @@ fi ### Note: ubuntu-default-greyscale-wallpaper.png symlink to whiteish gray background +### Set appropriate platform-specific icon in plymouth theme +if [ -f '/usr/local/share/plymouth/themes/{{ .theme }}/icons/{{ .host.distro.id }}.png' ]; then + sudo cp -f '/usr/local/share/plymouth/themes/{{ .theme }}/icons/{{ .host.distro.id }}.png' '/usr/local/share/plymouth/themes/{{ .theme }}/icon.png' + logg success 'Added platform-specific icon to {{ .theme }} Plymouth theme' +else + logg warn 'The `{{ .host.distro.id }}.png` icon is not available in the icons folder insider the {{ .theme }} Plymouth theme' +fi + {{ end -}} diff --git a/home/.chezmoiscripts/universal/run_onchange_after_61-plymouth-settings.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_61-plymouth-settings.tmpl index f3d4d90f..0ac974ba 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_61-plymouth-settings.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_61-plymouth-settings.tmpl @@ -66,9 +66,7 @@ fi if [ "$DEBUG_MODE" != 'true' ]; then if command -v update-initramfs > /dev/null; then logg info 'Running `sudo update-initramfs -u`' - if [ "$DEBUG_MODE" != 'true' ]; then - sudo update-initramfs -u - fi + sudo update-initramfs -u logg success 'Updated kernel / initrd images for Plymouth' elif command -v dracut > /dev/null; then logg info 'Running `sudo dracut --regenerate-all -f`'