sxiii

Autochangable Wallpaper With Current Earth View

Jan 27th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Script to load current earth view with daylight zones and set as desktop wallpaper.
  4. # Result image is 1600x887, so not recommended for monitors that has larger than
  5. # 1600 horizontal resolution.
  6. # Save it in ~/changer/changer.sh or edit directory if you want
  7. # Don't forget to add it to crontab (save the following line to /etc/crontab) without #
  8. # 0 * * * * ~/changer/changer.sh # Hourly wallpaper download & change
  9. # WARNING: REQUIRES FEH AND WGET PROGRAMMS! (sudo apt-get install feh wget)
  10. # Script by Security XIII [at gmail dot com] written 27.01.2012
  11.  
  12. cd changer # Enter directory
  13. rm -rf world_sunlight_map_rectangular* # Remove old images
  14. wget http://www.opentopia.com/images/cams/world_sunlight_map_rectangular.jpg # Get the new one
  15. feh --bg-fill world_sunlight_map_rectangular.jpg # Set new image with feh
Advertisement
Add Comment
Please, Sign In to add comment