Welcome to my blog post focusing on my most recent effort, a wallpaper changing software that I spent over 12 hours creating! I’m quite excited to share it with you since I’m completely fascinated with this code. It’s really clean, well-organized, and simple to grasp.

This is not your average wallpaper changer program. Instead, it accesses high-quality photographs via the Unsplash API and allows users to define which categories of photos they wish to see. I’ve combined the program with wget to get photos from the internet and Nitrogen to install fresh wallpapers on the user’s desktop.

Compatibility and the Auto Start Function This wallpaper changing software supports an auto start capability, which permits it to activate automatically upon system launch, This means you may enjoy new and gorgeous backgrounds every day without having to open the program each time.

Secondly, I tested this application with Fedora, Ubuntu, and Arch Linux. And can verify that it works flawlessly on all three operating systems. This auto start feature is more tested and recommended for users of major desktop environments such as Gnome, and KDE and i3 window manager.

Finally, if you’re seeking for a dependable and simplistic wallpaper change software with a range of interesting functions, this app is definitely worth a go. You may enjoy new and beautiful wallpapers every day with its auto start function and compatibility with many operating systems!

Automatic Installation of Wget and Nitrogen This wallpaper changing program provides an automated installation function for wget and nitrogen to make things even easier for users. If these two packages are not currently present on your system, the program will identify and utilize your Linux distribution’s package manager to install them.

If you’re using Ubuntu, for example, the program will run “pkexec apt install nitrogen wget -y” to install the required packages. Similarly, it will run “pkexec pacman -Sy nitrogen wget -y” on Arch Linux and “pkexec dnf update — refresh -y” on Fedora.

It’s worth mentioning that the program executes these installation commands via pkexec. If you’re using an open source DE(desktop environment) such as “Gnome, KDE, or XFCE”. You don’t need to over think because polkit is already running in the background. But, If you’re using a window manager or similar basic configuration, you may need to make sure polkit is running. If the package has not been installed, you may try installing it with lxpolkit, a lightweight polkit authentication agent.

Ultimately, the automated installation feature ensures that the program is completely functioning and ready to use without the need for any extra manual setup.

One of the app’s best features is that it destroys duplicate photographs if Unsplash delivers. Users can also choose their display resolution and the amount of disk space they wish to set up for photo downloads. If the provided storage space fills up (default 9GB) , the program will automatically erase older photographs to create place for new ones.

At the end, I am impressed with how this project goes out for daily uses. I hope everyone will find it as fascinating and beneficial as I do. Why not give it one shot?Put it on your computer, then sit back and let the software refresh your desktop every day with gorgeous, high-quality photographs!

From this section I will start talking how you can modify code for your own uses. Lets get started open unsplash_krafi_wallpaper_generator file now you can see

Set the monitor resolution

monitor_resolution=“1920x1080” My monitor is full HD or 1080 , in your case maybe you can change your monitor resolution like “2560x1440” or “1280x720” .

After making change on that script you can just save and run, but its more good if you reinstall to reinstall run :

rm -rf ~/.local/bin/unsplash_krafi_wallpaper_generator ./unsplash_krafi_wallpaper_generator Note : 2560x1440 also known as Quad HD or 1440p and 1280x720 is also known as HD or 720p

60 sec wallpaper will change

change_timer=”30s” So, your wallpaper will change every 30s you may like to change it to 1 min ?

Note: 1 minute = 60s if you want to minute 2 minute = 120s

After making change on that script you can just save and run, but its more good if you reinstall to reinstall run :

rm -rf ~/.local/bin/unsplash_krafi_wallpaper_generator ./unsplash_krafi_wallpaper_generator If you don’t like those categories I am using them for my wallpaper… you have full freedom to change them,

queries=( “quran” “russia” “moscow” “cactus” “horror” “nature” “quotes” “technology” “travel” “universe” “3D “islamic” “mathematics” “mosques” “Kaaba” “Linux” “korea” “southkorea” “kazan” “Seoul” “Busan” ) you can change them like popular wallpaper Nature, Abstract, Minimalist, Space, Vintage, Technology, Sports, Inspirational

so the result will be like

queries=( “Nature” “Abstract” “Minimalist” “Space” “Vintage” “Technology” “Sports” “Inspirational” ) After making change on that script you can just save and run, but its more good if you reinstall to reinstall run

rm -rf ~/.local/bin/unsplash_krafi_wallpaper_generator ./unsplash_krafi_wallpaper_generator

Don’t know your monitor resolution?

run xrand on your terminal ?

xrand my output is

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384 HDMI-A-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 476mm x 268mm 1920x1080 60.00*+ 74.97 50.00 59.94
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1360x768 59.95
1280x800 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 60.00 59.94
720x400 70.08
DisplayPort-0 disconnected (normal left inverted right x axis y axis) DisplayPort-1 disconnected (normal left inverted right x axis y axis) All the Download Photos will save into ~/Pictures/Wallpapers@krafi.info/ this directory

Worry about Storage ?

well, don’t worry i have the solution. by default it will Continue Downloading 9gb than it will start removing old photos by created time on that directory , and always try to remove same photo. But you can Change this limit value max_size_gb=9 to you can make it 99999999 or 1 and dont forget to Reinstall.

Set the maximum size of the directory in GB

max_size_gb=9

List of dependencies _ poltit (as I mention earlyer, Dont worry if you are using Gnome, KDE, XFCE) nitrogen ( if not installed this script will auto install ) 3. wget ( if not installed this script will auto install ) Do you want to Unistall this service completely? sudo rm -f ~/.local/bin/unsplash_krafi_wallpaper_generator && sudo rm -f ~/.config/autostart/unsplash_krafi_wallpaper_generator.desktop

not sure, Why you want to remove photos

sudo rm -rf cd ~/Pictures/Wallpapers@krafi.info/ Disclaimer While we consider the code in this repository is generally safe, it is supplied “unsplash krafi wallpaper generator” with no express or implied warranties. The authors of this code are not held accountable for any harm or liabilities incurred by the use or abuse of this code. By using this code, users are responsible for ensuring that they comply with all relevant laws, rules, or policies. It should be noted that this software does not require root access to execute, reducing the possibility of unintended consequences. None the less, by using this code, you consent to shouldering all costs and obligations connected with its use, and you agree to indemnify and keep the authors of this code blameless from any claims, damages, or other liabilities that may occur as a result of your use of this code.

Gratitude This project might not have been done without the ChatGPT AI model, which contributed invaluable support. We appreciate and thank ChatGPT’s contributions to this project. We also thanks the Unsplash API for supplying access to the high-quality photographs utilized in this project.

License The GNU General Public License v3.0 applies to this project. Please consult the LICENSE file in the repository’s root directory for further details.

Thank You Thank you for applying this code! We hope it is valuable to you and that you are going to employ it in your own projects. Please email me if you have any thoughts, problems, or recommendations for improvement. We respect your feedback and would appreciate hearing from you. I would also appreciate it if you could give us credit by mentioning or referring to our project in your own work. This allows us to continue creating and enhancing this code while also allowing other people to find it. Thank you for your continued support and for selecting our code!

Have a great Life, thank you for using