[ create a new paste ] login | about

Link: http://codepad.org/pzA9EOxb    [ raw code | fork ]

Plain Text, pasted on Mar 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

SOLFILEPATH='/home/superkuh/photos/solbackground.jpg'
TMPFILEPATH='/home/superkuh/photos/sol.jpg'

echo $TMPFILEPATH

# download image from apod site
wget 'http://sdowww.lmsal.com/sdomedia/SunInTime/mostrecent/f0171.jpg' --output-document=$TMPFILEPATH
cp $TMPFILEPATH $SOLFILEPATH
#convert -resize 1920x1080 $SOLFILEPATH $SOLFILEPATH

# set image to wallpaper
gconftool-2 -t string -s /desktop/gnome/background/picture_filename "blank.jpg"
gconftool-2 -t string -s /desktop/gnome/background/picture_filename "$SOLFILEPATH"
gconftool-2 -t string -s /desktop/gnome/background/picture_options "zoom"


Create a new paste based on this one


Comments: