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 0ac974ba..80f7fd39 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_61-plymouth-settings.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_61-plymouth-settings.tmpl @@ -28,7 +28,7 @@ fi if [ -f /etc/plymouth/plymouthd.conf ]; then logg info 'Setting ShowDelay=1 in /etc/plymouth/plymouthd.conf' if cat /etc/plymouth/plymouthd.conf | grep ShowDelay; then - sudo sed -i '/^ShowDelay=.*/ShowDelay=1/' /etc/plymouth/plymouthd.conf + sudo sed -i 's/^ShowDelay=.*/ShowDelay=1/' /etc/plymouth/plymouthd.conf else echo 'ShowDelay=1' | sudo tee -a /etc/plymouth/plymouthd.conf fi @@ -36,6 +36,12 @@ else logg warn '/etc/plymouth/plymouthd.conf does not exist!' fi +### Symlink /usr/local/share/plymouth/themes to /usr/share/plymouth/themes +if [ ! -d '/usr/share/plymouth/themes/{{ .theme }}' ]; then + logg info 'Symlinking /usr/local/share/plymouth/themes/{{ .theme }} to /usr/share/plymouth/themes/{{ .theme }}' + sudo ln -s '/usr/local/share/plymouth/themes/{{ .theme }}' '/usr/share/plymouth/themes/{{ .theme }}' +fi + ### Set default Plymouth theme if command -v plymouth-set-default-theme > /dev/null; then sudo plymouth-set-default-theme -R '{{ .theme }}' || EXIT_CODE=$?