diff options
| author | Nippy <nippy@rp1.hu> | 2026-07-18 09:31:11 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-07-18 09:31:41 +0200 |
| commit | e8fb93649bbceb314c691493dbc1cda2e7a0ffa6 (patch) | |
| tree | 1fe5a43ffb6fc22efab06024b254eb3178a11282 /plymouth-assets/raveos-installed.script | |
| parent | 38dc95bc02f867462ee4ad0f542501c95ad1219f (diff) | |
| download | RaveOS-build-iso-e8fb93649bbceb314c691493dbc1cda2e7a0ffa6.tar.gz RaveOS-build-iso-e8fb93649bbceb314c691493dbc1cda2e7a0ffa6.zip | |
new btrfs
Diffstat (limited to 'plymouth-assets/raveos-installed.script')
| -rw-r--r-- | plymouth-assets/raveos-installed.script | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/plymouth-assets/raveos-installed.script b/plymouth-assets/raveos-installed.script new file mode 100644 index 0000000..90ee177 --- /dev/null +++ b/plymouth-assets/raveos-installed.script @@ -0,0 +1,70 @@ +// RaveOS Plymouth boot splash script (installed system) + +Window.SetBackgroundTopColor(0.102, 0.106, 0.114); +Window.SetBackgroundBottomColor(0.075, 0.078, 0.086); + +screen_width = Window.GetWidth(); +screen_height = Window.GetHeight(); + +// --- logo: owl icon, centered --- + +owl_image = Image("raveos-owl.png"); +owl_width = owl_image.GetWidth(); +owl_height = owl_image.GetHeight(); + +logo_scale = 0.36; +owl_width = owl_width * logo_scale; +owl_height = owl_height * logo_scale; +owl_image = owl_image.Scale(owl_width, owl_height); + +owl_sprite = Sprite(owl_image); + +owl_x = screen_width / 2 - owl_width / 2; +owl_y = screen_height / 2 - owl_height / 2 - 20; +owl_sprite.SetPosition(owl_x, owl_y, 10); + +// --- status text: single static message --- + +status_image = Image("status-installed.png"); +status_scale = 0.5; +status_image = status_image.Scale(status_image.GetWidth() * status_scale, + status_image.GetHeight() * status_scale); +status_sprite = Sprite(status_image); +status_sprite.SetX(screen_width / 2 - status_image.GetWidth() / 2); +status_sprite.SetY(owl_y + owl_height + 40); +status_sprite.SetZ(10); + +Plymouth.SetBootProgressFunction(fun(duration, progress) +{ +}); + +// --- password prompt (LUKS unlock) --- + +fun display_password_callback(prompt, bullets) +{ + local.text = prompt; + if (local.text == "") + local.text = "Enter passphrase to unlock disk"; + + prompt_image = Image.Text(local.text, 0.9, 0.9, 0.9, 1, "Ubuntu Mono 11"); + bullets_image = Image.Text(bullets, 0.36, 0.66, 0.32, 1, "Ubuntu Mono 11"); + + prompt_sprite = Sprite(prompt_image); + bullets_sprite = Sprite(bullets_image); + + prompt_sprite.SetPosition(screen_width / 2 - prompt_image.GetWidth() / 2, + screen_height / 2 + 80, 20); + bullets_sprite.SetPosition(screen_width / 2 - bullets_image.GetWidth() / 2, + screen_height / 2 + 110, 20); +} +Plymouth.SetDisplayPasswordFunction(display_password_callback); + +fun display_normal_callback() +{ +} +Plymouth.SetDisplayNormalFunction(display_normal_callback); + +fun quit_callback() +{ +} +Plymouth.SetQuitFunction(quit_callback); |