Skip to content

Instantly share code, notes, and snippets.

@SajadJalilian
Last active October 9, 2022 12:47
Show Gist options
  • Save SajadJalilian/619bca429802cf0a81f61edc56ef543b to your computer and use it in GitHub Desktop.
Save SajadJalilian/619bca429802cf0a81f61edc56ef543b to your computer and use it in GitHub Desktop.
This script gets random image from "unsplash.it" and set it as linux wallpaper
#!/bin/bash
echo "Geting new wallpaper from unsplash.it"
wget -O /tmp/wallpaper.jpg https://unsplash.it/2560/1440/?random
echo "Setting as lunux wallpaper"
gsettings set org.gnome.desktop.background picture-uri "file:///tmp/wallpaper.jpg"
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment