Deviation Actions

Camxso's avatar

Geektool BowTie Theme

By Camxso
Modification of BowTie Themes Geeky and Serial Killer.
Published:
© 2009 - 2021 Camxso
Comments14
Join the community to add your comment. Already a deviant? Log In
FrustratedRocka's avatar
How do I edit a bowtie theme? I haven't been able to find a single helpful result.
KaizokuWiriamu's avatar
What's the name of the font you used? it's like really awesome :D
Zyber17's avatar
May I feature this on [link] ?
Camxso's avatar
Sure. Thanks.
tigz54's avatar
beautiful. how did you change the font on the bowtie theme? all I get is an ugly serif font ><
Camxso's avatar
First, go to home/library/application support/bowtie/
Find the Geektool.BowTie Theme and right click to show package contents. Open the .html file in a text editor and where 'Helvetica Neue LT' is, put whatever font that you'd prefer and have installed on your system. Save it and close. Double-Click the new saved BowTie theme and it should reinstall the good one. Quit BowTie and restart, Voila!

The reason yours is showing up as a different font is because you don't have Helvetica Neue LT installed.

You can download the Helvetica Neue Light font from this link for free.

[link]

Cheers and Enjoy! Camxso
tigz54's avatar
ahh gotcha thanks... I was having troubles before because it didn't want to let me save directly to the package. is there a way to do that?
Camxso's avatar
If you have it opened in a text editor then save, it should let you without any problems. If so, pull the .theme out of it's file onto the desktop and show package contents there and change it there, then save it. Get info and make sure it's not locked or that you have write privileges to it and all should go as planned.
henftling's avatar
wow...how did you managed to get the weather picture displayed?
Camxso's avatar
Using Geektool's link to an image, I placed this altered .php code onto my personal server and then linked to it.

<?php
/* Be Sure to replace CITYDATA in $url with your own city from Yahoo */

$url="http://weather.yahoo.com/forecast/USAL0356.html";

$ch = curl_init();
$timeout = 0; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);

$divStart = "<div class=\"forecast-icon\"";
$strEnd = "';); _background-image/* */: none;";
$start = strpos($file_contents, $divStart) + 50;
$end = strpos($file_contents, $strEnd);
$length = $end-$start;

$imagepath=substr($file_contents, $start , $length);
$image=imagecreatefrompng($imagepath);


imagealphablending($image, true);
imagesavealpha($image, true);
header('Content-Type: image/png';);
imagepng($image);
?>

If you would like to do the same, copy everything from the start <?php and paste it into a text file which you must change the file type to be .php, upload it wherever you can get the direct link and then use the link in Geektool, Easy. Don't forget to change your city code. Cheers, Camxso
Camxso's avatar
Easier Weather Pic on your desktop using GeekTool:

Weather Picture for Evergreen, Alabama:

In GeekTool:
Create New Entry for Picture:
URL: file:///tmp/weather.png

In GeekTool:
Create New Entry for Shell:
curl --silent "[link]" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png



I have web sharing enabled in system preferences, but I'm not quite sure if this will make a difference.
Camxso's avatar
Where the "[link]" is here, use Yahoo's direct link to you city's weather.
henftling's avatar
wow, thank you, will try to get the php script working on mobile me - thank you very much !
Join the community to add your comment. Already a deviant? Log In