Skip to content

Desktop Background from Nasa APOD. A background image grabber for GNOME and XFCE from nasa's image of the day site.

License

Notifications You must be signed in to change notification settings

stblackbird/nasa-apod-background

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desktop_nasa.py

DESCRIPTION Gets the latest image of the day from NASA, http://apod.nasa.gov/apod/, gets the description for that image, resize image to keep original proportions, write description to it and set it as the background in Gnome.

INSTALLATION This script will work as it is if your are on Ubuntu. You only need to get (if you already don't have), python PIL library using this command:

sudo apt-get install python-imaging

next add script to startup scripts: System -> Preferences -> Startup Applications

and add script like this: python /dir/to/script/desktop_nasa.py

To set a cron job to run the script every hour, edit and use the script "set_nasa_apod.sh". You will need to put in the full path to the python script and also make it executeable by running: chmod 755 set_nasa_apod.sh Then in your crontab, insert the line (using crontab -e): 0 * * * * /full/path/to/set_nasa_apod.sh

I successfully use this script for a few years now, so it should work every day.

UPDATE: nautilus scripts Now I added the 2 nautilus scripts from right mouse click menu I use from time to time. Edit them and set your location to the python script and the directory where the script stores images.

CONTACT ME For any suggestions, improvements, bugs feel free to contact me at [email protected]

Based on a script of Christian Stefanescu, http://0chris.com

intelli_draw method from: http://mail.python.org/pipermail/image-sig/2004-December/003064.html

If you liked this please tip me TiPS: EbdF2X9CrvQJvnTq7PGVKcT15YSp6gf6ij

About

Desktop Background from Nasa APOD. A background image grabber for GNOME and XFCE from nasa's image of the day site.

Resources

License

Stars

Watchers

Forks

Packages

No packages published