Giter VIP home page Giter VIP logo

plymouth-animated-boot-screen-creator's Introduction

Animated Boot Screen Shell Script

This is a template built off of Eonix's animated cat plymouth theme. I just wrote some scripts to make it easier to make your own.

Instructions

  1. Install Plymouth themes:

sudo apt install plymouth-themes

  1. Go to the plymouth themes folder

cd /usr/share/plymouth/themes

  1. Create new theme folder

sudo mkdir ./{{ThemeNameHere}}

  1. Move into your new theme folder.

cd {{ThemeNameHere}}

  1. Clone this repo contents into the folder.

sudo git clone https://github.com/thedonquixotic/Plymouth-Animated-Boot-Screen-Creator.git . The dot at the end will clone the contents of the template folder into your new theme folder.

Customization

  1. Put mp4 or gif into the "input" folder.
  2. Run the correct .sh file for the file type you are using.
  3. Transfer the image sequence to the root of the project folder.
  4. Open up template.script and change the lines:
for (i = 0; i < {{NUMBER OF IMAGES IN SEQUENCE}}; i++)
  flyingman_image[i] = Image("progress-" + i + ".png");
flyingman_sprite = Sprite();

and

flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 3) % {{NUMBER OF IMAGES}}]);

To have the correct number of images in the sequence.

  1. Resave the template.script file as "animated-boot.script".
  2. Open up template.plymouth and enter in your name, descriptions, and new script paths etc and save as {{ThemeNameHere}}.plymouth

Installation

  1. Install the theme using this script, be sure to replace the template variables used:
 sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/{{ThemeName}}/{{ThemeName}}.plymouth 100

In my case it looks like this:

sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/slash/slash.plymouth 100
  1. Select the default theme. sudo update-alternatives --config default.plymouth And select the number for your theme (I can't say this for sure but if the theme you want is under 0 for the auto mode, then I would select that as I think it boots in faster than manual)

  2. Update the initramfs image.

sudo update-initramfs -u

  1. Now reboot.

If you want to install this on < Ubuntu 16.04, change the path from /usr/share/plymouth to /lib/plymouth/ . You need to do this on the eionix-cat.plymouth file also.

Also other possible perks:

I found some scripts that are supposed to improve the transitions etc between Plymouth and the other parts of the start up process. I don't know if they worked for me or not. I had trouble getting the plymouth-gdm thing working as it seems that it's primarily something to do with pre-gdm3 versions and I'm on Ubuntu 18.04

Anyway:

  • Edit the file /etc/initramfs-tools/conf.d/splash and add this line:

FRAMEBUFFER=y

  • To enable smooth transition you have to disable your display manager unit, e.g.

systemctl disable gdm.service

  • Enable the respective DM-plymouth Unit (GDM, LXDM, SLiM units provided), e.g.

systemctl enable gdm-plymouth.service

Credits

Original repo by Eionix: https://github.com/krishnan793/PlymouthTheme-Cat/commits?author=krishnan793

Video

[Video] https://www.youtube.com/watch?v=c6f478VBhtE

[Blog] http://eionix.blogspot.in/2016/10/plymouth-theme-for-ubuntu.html

And if you want to check out my blog for more creative coding and unix customization stuff, check out https://www.jackalope.tech/blog

plymouth-animated-boot-screen-creator's People

Contributors

jcklpe avatar krishnan793 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.