diff options
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -339,6 +339,24 @@ if [ -d "$sddm_repo/theme" ]; then echo " printf '[Theme]\\nCurrent=udt\\n' > /etc/sddm.conf.d/udt.conf" fi +# GRUB. Same shape as SDDM: udt-palette has rendered theme.txt, the sibling +# repo's build assembles the theme as the user, and the root half is printed. +# A copy, not a link: GRUB reads /boot before /home is mounted. The background +# is a snapshot of the wallpaper, so the copy needs rerunning after a scheme +# or wallpaper change; grub-mkconfig only when GRUB_THEME changes. +grub_repo="$(realpath -m "$repo/../grub-theme-udt")" +if [ -x "$grub_repo/build" ]; then + if "$grub_repo/build"; then + echo + echo "grub theme: run these as root to install or refresh it" + echo " rm -rf /boot/grub/themes/udt && cp -r \"$grub_repo/build/udt\" /boot/grub/themes/" + echo " # once: GRUB_THEME=\"/boot/grub/themes/udt/theme.txt\" in /etc/default/grub, then" + echo " grub-mkconfig -o /boot/grub/grub.cfg" + else + echo "grub: its build failed, theme not refreshed" >&2 + fi +fi + [ -n "$reloaded" ] && echo "reloaded:$reloaded" echo "installed:" |
