Skip to content

Anxhul10/onePiece-plymouth

Repository files navigation

Demo Video

demo_plymouth.mp4

Credits

Original artwork: One Piece Logo by Miiizi

Installation On Ubuntu

clone this repo at /usr/share/plymouth/themes

sudo git clone https://github.com/Anxhul10/onePiece-plymouth.git

Install the theme.

    sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/onePiece-plymouth/onePiece-plymouth.plymouth 120

Select the default theme.

    sudo update-alternatives --config default.plymouth

Update the initramfs image.

    sudo update-initramfs -u

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 PlymouthTheme-Cat.plymouth file also.

Development

METHOD 1

1. clone this repo at /ust/share/plymouth/themes

sudo git clone https://github.com/Anxhul10/onePiece-plymouth.git

2. add the theme to the default.plymouth

sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/onePiece-plymouth/onePiece-plymouth.plymouth 120
sudo update-alternatives --config default.plymouth

OUTPUT

There are 4 choices for the alternative default.plymouth (providing /usr/share/plymouth/themes/default.plymouth).

  Selection    Path                                                                     Priority   Status
------------------------------------------------------------
  0           /usr/share/plymouth/themes/onePiece-plymouth/onePiece-plymouth.plymouth   120       auto mode
  1           /usr/share/plymouth/themes/bgrt/bgrt.plymouth                             100       manual mode
* 2           /usr/share/plymouth/themes/onePiece-plymouth/onePiece-plymouth.plymouth   120       manual mode
  3           /usr/share/plymouth/themes/spinner/spinner.plymouth                       70        manual mode

Press <enter> to keep the current choice[*], or type selection number: ^C

and build a new initramfs to apply the changes

sudo update-initramfs -u -k all

⚠️ Plymouth draws over your desktop. Please note that you will need Terminal 2 on a different workspace to close Plymouth. ⚠️

Terminal 1

Tab 1
Start Plymouth daemon
sudo plymouthd --no-daemon --debug
Tab 2
Show splash
sudo plymouth show-splash

Note

This will take over your screen and prevent you from running other apps until Plymouth is stopped. To exit, press Ctrl + Alt + F3 to switch to a virtual terminal, then run the command below. And to exit virtual terminal use Ctrl + Alt + F2

Terminal 2

With this terminal you can test the following modes and user interactions. When you're done, you can close Plymouth

sudo plymouth quit

METHOD 2

1. COPY PLYMOUTH TO /usr/share/plymouth/themes

sudo cp -r ~/path/to/plymouth /usr/share/plymouth/themes

2. Run the test-script or run sudo plymouthd ; sudo plymouth --show-splash ; sleep 10 ; sudo killall plymouthd

Make the script executable and run it:

chmod +x run-plymouth-test.sh
./run-plymouth-test.sh

Note

This will take over your screen while running. To switch to a virtual terminal use Ctrl+Alt+F3. To return to your graphical session use Ctrl+Alt+F2 (or the > F1–F7 key your distro uses).

Example

1. Change directory

cd /usr/share/plymouth/themes

2. Copy theme

sudo cp -r ~/CodeVault/github/onePiece-plymouth .

About

Bootsplash for Linux supporting animations using One Piece.

Topics

Resources

License

Stars

Watchers

Forks

Languages