📜 ⬆️ ⬇️

Xsplash - making a theme for yourself

Not so long ago, I told you how to make your theme for usplash. However, anticipating the transition from usplash (it doesn’t have the best effect on load time) on xsplash, I decided to describe the process of creating a theme for the latter.

It should be noted that creating a theme for xsplash is much simpler than for usplash.

Unfortunately, xsplash is not well documented, so I’ll make a reservation right away, all I did was do it with a scientific method.

We will need:
1) Background pictures in different resolutions
2) Download indicator file (single-frame file slicing, animated GIF, or multi-frame PNG)
3) Logo files.
')
All of the above can be taken from the standard xsplash theme.

The resolutions for the background files are: 2560x1600, 1920x1200, 1680x1050, 1440x900, 1280x1024, 1024x768, 800x600. If you are not going to share your screensaver with anyone, then you can leave only your permission.
All background files must be in PNG or JPG format, and have the names bg_resolution.png (jpg). Those. for 1024x768 - bg_1024x768.png

Next, we will deal with the logo. Logo - a picture that is loaded in the upper part of the screen - in the center horizontally. You can write something or post a photo of your girlfriend. Save the file: logo_large.png, logo_xtra_large.png, logo_medium.png, logo_small.png - for different permissions (probably). Accordingly, you need to consider that the size of the pictures should be different. I took the standard Ubuntov theme for the basis and spied on the dimensions there.

Next you need to do the download bar.
This site can help a lot.
If you have an animated GIF with your download bar - it needs to be converted into a multi-frame PNG (ImageMagick is needed):

convert animated.gif not_animated.png

It will turn out some pictures with the name not_animated -?. Png, where "?" - the frame number.
Then, using the same convert, we convert the PNG sequence into one file:

convert not_animated* -append throbber.png

The resulting throbber.png is our multipage PNG.
All created files, copy to / usr / share / images / xsplash

We check that everything works:

# xsplash -t throbber.png -f 12

Where throbber.png is your download bar, 12 is the number of frames in it.

Next, do so that it worked when loading the same. We are looking for the Default file in the ../gdm/presession folder (in my case, gdm is in / etc /) - and change it:

if [ -x '/usr/bin/xsplash' ];
then
/usr/bin/xsplash -t /usr/share/images/xsplash/trobber.png -f 12 --daemon
fi


Well, that seems to be all, thank you for your attention!

PS Download time after removing usplash reduced by 4 seconds.

Source: https://habr.com/ru/post/83376/


All Articles