Skip to content

Instantly share code, notes, and snippets.

@nextgenthemes
Created April 16, 2013 14:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nextgenthemes/5396198 to your computer and use it in GitHub Desktop.
Save nextgenthemes/5396198 to your computer and use it in GitHub Desktop.
preview plymouth theme on ubuntu
#!/bin/bash
## Preview Plymouth Splash ##
## by _khAttAm_ ##
## www.khattam.info ##
## License: GPL v3 ##
chk_root () {
if [ ! $( id -u ) -eq 0 ]; then
echo Must be run as root
exit
fi
}
chk_root
DURATION=$1
if [ $# -ne 1 ]; then
DURATION=10
fi
plymouthd; plymouth --show-splash ; for ((I=0; I<$DURATION; I++)); do plymouth --update=test$I ; sleep 1; done; plymouth quit
@SebastJava
Copy link

I think you don't need this for ((I=0; I<$DURATION; I++)); do plymouth --update=test$I ; sleep 1; done; loop...
Please take a look at my simplified version:

#!/bin/bash

# Preview Plymouth Splash
# by _khAttAm_
# www.khattam.info
# License: GPL v3
# source: https://gist.github.com/nextgenthemes/5396198
# modified by Sébastien Bouchard <sebastjava@hotmail.ca>

chk_root () {
  if [ ! $( id -u ) -eq 0 ]; then
    echo; echo; echo; echo; echo "Must be run as root!"
    exit
  fi
}
chk_root

DURATION=$1
if [ $# -ne 1 ]; then
    DURATION=10
fi

plymouthd; plymouth --show-splash; sleep $DURATION; plymouth quit

@Sharaf5
Copy link

Sharaf5 commented Mar 29, 2023

package plymouth-x11 is needed for running the script and it's running inside terminal if fullback get to text mode

For ubuntu users :

sudo apt-get install plymouth-x11

@nextgenthemes
Copy link
Author

nextgenthemes commented Mar 30, 2023

@SebastJava

I used this to preview a boot screen animation so my guess is that loop is actually needed but I have not tested it.

@AbdelazizSharaf001

and it's running inside terminal if fullback get to text mode

English please, this is unreadable.

Damn 10 years ago I was already on Github. I do not care about any custom boot animation these days.

@SebastJava
Copy link

@nextgenthemes Yes, I know it is an animation. All Plymouth themes are animations, aren't they ? Here is mine :

https://github.com/SebastJava/plymouth-theme-mint-logo-2#readme

There, you will find how simple is my preview.sh...

Animated GIF

@Sharaf5
Copy link

Sharaf5 commented Apr 2, 2023

English please, this is unreadable.

If any error occured, plymouth has a text theme that will be loaded

And it just run it in terminal

this gives it the characteristics of the terminal application not the real display

so some features don't work

Also no animation is been loaded

However this is helpful to show the first frame at least

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment