by jjgomera » Sun Dec 01, 2013 6:24 pm
rstevenson wrote:sirald66 wrote:I would like APOD to feature a desktop background image downloader for Linux.
http://www.scibuff.com/2009/05/14/downl ... ch-script/
Sorry. Ignore this. It's a Windows script which happens to have the word Linux in it a couple of times, so it popped to the top in a Google search.
But that search found lots of other Linux scripts.
Rob
Friends don't let friends use Linux.
Hi,
I use a script several years ago to update my walpaper, Need feh and i use it in debian with openbox as window manager, work in any wm and xfce and lxde without problem, in kde and gnome maybe has problem with their wallpaper manager, i dont know.
old explanation in spanish, sorry:
http://linexiando.blogspot.com.es/2007/ ... onoma.html
Code: Select all
#!/bin/bash
imagen=`GET http://antwrp.gsfc.nasa.gov/apod/ | grep '<a href="image/' | sed 's/<a href="/http:\/\/antwrp.gsfc.nasa.gov\/apod\//' | sed 's/">//' | head -n1 |cut -d'"' -f1`
feh --bg-scale $imagen
I run the script at pc start, could be added to cron if the pc is 24/7 hour running.
Sometime ago i use too a conky instance to show the APOD explanation
.conkyrc
Code: Select all
#!/usr/bin/conky -c
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title conkyapod
double_buffer yes
use_xft yes
xftalpha 0.9
xftfont Sans-Serif:size=9:pixelsize=11
maximum_width 800
minimum_size 200
update_interval 100
draw_outline yes
short_units
alignment tl
gap_x 375
gap_y 25
alignment bottom_right
text_buffer_size 1024
TEXT
${font Anklepants:regular:size=11}${color #5da5d3} APOD$font
${voffset -7}${color #ffd700}${hr 1}$color
${color #aaaaaa}${exec GET http://antwrp.gsfc.nasa.gov/apod/ | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed '/^$/d' | sed -n '/Explanation/,/digg_url/p' | sed '$d' | tr '\n' ' ' |fold -s70}
${voffset -5}${color #ffd700}${hr 1}
Some others examples with my desktop look evolution jeje
Cheers!!
[quote="rstevenson"][quote="sirald66"]I would like APOD to feature a desktop background image downloader for Linux.[/quote]
[url=http://www.scibuff.com/2009/05/14/download-apod-and-set-it-as-the-wallpaper-batch-script/]http://www.scibuff.com/2009/05/14/download-apod-and-set-it-as-the-wallpaper-batch-script/[/url]
[color=#BF4000]Sorry. Ignore this.[/color] It's a Windows script which happens to have the word Linux in it a couple of times, so it popped to the top in a Google search. :shock: But that search found lots of other Linux scripts.
Rob
[size=50]Friends don't let friends use Linux.[/size][/quote]
Hi,
I use a script several years ago to update my walpaper, Need feh and i use it in debian with openbox as window manager, work in any wm and xfce and lxde without problem, in kde and gnome maybe has problem with their wallpaper manager, i dont know.
old explanation in spanish, sorry: http://linexiando.blogspot.com.es/2007/06/para-los-aficionados-la-astronoma.html
[code]#!/bin/bash
imagen=`GET http://antwrp.gsfc.nasa.gov/apod/ | grep '<a href="image/' | sed 's/<a href="/http:\/\/antwrp.gsfc.nasa.gov\/apod\//' | sed 's/">//' | head -n1 |cut -d'"' -f1`
feh --bg-scale $imagen
[/code]
I run the script at pc start, could be added to cron if the pc is 24/7 hour running.
Sometime ago i use too a conky instance to show the APOD explanation
.conkyrc
[code]#!/usr/bin/conky -c
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title conkyapod
double_buffer yes
use_xft yes
xftalpha 0.9
xftfont Sans-Serif:size=9:pixelsize=11
maximum_width 800
minimum_size 200
update_interval 100
draw_outline yes
short_units
alignment tl
gap_x 375
gap_y 25
alignment bottom_right
text_buffer_size 1024
TEXT
${font Anklepants:regular:size=11}${color #5da5d3} APOD$font
${voffset -7}${color #ffd700}${hr 1}$color
${color #aaaaaa}${exec GET http://antwrp.gsfc.nasa.gov/apod/ | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed '/^$/d' | sed -n '/Explanation/,/digg_url/p' | sed '$d' | tr '\n' ' ' |fold -s70}
${voffset -5}${color #ffd700}${hr 1}[/code]
[url=http://img24.imageshack.us/img24/2374/pantallazo1.jpg][img]http://img24.imageshack.us/img24/2374/pantallazo1.jpg[/img][/url]
Some others examples with my desktop look evolution jeje
[url=http://img455.imageshack.us/img455/8892/withoutamaroksi3.jpg][img]http://img455.imageshack.us/img455/8892/withoutamaroksi3.jpg[/img][/url] [url=http://4.bp.blogspot.com/__Oz_ndUrdaI/RoBCmko7wII/AAAAAAAAACA/RZLJSZ3FHcw/s1600/Pantallazo.jpg][img]http://4.bp.blogspot.com/__Oz_ndUrdaI/RoBCmko7wII/AAAAAAAAACA/RZLJSZ3FHcw/s1600/Pantallazo.jpg[/img][/url] [url=http://imagizer.imageshack.us/v2/xq90/9/fm3g.png][img]http://imagizer.imageshack.us/v2/xq90/9/fm3g.png[/img][/url]
Cheers!!