Initial commit
This commit is contained in:
commit
462c624b4a
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
image.jpg
|
5
apod.sh
Executable file
5
apod.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
NASA_APOD_BASE_URL="https://apod.nasa.gov/apod"
|
||||
IMAGE_URL=`curl -s $NASA_APOD_BASE_URL/astropix.html | grep -oh 'href="image/.*"' | grep -oh 'image/.*jpg' | head -1`
|
||||
curl -s "$NASA_APOD_BASE_URL/$IMAGE_URL" > image.jpg
|
||||
gsettings set org.gnome.desktop.background picture-uri "file:///$(pwd)/image.jpg"
|
Loading…
Reference in New Issue
Block a user