LiveJournal will be undergoing maintenance on May 25, and might display errors until complete. Please see http://lj-maintenance.livejournal.com/ for details and updates.

Dely. (tehdely) wrote,

How I update my desktop

* 5-19 * * 1-5 /home/tehdely/local/bin/update-kellys.sh
#!/bin/bash

PIX=/home/tehdely/Pictures/OB-KC
NEW=${PIX}/new.jpg
WALL=${PIX}/wall.jpg
SEPIA=${PIX}/sepia.jpg

curl -f http://ob-kc.com/images/current_lg.jpg 2>/dev/null > $NEW
if [ -e $NEW ]; then
  if [ "$(md5sum $NEW | awk '{print $1}')" != "$(md5sum $WALL | awk '{print $1}')" -a -s $NEW ]; then
    mv $NEW $WALL 
    # Make sure it is bleak
    convert $WALL -modulate 75,20,66666 ${SEPIA}
  fi
fi
Tags: bleak, linux, sunset
  • Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded  

  • 0 comments