BetterFrame/deploy/plymouth/betterframe/betterframe.script
Mitchell R 85a0bcae87 feat(deploy): BetterFrame plymouth boot splash
Replace Pi rainbow + kernel boot text with a black BG + centered BF logo
during boot. Installer renders logo.png from the existing SVG asset via
rsvg-convert, drops a script-based plymouth theme, and appends the
quiet/splash flags to cmdline.txt + disable_splash=1 in config.txt.

cmdline.txt edits are idempotent: each flag only added if missing.
2026-05-13 03:21:37 +02:00

18 lines
790 B
Text

// BetterFrame plymouth splash: solid black background, centered logo.
// Logo is generated from server/src/web-static/betterframe-logo.svg at
// install time by setup-pi-kiosk.sh (rsvg-convert → logo.png).
Window.SetBackgroundTopColor(0.0, 0.0, 0.0);
Window.SetBackgroundBottomColor(0.0, 0.0, 0.0);
logo.image = Image("logo.png");
logo.sprite = Sprite(logo.image);
logo.sprite.SetX(Window.GetWidth() / 2 - logo.image.GetWidth() / 2);
logo.sprite.SetY(Window.GetHeight() / 2 - logo.image.GetHeight() / 2);
// Hide all message and progress reporting — keep the splash clean.
fun message_callback (text) { }
fun update_status_callback (status) { }
fun display_password_callback (prompt, bullets) { }
fun display_question_callback (prompt, entry) { }
fun display_normal_callback () { }