This script generates a two-step theme for Plymouth that shows a randomly chosen Pokemon jumping until the boot process is finished.
Icons are from oakdex-pokedex-sprites.
$ git clone https://github.com/realChesta/plymouth-pokemon.git
$ cd plymouth-pokemon
$ sudo sh pokemon-generator(pokemon-generator has to be run with elevated privileges.)
Use pokemon-generator -u to automatically copy the generated theme into the themes directory and update the plymouth configuration.
The option -k instructs the script to keep the temporarily created resized pokemon image ($TEMP_IMG).
The option -p makes the script keep a pokenum-prev.txt file containing the number of the previousy generated Pokemon.
Run pokemon-generator -u once per boot and enjoy a new Pokemon every time you boot!
There are multiple variables in the script that can easily be adjusted to tweak its functionality:
PICK_RANGEis the range of National PokeDex numbers to be included in the Pokemon selection.ICON_LOCATIONdetermines where the the folder containing the icons is located.ANIMATION_LENGTHsets how many frames the animation should contain.JUMP_HEIGHTis the jump height in pixels (the canvas is 256x256)DOUBLE_FINISH_ANIMATIONif this is set totrue, the pokemon will jump twice before booting is completed (as opposed to once)