Categories
Technology

How to automatically set a random Unsplash photo as your Ubuntu wallpaper using bash script

Are you easily getting bored from using the same wallpaper to your Ubuntu machine? Here’s an easy way of enjoying a variety of easily interchangeable wallpapers with photos available as public domain, via Unsplash.com.

All you have to do is create an shell script file (i.e. unsplash.sh) using the following code and execute it every time you want a “fresh” wallpaper.

#/bin/bash

wget -O /tmp/wallpaper.jpg https://unsplash.it/2560/1440/?random
gsettings set org.gnome.desktop.background picture-uri file:///tmp/wallpaper.jpg

Enjoy!

(source code originally found at youness.net)

By A.

Hello. I am Apostolos Kritikos. A Software Engineer and Researcher “made in Greece”. I love coffee, music and doing the lindy hop (swing dancing).

One reply on “How to automatically set a random Unsplash photo as your Ubuntu wallpaper using bash script”

Comments are closed.