From 830bbbd176af493a7c2f4d4ca0073737d77e1b81 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 1 Feb 2023 21:03:35 +0000 Subject: [PATCH] Update file run_onchange_after_61-plymouth-settings.tmpl --- .../run_onchange_after_61-plymouth-settings.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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=$?