Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

User contributed splash themes

Post Reply
Message
Author
User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 22248
Joined: Wed Jul 19, 2006 6:13 am

User contributed splash themes

#1 Post by Jerry3904 » Tue Aug 07, 2018 12:42 pm

This thread is for users to post their splash creations. Any original art work should be identified in a text document titled "Source"
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 22248
Joined: Wed Jul 19, 2006 6:13 am

Re: User contributed splash themes

#2 Post by Jerry3904 » Thu Aug 09, 2018 5:39 am

So, you might be asking yourself: how can I create a splash theme?

Complicated answer: covered by a series of blog posts that are linked in the MX Boot options HELP file. My goal is to work through all that one of these days when I have nothing to do...

Simpler answer: you use the example plymouth plugin script "script.script" located in /usr/share/plymouth/themes/script/. Example:
  • Dolphin_Oracle created the striking theme mx-linux this way. I ran a diff on the original and his script.script for the new theme, and you can see the small number of changes that he made (first number of each section is the line number):

    Code: Select all

    1c1
    < # This is an example plymouth plugin script
    ---
    > # mx script theme, modified from debian script theme script.script
    
    6c6
    < logo.image = Image("special://logo");
    ---
    > logo.image = Image("mx_wall_3_night.png");
    
    8c8,10
    < logo.opacity_angle = 0;
    ---
    > logo.opacity_angle =0;
    > mx_logo.image = Image("MX-logo.png");
    > mx_logo.sprite = Sprite(mx_logo.image);
    
    14,18c16,20
    <         logo.opacity_angle += ((2 * 3.14) / 50) * 0.5;  # 0.5 HZ
    <         min_opacity = 0.3;
    <         opacity = (Math.Cos(logo.opacity_angle) + 1) / 2;
    <         opacity *= 1 - min_opacity;
    <         opacity += min_opacity;
    ---
    > #        logo.opacity_angle += ((2 * 3.14) / 50) * 0.5;  # 0.5 HZ
    > #        min_opacity = 0.3;
    > #        opacity = (Math.Cos(logo.opacity_angle) + 1) / 2;
    > #        opacity *= 1 - min_opacity;
    > #        opacity += min_opacity;
    
    21c23,26
    <         logo.sprite.SetOpacity (opacity);
    ---
    > 	logo.z = -10000;
    > 	mx_logo.sprite.SetX (Window.GetX() + Window.GetWidth()  / 2 - mx_logo.image.GetWidth()  / 2);
    >         mx_logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - mx_logo.image.GetHeight() / 2);
    > #       logo.sprite.SetOpacity (opacity);
    
    We'll let him comment on those changes--I'm not sure there is much beyond the two image changes
  • image files being used must be placed in the same folder
  • a rewritten plymouth file (here: mx-linux.plymouth) needs to be created with the crucial middle section pointing to locations:

    Code: Select all

    [Plymouth Theme]
    Name=Script
    Description=Script example plugin.
    ModuleName=script
    
    [script]
    ImageDir=/usr/share/plymouth/themes/mx-linux
    ScriptFile=/usr/share/plymouth/themes/mx-linux/script.script
    
    [script-env-vars]
    example_env_var=example env var value
Simplest answer: you adapt one that already exists and works. This is what we have done to generate some of those in the beta splash theme package. Example:
  • User Gerson first found the beautiful animated theme dandelion, and switched the logo. We then substituted a different logo and deleted the existing Debian one. Ta-dah!
Note that if you change any logo or background you must revise the *.plymouth file as indicated above.

------------------

Ready to get started? :whoknows:
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
Gerson
Forum Regular
Forum Regular
Posts: 238
Joined: Sun Nov 12, 2017 10:58 am

Re: New app: MX Boot Options

#3 Post by Gerson » Thu Aug 09, 2018 3:35 pm

<MOD: moved this to here from the testing forum>

Use the MX logo to add it to this Plymouth theme, Peter-Rabbit; It's not my responsibility, I just modified it, you can download it from this link.
G. Translate:
Use el logo de MX para agregarlo a este tema de Plymouth, Peter-Rabbit; no es de mi autoría, solo lo modifiqué, pueden descargarlo desde este enlace.
No todos ignoramos las mismas cosas. :confused:

Post Reply

Return to “MX Art”