splash/

directory
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT, MIT

README

lys-splash

lys-splash

The boot splash of lys, in place of Plymouth. It starts in the initrd, draws on every output, asks for disk passwords, survives the switch to the real root and hands its last frame to the display manager.

Documentation

The boot splash

It speaks plymouthd's socket protocol and answers to plymouth's command line, so systemd, its password agents and cryptsetup's scripts work with it unchanged. It is one static, pure-Go binary with its theme, font and logo embedded.

Install

NixOS, with inputs.lys.url = "github:stubbedev/lys";:

{
  imports = [lys.nixosModules.lys-splash];
  boot.lys-splash.enable = true;
}

Ubuntu and Debian: copy the package's compat output under /usr; see the install guide.

Use

The next boot shows the splash. Esc toggles the boot messages. plymouth.enable=0 on the kernel command line boots without it. The theme is /etc/lys-splash/theme.yaml:

accent: "#7aa2f7"
throbber: dots

Do not start the daemon on a running desktop: it takes over the display.

License

MIT. The embedded font is Inter Regular under the SIL Open Font License 1.1 (internal/theme/assets/LICENSE-Inter.txt); the logo is lys's.

Directories

Path Synopsis
cmd
lys-splash command
Command lys-splash is the lys desktop's boot splash.
Command lys-splash is the lys desktop's boot splash.
internal
ask
Package ask answers the protocol's password, question, cached-password and keystroke requests from what is typed: prompts queue and show one at a time, oldest first, every password typed is cached for the next disk, and every buffer that held a secret is zeroed once it is no longer needed.
Package ask answers the protocol's password, question, cached-password and keystroke requests from what is typed: prompts queue and show one at a time, oldest first, every password typed is cached for the next disk, and every buffer that held a secret is zeroed once it is no longer needed.
asynclog
Package asynclog gives a slog.Handler to code that must not wait for where the log goes: /dev/kmsg blocks while the kernel console flushes, and a pipe while its reader sleeps.
Package asynclog gives a slog.Handler to code that must not wait for where the log goes: /dev/kmsg blocks while the kernel console flushes, and a pipe while its reader sleeps.
client
Package client is the plymouth command line: each subcommand and option becomes requests to the daemon, and the daemon's responses become the exit status and output plymouth's client gives, so scripts that call plymouth keep working.
Package client is the plymouth command line: each subcommand and option becomes requests to the daemon, and the daemon's responses become the exit status and output plymouth's client gives, so scripts that call plymouth keep working.
console
Package console owns the virtual terminal while the splash shows: it keeps the kernel's text off the splash, reads keys already mapped by the console's keymap, and shows the splash as text when there is no graphical output.
Package console owns the virtual terminal while the splash shows: it keeps the kernel's text off the splash, reads keys already mapped by the console's keymap, and shows the splash as text when there is no graphical output.
daemon
Package daemon is the splash process: it serves plymouthd's protocol, draws the theme on every output or as text on the VT, answers prompts from the keyboard and follows the protocol's lifecycle from boot to quit.
Package daemon is the splash process: it serves plymouthd's protocol, draws the theme on every output or as text on the VT, answers prompts from the keyboard and follows the protocol's lifecycle from boot to quit.
key
Package key is the keyboard input the splash acts on: characters already mapped by the console's keymap, and the few keys that edit or answer a prompt.
Package key is the keyboard input the splash acts on: characters already mapped by the console's keymap, and the few keys that edit or answer a prompt.
kms
Package kms lights every output of every DRM card on two linear XRGB8888 dumb buffers and flips frames to them with atomic commits, one per vblank, copying only what changed.
Package kms lights every output of every DRM card on two linear XRGB8888 dumb buffers and flips frames to them with atomic commits, one per vblank, copying only what changed.
kmsg
Package kmsg logs to the kernel's log buffer, the one place a daemon with no terminal and no journald yet can reach from the initramfs on.
Package kmsg logs to the kernel's log buffer, the one place a daemon with no terminal and no journald yet can reach from the initramfs on.
protocol
Package protocol is plymouthd's socket protocol: the requests systemd, its password agents and the plymouth client send, and the responses the daemon answers with, encoded and decoded over a byte stream.
Package protocol is plymouthd's socket protocol: the requests systemd, its password agents and the plymouth client send, and the responses the daemon answers with, encoded and decoded over a byte stream.
server
Package server serves plymouthd's socket protocol: it accepts connections on the abstract socket, decodes their requests and hands each one to a Handler, which answers it at once or later.
Package server serves plymouthd's socket protocol: it accepts connections on the abstract socket, decodes their requests and hands each one to a Handler, which answers it at once or later.
theme
Package theme is how the splash looks: the validated theme.yaml, and the drawing of a frame from the splash's state, damage included, with no KMS underneath so tests can render it.
Package theme is how the splash looks: the validated theme.yaml, and the drawing of a frame from the splash's state, damage included, with no KMS underneath so tests can render it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL