Add dust drift to the Plymouth shutdown logo - #10345
Open
ealdent wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I wanted the shutdown logo to break apart and drift away. This adds a dust-drift effect to the Plymouth theme using the existing logo and colors.
The logo crumbles from right to left, drifts upward, and fades to the background. The effect runs only during shutdown. Boot, reboot, and update modes keep the static logo. A password prompt cancels the animation and restores the logo.
Dust drift is enabled by default, with a target duration of 2.4 seconds at 30 fps. It uses at most 600 particles and prepares image crops and smaller images once. There are no new runtime dependencies or added shutdown waits. A fast poweroff can cut the animation short.
ShutdownAnimation=nonekeeps the static logo.ShutdownDurationaccepts 0.8–5 seconds and falls back to 2.4 for invalid values.Testing
bash test/shell.d/plymouth-animation-test.shpasses against the native Plymouth script plugin, covering completion, disabled and invalid settings, duration limits, password prompts, boot progress, messages, and custom logos.bash test/shell.d/plymouth-set-test.shpasses../test/all: CLI tests pass; 228 of 229 shell-test files pass. The remainingbin-style-test.shfailure flagsomarchy-remove-ai-openclawand also reproduces on unmodified upstreameb56446.