Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
Imagemagick isn't worth the pain and hassle of installing it onto the system. It would also use up enough cycles that it might cause the time to be off from system time.

Is there another solution to do this then? It would be really nice to take this to the next level! :p
(here is the link for my wallpaper; http://www.funmazawallpapers.com/wallpapers/02139_theycoming-2560x1600.jpg)
I have the 1080p version without the text on top but I don't remember where I got it from. google theycoming.

Thibault
 
Is there another solution to do this then? It would be really nice to take this to the next level! :p
(here is the link for my wallpaper; http://www.funmazawallpapers.com/wallpapers/02139_theycoming-2560x1600.jpg)
I have the 1080p version without the text on top but I don't remember where I got it from. google theycoming.

Thibault

I have no experience with imagemagick myself, but if the consesus is that it's too resource-heavy, you could give GD a try?

PS Leuk om meer Nederlandstaligen te spotten op MR :)
 
Hi, I'm kinda new to geektool and would like to know how you can mirror the hour or date to make it look like a reflection. And also to be able to bring the clock in a perspective. I've read that it is possible with a program called imagemagick, but I have no clue on how to use it. Does anyone have a tutorial, or a simple explanation on how it works? I would like to learn it though, to create some awesome geektool wallpapers! Here is one of my creations,

Image

Could you share that wallpaper please?
 
I have no experience with imagemagick myself, but if the consesus is that it's too resource-heavy, you could give GD a try?

PS Leuk om meer Nederlandstaligen te spotten op MR :)

What is GD exactly? It's the first time I'm here, I really wanted to know how to make my desktop even more awesome with reflections / perspective text :p

edit: @hephaestus, I posted a link a few posts ago ;)
edit2: this is the kind of effect I would like to realise;
http://www.flickr.com/photos/40156273@N06/5417523064/in/photostream/
 
Last edited:
Thanks, I google'd it but clicked it away too fast (lots of results for GD). Do you know where to find a tutorial on how to use it with geektool, because I'm not a programmer and I have no idea what PHP has to do with geektool or how I can connect the dots. :p Hope you can help ;)
 
I added some additions. The second one is while a song is playing. Thanks again thibaultvdb!
 

Attachments

  • screen-capture.png
    screen-capture.png
    1.1 MB · Views: 182
  • screen-capture2.png
    screen-capture2.png
    1.1 MB · Views: 241
Hey guys!
I'm currently doing my school schedule in a png file so that I can put it on my desktop. But I had an idea, which I don't know how to do.
Is there a way to put a different image depending on which day it is? So that I get an image on monday, another on tuesday, etc.

Here's how it looks for now! (I'm not being really original for the picture, but it is really nice! Thanks thibaultvdb)
 

Attachments

  • Screen Shot 2012-01-11 at 7.29.33 PM.png
    Screen Shot 2012-01-11 at 7.29.33 PM.png
    1 MB · Views: 253
Is there another solution to do this then? It would be really nice to take this to the next level! :p
(here is the link for my wallpaper; http://www.funmazawallpapers.com/wallpapers/02139_theycoming-2560x1600.jpg)
I have the 1080p version without the text on top but I don't remember where I got it from. google theycoming.

Thibault

If you go back to page 136 in the thread and start reading to the end of this thread, you'll see some exchange between ShortyDK85, tag and myself on getting ImageMagick installed on his system.

It is involved, it can work; I posted a screenshot showing angled text in the post right after ShortyDK85's original post.

ImageMagick has a very large tutorial on their website on how to do all things with the program, it's a vast resource and is where I picked up on how to angle text.

Another thing you can do is pre-make inverted images of the text you want displayed and control that with a script and geektool. If you look at the screenshot I mentioned on page 136, you'll see that I have the month on my computer vertically oriented. That is a python script figuring out the month and then copying a pre-built image to a temporary image on my system that geektool reads. This method won't work too well for time, but day and month wouldn't be too difficult.

----------

Hey guys!
I'm currently doing my school schedule in a png file so that I can put it on my desktop. But I had an idea, which I don't know how to do.
Is there a way to put a different image depending on which day it is? So that I get an image on monday, another on tuesday, etc.

That is totally possible. You run a script to figure out what day it is and then from there copy the appropriate image to a temporary image that is displayed by geektool. It'd be similar to the weather image stuff that's in the thread.
 
I added some additions. The second one is while a song is playing. Thanks again thibaultvdb!

Looks great!! I'm going to try the ImageMagick stuff, I'll let you guys know what the results are ;)

edit: started with lynx, and I'm asking myself how the code works. This is the URL from which I'm trying to extract weather info http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=leuven
I found this code in this topic:
Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=95816|awk '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'
Is the | awk code or url? If it is code what does it do? What does Temp mean, and what are the signs after printf for? Assuming printf is to output a certain line into text? I tried just the lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast? code, but in geektool it then displays nothing whereas in the terminal it does display the info. Hope anyone can help me understanding this ;)

Thanks, Thibault
 
Last edited:
Looks great!! I'm going to try the ImageMagick stuff, I'll let you guys know what the results are ;)

edit: started with lynx, and I'm asking myself how the code works. This is the URL from which I'm trying to extract weather info http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=leuven
I found this code in this topic:
Code:
lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=95816|awk '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'
Is the | awk code or url? If it is code what does it do? What does Temp mean, and what are the signs after printf for? Assuming printf is to output a certain line into text? I tried just the lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast? code, but in geektool it then displays nothing whereas in the terminal it does display the info. Hope anyone can help me understanding this ;)

Thanks, Thibault

The | is the pipe, in Bash (what the Terminal uses on your computer) it allows you to send data from one command to another if the command supports input from the standard input.

I would steer clear of using lynx for weather stuff, but if you get it working, more power to you. I am working on an ultimate weather parser, but it's taking some time and getting very complex. wunderground will be one of the supported sites.
 
Pulling bus departure times from website

I've spent the last few hours trying to pull bus departure times from a website : http://m.countdown.tfl.gov.uk/arrivals/73688. So far I have come up with this code.

Code:
curl -s http://m.countdown.tfl.gov.uk/arrivals/73688 | sed -n '97,240p' |  sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed 's/*//' | sed 's/&#039;//' | sed 's/-->//' | sed 's/&/ \& /' | tr -d '[:space:]' | sed 's/min/ min\
/g' | sed 's/due/ due\
/g' | sed 's/N[0-9][0-9]/ & /g'  | sed 's/[0-9][0-9][0-9]/ & /g'

Im sure it's really messy, but I barely have an idea of what im doing (printed out a quick guide on sed).

So far the results are :

busdepartures.png

Which im fairly happy that it actually works, but I would like to style the information better.

1. I would like to seperate the bus number as well as the due time with a tab (please presume '........' is a tab space). So it displays as :

123........DESTINATION........DUE
123........DESTINATION........6 MIN

2. Cut off all information after the last 'MIN'

If anyone can help me out, that would be much appreciated.

Rich
 
Last edited:
Thanks, I google'd it but clicked it away too fast (lots of results for GD). Do you know where to find a tutorial on how to use it with geektool, because I'm not a programmer and I have no idea what PHP has to do with geektool or how I can connect the dots. :p Hope you can help ;)

Me, help? Not really, cause I'm not a programmer, but the theory is that you write a PHP script (in which you manipulate your image, add reflections and so on with GD) and then execute that script from geektool, like you would execute any other command.

Sorry I can be of no more help to you, I wouldn't know how to code this myself.
 
I've spent the last few hours trying to pull bus departure times from a website : http://m.countdown.tfl.gov.uk/arrivals/73688. So far I have come up with this code.

Code:
curl -s http://m.countdown.tfl.gov.uk/arrivals/73688 | sed -n '97,240p' |  sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed 's/*//' | sed 's/&#039;//' | sed 's/-->//' | sed 's/&/ \& /' | tr -d '[:space:]' | sed 's/min/ min\
/g' | sed 's/due/ due\
/g' | sed 's/N[0-9][0-9]/ & /g'  | sed 's/[0-9][0-9][0-9]/ & /g'

Im sure it's really messy, but I barely have an idea of what im doing (printed out a quick guide on sed).

Here is something I did quick, it's a little better but not perfect:
Code:
curl -s http://m.countdown.tfl.gov.uk/arrivals/73688 | sed -n '97,240p' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed 's/*//' | tr -d '[:space:]' | sed 's/-->//g' | sed "s/due/\\`echo -e '\t'`Due\\`echo -e '\n\r'`/g" | sed "s/min/ min\\`echo -e '\n\r'`/g" | sed 's/&/ \& /' | sed "s/\&\#039;//g" | sed "s/\&\#160;/\\`echo -e '\t'`/g" | sed "s/More\&\#8230;Refresh//" | sed "s/[0-9][0-9]*/ &\\`echo -e '\t'`/g"

Here is the output in my terminal window
Code:
 468	Elephant & Castle		Due
 68	Euston		Due
 68	Euston		Due
 176	TottenhamCtRd	 2	 min
 40	Aldgate	 3	 min
 12	OxfordCircus	 3	 min
 148	WhiteCity	 4	 min
 171	Holborn	 4	 min
 68	Euston	 6	 min
 468	Elephant & Castle	 7	 min
 
Is Geektool meant to work OK with Lion? The page says it's for 10.6.

EDIT: Also, what is that thin font that people use? I love that look.
 
Last edited:
Is Geektool meant to work OK with Lion? The page says it's for 10.6.

EDIT: Also, what is that thin font that people use? I love that look.

Yes, it will work with Lion. You need Geektool 3, but I don't know which version as I use Nerdtool on Snow Leopard.

It is in the App Store, that says it's for 10.6 or later.

Don't know the font though.
 
your link to the Lynx browser must be wrong ?
I know we already have monthly desktop threads, but Geektool is becoming more and more popular, and figured it would probably be better and easier for everyone to have a collection of their Geektool layout in one place.

Geektool
Download Here

View attachment 152607
All using the 'Shell' selection:
Date: date +%d
Month: date +%B
Day: date +%A
Time: date +"%I:%M"
Alternatives:
Without the '0' infront of the hours 1-9, use: date +%l:%M
24 hour clock, with seconds: date '+%H:%M:%S'
24 hour clock, without seconds: date '+%H:%M'
AM/PM: date +"%p"
Font: Helvetica Neue (Regular, Bold, Light)

Image
Weather (need Lynx) [Shell]:
Temperature: lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|awk '/Temp/{printf $2, ": "; for (i=3; i<=3; i++) printf $i " " }'
Conditions: lynx -dump http://printer.wunderground.com/cgi-bin/findweather/getForecast?query=YOURZIPCODE|awk '/Cond/ && !/Fore/ {for (i=2; i<=10; i++) printf $i " " }'

View attachment 152608
iTunes [Shell]: osascript ~/LocationOfScript.scpt
Using Script Editor:
Code:
on run
	set info to ""
	set info2 to ""
	tell application "System Events"
		set num to count (every process whose name is "iTunes")
	end tell
	if num > 0 then
		tell application "iTunes"
			if player state is playing then
				set who to artist of current track
				set what to name of current track
				set info to what & " by " & who as string
			end if
		end tell
	end if
	return info
end run

"Kohbens-esque" background for docks, see Melrose's post here.

Most people are using Bowtie to display their iTunes info though.
 
line spacing

hello,

is there a way to adjust line spacing?

I have a bigger font, and a geeklet that spits out multiple lines.

it would be great to have the lines closer and not take up so much screen real-estate...

thanks for the help.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.