Skip to content

Configuration and themes ​

The only configuration file is the theme: /etc/lys-splash/theme.yaml, or the file --theme names. Without it the defaults apply; a field left out keeps its default. The colour defaults are the desktop's default palette (desktop/tokens), the same one the lys-login greeter and lock screen draw with.

FieldValuesDefaultEffect
background#rrggbb#000000Background colour
foreground#rrggbbthe palette's text colourMessage and prompt text
secondary#rrggbbthe palette's muted text colourUnit names, the disk under a prompt, placeholder and prompt hints
accent#rrggbbthe palette's primary colourThe lys logo, the throbber, progress bars and the lock over a prompt
error#rrggbbthe palette's redThe field's ring and the "Incorrect passphrase" line when a disk asks again
logofirmware, lysfirmwarefirmware: the firmware's logo (ACPI BGRT) if it left one on screen, else lys's. lys: always lys's
throbberspinner, dotsspinnerBusy animation
unitsboolfalseShows the name of each unit systemd starts on its own line under the message, in the secondary size and colour
prompt-hintsbooltrueAdds "Caps Lock is on" and the console keymap to the hints under a prompt's field, beside "Esc: boot messages"
reduced-motionboolfalseCuts instead of fading: no fade in from the firmware, no crossfade between states, no fade out before a hand-over or the power going, and the lys-login greeter replaces the splash's last frame in one cut

The default background is black so the firmware's logo, drawn on black, blends in. The lys logo is drawn in the accent, the palette's primary colour by default, and the text in Inter Regular, the desktop's default font; the splash records the logo's colour for the greeter, which takes over in the same colour and typeface. The logo image, the font, the scale and the length of the fades are not configurable; Fades lists them.

yaml
accent: "#7aa2f7"
throbber: dots
units: true

prompt-hints:

A password prompt with the Caps Lock warning

throbber: dots:

The boot splash with three dots as its throbber

Applying it ​

SystemHow
NixOSSet boot.lys-splash.theme (same fields); the module writes the file into the initrd and the system
Ubuntu, DebianEdit /etc/lys-splash/theme.yaml, then sudo update-initramfs -u so the hook copies it into the image
Running splashlys-splash reload re-reads the file
nix
{
  boot.lys-splash.theme = {
    accent = "#7aa2f7";
    throbber = "dots";
  };
}

Invalid themes ​

A theme with an unknown field, a colour that is not #rrggbb or a value outside its list is rejected whole: the splash logs a warning naming the file, line and field, and draws the embedded theme. The NixOS option is not validated at build time. See where the logs are.

Released under the MIT License.