You are not logged in.
Pages: 1
This is another one from commandlinefu, but it's been quite funny of late so I thought I'd share it with you...
First, you need to install imagemagick and curl from the repositories if you haven't already got them, then put this in your autostart.sh:
(sleep 8; display -title 'Dilbert' http://dilbert.com$(curl -s dilbert.com|grep -Po '"\K/dyn/str_strip(/0+){4}/.*strip.[^\.]*\.gif') ) &You'll get the cartoon on your desktop. Change the sleep number to taste, or start it some other way - a launcher, or a cron job...
Here's a variant I hacked together for Doonesbury:
( sleep 8; display -resize 700x -title 'Doonesbury' $(curl -s http://www.doonesbury.com/strip/dailydose/index.html | grep -Eow -m 1 'http://images.ucomics.com/comics/db/[0-9]{4}/db[0-9]{6}\.gif') ) &It was a bit small for me, so the "resize" blows it up a bit.
Both of these are ongoing stories, so it takes a couple of days to catch up. 
Edit (2011/11/14): See below for code that works now.
Last edited by johnraff (2011-11-14 12:07:14)
John Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings and GitStuff )
#! forum moderator
Offline
very very nice
thanks
M
Offline
Site code changes, new versions:
display -geometry 700x500 -title 'Dilbert' http://dilbert.com$(curl -s dilbert.com/strips|grep -o -m 1 '/dyn/str_strip.*strip\.print\.gif') &
display -geometry 800x800 -title 'Doonesbury' $(curl -s http://www.doonesbury.com | grep -Eow -m 1 'http://cdn.svcs.c2.uclick.com/c2/[[:alnum:]]{32}') &John Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings and GitStuff )
#! forum moderator
Offline
I just have the Opera web browser installed which has Dilbert comics in the home page.
叫我差不多先生。
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.