Lubuntu is the lightest version of Ubuntu, based on LXDE as a desktop and aimed at those users who have not so new hardware but still want to have a stable environment, simple to use and upgrade, and all with a design more than achieved. That being the case, it doesn’t make sense to install a lot of tools for trivial tasks but that can still be desired, such as wallpaper, As they go against the direction of what is sought in this ‘taste of Ubuntu’.
However, if anything GNU / Linux offers is flexibility and a simple way of doing things, and here we are going to show how to create a wallpaper changer for Lubuntu in a simple way, All through elements already available in the system and therefore without the need to install any application for it. So we avoid using 40 or 50 MB of RAM for this, and by the way we see a little of the background operation of this desktop (not to mention that several of these tools do not work stably with manager pcman file manager, the LXDE file manager).
The first thing we will do is create an icon on the desktop, for this we right click on the desktop and select the option New -> File. We give it the name that comes to mind, making sure that if the extension is .desktop, so we can create something like ‘Wallpaper-changer.desktop’. Then, we open the file for editing with our favorite tool (in the case of Lubuntu, almost certainly it is Leafpad), and add the following:
Version = 1.0
Name = Random Wallpaper
Comment = Changes the wallpaper randomly.
Exec = bash -c ‘pcman file manager -w «$ (find ~ / Images / Wallpapers -type f | shuf -n1)»’
Terminal = false
Type = Application
Categories = Utility;
Icon = wallpaper
We save the file and now what we do is copy it to have it in two different places: one is in our application folder (so it can be available through the Lubuntu menu) And the other is the ‘autostart’ folder, so that it starts together with the system:
cd / Desktop
cp wallpaper-changer.desktop ~ / .config / autostart
its mv wallpaper-changer.desktop / usr / share / applications
Now all we have to do is open the login preferences menu, and verify that the wallpaper-changer icon is selected (the checkbox next to it must have a tag) so that our trick is activated every time we start session in Lubuntu. That’s all, from now on we will have a tool that will change the wallpaper for us every time we log in opting for one at random, and if we want to change ourselves we simply have to go to menu and select the wallpaper-changer item, which will cause the wallpaper to be changed at that moment.
As we see, this is a super simple solution that does not involve the use of complicated scripts or extra applications, which as we said at the beginning is appreciated in the case of a lightweight variant like Lubuntu. The only thing we need to keep in mind is that you need to respect the fact that you have a folder named ~ / Images / Wallpapers and have all the images that we will use as wallpaper, because this is how our solution works.