From 3c3aacb2c9caecab382caed4ceb5e08f4c490f47 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 15 Sep 2021 23:09:20 +0800 Subject: [PATCH] feat: add plymouth.sh although it's not working --- gui/plymouth.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 gui/plymouth.sh diff --git a/gui/plymouth.sh b/gui/plymouth.sh new file mode 100755 index 0000000..f6b178a --- /dev/null +++ b/gui/plymouth.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e +DIR=$(dirname "$(readlink -f "$0")") +. "$DIR/../env.sh" + +log 'Setting up plymouth' + +# install dpes +case "$PM" in + apt) + # install build tools + echo "to do" + exit -1 + ;; + pacman) + ! has_cmd plymouth && yay -S --noconfirm --needed plymouth + ;; +esac + +# configuration +awk -F= '$1 == "HOOKS" && $2 !~ / udev plymouth / { sub(" udev ", " udev plymouth ") }; {print}' \ + /etc/mkinitcpio.conf \ + | sudo tee /etc/mkinitcpio.conf +#sudo mkinitcpio -p linux + +awk '$0 ~ "^GRUB_CMDLINE_LINUX_DEFAULT=" && $0 !~ / splash / { sub("quiet", "quiet splash vt.global_cursor_default=0") }; {print}' \ + /etc/default/grub \ + | sudo tee /etc/default/grub \ + && sudo grub-mkconfig -o /boot/grub/grub.cfg + +sudo plymouth-set-default-theme -R spinfinity