I am making a custom distribution, and have a question about the Ubuntu Logo with 5 dots displayed when booting up.
The Ubuntu-Logo-Script
in the /lib/plymouth/themes/ubuntutext
folder has the word Ubuntu and beneath that 5 progressing 'dots'. Is it possible to remove the progress bar dots, and instead replace it with a faded Ubuntu logo, that gradually colors up to full?
Install Theme
I have created theme as you wanted with a faded Ubuntu logo (moreover I have added an animation of the Ubuntu logo. Hope you'd like it :-P )
Screenshot
Want to see it live?
Go to http://www.youtube.com/watch?v=zPo50gM3txU
Where can you get this theme?
I have uploaded it to Mediafire cloud here.
How do you install it?
Download from the above link, save it on your Desktop, then issue these commands one by one. Please replace
/lib/plymouth/themes
with/usr/share/plymouth/themes
in the commands, if you are on 16.04 or later.How to check it?
Copy the whole command below and paste it into a terminal and hit enter. (You will probably need to install a package:
sudo apt-get install plymouth-x11
)sudo plymouthd --debug --debug-file=/tmp/plymouth-debug-out ; sudo plymouth --show-splash ; for ((I=0;I<10;I++)); do sleep 1 ; sudo plymouth --update=event$I ; done ; sudo plymouth --quit
How to create a Plymouth theme yourself
Plymouth Scripting Language is very similar to C or JavaScript. If you know these languages, it'll be very easy to create Plymouth scripts yourself.
Let's start with basics like operators, looping, comments, etc. Three type of comments are supported.
Statements are terminated with a semicolon, e.g.
Statement blocks can be created with curly brackets, e.g.
The supported operators are
+
,-
,*
,/
,%
. Shorthand assignment operators are also supported+=, -=, *=,
etc. Unary operators are also supported, e.g.+
is used for concatenation e.g.Comparison operator example:
Conditional operations and looping:
&&
,||
,!
are also supported.This may be new to many readers: hashes, similar to arrays. Hashes can be created by accessing their contents using
dot
or[ ]
brackets, e.g.Use the
fun
keyword to define function, e.g.The two basic Plymouth objects
Image
To create a new Image, give the filename of an image within the theme directory to
Image()
. Remember, only .png files are supported. For example:To show a text message you must create an
Image
of the text. (This might surprise you.) For example:Width and height can be found using
GetWidth()
andGetHeight()
; for example:One can rotate or change the size of an Image; for example:
Sprite
Use
Sprite
to place anImage
on screen.Creating a
Sprite
:Or by supplying image to its constructor,
How to set different the sprite to different positions on screen (x,y,z):
Or you can set all at once with
SetPosition()
:Changing opacity:
Some miscellaneous methods used are:
Predefined Functions
Mathematical Functions
It is better to modify an existing script than to start from scratch.
Open up
.script
file from my uploaded theme and try to understand what it does. A fantastic guide can be found here.I'm sure you'll learn this. It isn't hard. Let me know if you need any help.
Hope it'd help you create one yourself.
Answer to Roshan George's Comment :
Is it possible to replace the purple colour with an image as background in the default Plymouth theme names "ubuntu-logo" ?
You might need to add
sprite.SetZ (-10);
You should remove
where
p, q, r, a, b, c
are some values.More links
Use the Plymouth Manager to change this. You can get it from from here on Launchpad or run the commands below.
After that you will need to launch
plymouth-manager
with the command:The "magic" command if you want to do all by yourself, (writing your own plymouth config file), and you want to apply it when you are ready is:
I have changed the GRUB screen with the GRUB Customizer software. But if you want to change the Plymouth screen it's different.
All the things of this software is in the
/lib/plymouth/themes
directory and all the animation of this one is in the/lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script
file.If you want to modify to your liking Plymouth, all you need is on the
ubuntu-logo
folder.You can do it by your own without the help of any external software, but you must understand programming.
Also you can find tools to do that in the Ubuntu repository, but you need to learn to create Plymouth themes.
Good luck!