Created
April 2, 2019 18:14
-
-
Save nmanumr/c0b9b49a935bf59876584ee73ef8f4f3 to your computer and use it in GitHub Desktop.
Downloads and set desktop background from bing
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
wget "https://www.bing.com$(curl -s "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1" |\ | |
python3 -c "import sys, json; print(json.loads(sys.stdin.read())['images'][0]['url'])")" -O ./images/background.jpg -q | |
gsettings set org.gnome.desktop.background picture-uri ./images/background.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment