rafauke / plymouth-theme-chain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plymouth Theme Chain

Description

This is a custom theme for Plymouth inspired by the blockchain theme in plymouth themes.

Preview

GIF Loading Password
gif png png

Installation

Simply place the content of this repo in /usr/share/plymouth/themes/chain and use plymouth-set-default-theme chain to set the new theme. In some distributions like Ubuntu, changing the Plymouth theme must be done with update-alternatives.

Once the theme changed, you can use the following command to test it :

plymouthd; plymouth show-splash; sleep 3; plymouth ask-for-password; sleep 2; plymouth quit

If you are satisfied with the result, you can rebuild your initrd/ramfs.

You can use this entry in Archwiki for more information about settting up Plymouth and changing themes.

Customization

To help better adapt the plymouth theme to different computers, distros and rices, some elements are made customizable.

Positions and texts

The file chain.script exposes a Configuration section in wich the position of individual elements can be customized, as well as the font in use and the different texts.

Available customizations:

  • the position of the animation
  • the position of the progress bar
  • the position of the lock icon
  • the position of the password prompt
  • the main font
  • the placeholder text for the password prompt
  • the character used to obfuscate the password (bullet)

Colors

The color palette of this theme consists of three following components:

  • the main color for animation, progress bar, icons and password text,
  • the secondary color for password input and progress bar background,
  • the background color.

Currently, the color palette is #DA0037 for main, #444444 for secondary and #171717 for background.


For simplicity, the change-color.sh script is provided with the following usage:

Usage: ./change-color.sh <mode> <color>

The color must be a 6 digits hexadecimal code with a leading # (e.g "#ABC123")

Mode can be one of the following
 background       Set <color> as background color
 main             Set <color> as main theme color
 secondary        Set <color> as secondary color

Be aware that ImageMagick is needed to replace the colors of the animation and other graphical elements.

Improvements

  • Distinguish between boot/resume and suspend/shutdown modes using Plymouth.GetMode() to show or hide some elements (such as the progress bar)
  • Set a message callback to filter and display boot messages somewhere

About

License:MIT License


Languages

Language:Shell 100.0%