Skip to content

Instantly share code, notes, and snippets.

@BuonOmo
Created October 18, 2016 01:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BuonOmo/fc8e5bc0233a722eff14ea4670659ff7 to your computer and use it in GitHub Desktop.
Save BuonOmo/fc8e5bc0233a722eff14ea4670659ff7 to your computer and use it in GitHub Desktop.
Change wallpaper randomly using unsplash.it API.
#!/bin/sh
#
# Change definition of the screen on line 6.
file=$(mktemp /tmp/wallpaper.XXX.jpg)
curl --output $file 'https://unsplash.it/1920/1080/?random'
gsettings set org.gnome.desktop.background picture-uri file://$file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment