 Comments be like changing the wallpaper. It's easy. Just right-click the desktop. How hard can it be? Well, let me tell you. Yes, changing the wallpaper is easy if you're John Smith from, I don't know, England But if you're KDE and you want to change the default wallpaper, well, you're going to lose some time So you could say yes, but it's just changing a file. It's not going to take much Well, yes, but you we don't just change the file of the wallpaper and that's it We also want to a preserve the old wallpaper So basically we take the old one and we move it to another repository and sure it's very easy You just need to move it and It to the make file and then you know get a branch committed to the branch and get pull that's easy But you need to know that wallpaper Are not just files. We actually have entire folders about it containing various metadata like the order and stuff like that But we just need to create a new folder for the new wallpaper and that's it, right? Well, no, we also have in breeze many many Previews of you know the light version of breeze dark version of breeze and so on the lock screen Etc. And all of those use the wallpaper and we cannot let the preview or use old Wallpapers so each time we need to pop up the application always in the same spots the lock screen the login screen screenshot them screenshot each application Sorry the application for each theme light dark Twilight then get all of those screenshots together make copies of them to have a higher resolution JPEG copy and a lower resolution PNG That's what we do and move it to the right folders Which is like six different folders in two different repositories that takes time and It's annoying and we have to do it like every three months. So we also need to change the wallpaper size and Generate lots of sizes for the wallpaper. We don't have just a 5k version of it. We also have HD full HD the various aspect ratios One wallpaper for mobile. We need to crop it vertically so that it's pretty There are various things to do. So after years of doing it manually and losing lots of time I decided decided for 5.23 to do a script and these are the kind of things that user Usually don't even know about but I just lost hours to do that So I just wanted to share the script with you. So it's pretty simple. It just looks simple, but it isn't I Won't go through each line because it's useless But the general concept is one we need to you know, I've got some util Classes, but let's skip past them. But I have very important one. We need to get Check out the master branch get pull if possible I actually removed that because it kept freezing at the step. So no get pull for us We need to delete the branch We are going to work on if it already exists make a new one switch to that one And that's the git setup then we need to move the wallpaper actually Sorry before that. We need to know where the repositories are So we ask the user where is the folder for breeze where is the folder for plasma workspace blah blah blah Very boring then we move the wallpaper from breeze to plasma workspace wallpapers Where we keep all of the old wallpapers after doing that we change the metadata file Sorry the make file then we create a new directory for the new wallpaper We generate the sizes we go on take the size that we want and use it To create the previews now one approach that I could have done was to just set it Automatically as a wallpaper then pop up the windows in the right positions take a screenshot for all from the script But I thought that it was going to be pretty difficult So what I did was just to take a screenshot of each application Put them in right spots and made the wallpaper transparent So I just have to take that image and overlay it on top of the wallpaper That means we lose transparency because I cannot start blurring just like plasmadas But I think it's a good trade-off for the login and lock screen wallpapers I manually blur them and then I draw on top the UI of the login and lock screen Which is actually the same because I'm lazy. Also those UIS are not the actual UIS But I mock up of them I made in Inkscape, which I hope is pretty realistic So yes, those are fake previews. So don't tell anybody or I get in trouble And when you're we've done that we can then commit everything so minus a commit and then we can let the developer get pushed to master So it really seems really easy when you look all through it But it took some time and hopefully it will save a lot of work hours from now on So yeah, that's what I'm doing with Katie. Bye This is the outro a couple of announcements one height two thousand subscribers, and I'm very happy. So that's good Also, I've received one comment two videos ago, but my hair and beard actually it was just about the beard, I think but I'm going to cut my hair like next week and I'll also tint it yellow So you'll see me differently. Bye You