Created
October 18, 2016 01:03
-
-
Save BuonOmo/fc8e5bc0233a722eff14ea4670659ff7 to your computer and use it in GitHub Desktop.
Change wallpaper randomly using unsplash.it API.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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