Skip to content

Instantly share code, notes, and snippets.

@dmpop
Last active September 18, 2017 21:31
Show Gist options
  • Save dmpop/a21cdec298e27bc841f4acf1084be661 to your computer and use it in GitHub Desktop.
Save dmpop/a21cdec298e27bc841f4acf1084be661 to your computer and use it in GitHub Desktop.
Use random photos from Unsplash as a desktop background on Ubuntu
#!/bin/bash
uuser="unsplash_user_name"
path="path/to/dir"
size=$(xdpyinfo | grep dimensions | awk '{print $2}')
curl "https://source.unsplash.com/user/$uuser/$size" --location --output $path/unsplash-random.jpeg
gsettings set org.gnome.desktop.background picture-uri file://$path/unsplash-random.jpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment