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.
Help... :(

So I'm new to this but I got the time to work. Now I'm trying to get the to-do and the itunes info up. I went through the entire thread and I tried all the recommended things but I could not get anything to work. I am quite sure I am doing something wrong. If anyone can pm with me very very lamen instructions for either or add me on AIM "catfish743" and screen share to get this working, that would be greatly appreciated. Thanks in advance.
 
I have a couple of GeekTool 3 memory usage questions. Is anyone having memory usage problems with GT3? And, how often to you restart your system to clear out used memory?

Every time I look at the "used" memory it continues to grow and my 10 GBs of memory gets eaten up ever so slowly. I'm now looking at about 3 GBs used and about 7 GBs free where I started the evening with much more available memory when I restarted my computer (yet again). I have to restart my system every other day to free up my memory. I'm just wondering is there's something I need to adjust within GeekTool or is that one of the side effects of running GeekTool.

Thanks.

I was having the same issue. Switching to nerdtool seems to have helped.
 
I have a few questions that I want to clarify. TIA.
First I upgraded to Snow Leopard today and it's seems that my Top Processes are not showing anymore:
Here is the script I'm using
Top Processes:
top -ocpu -FR -l2 -n20 | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77

Does anybody else having the same issue?

all other scripts are working fine, including (time, day, date, weather, disk size, memory used, calendars, iTunes)

Second I upgraded to Geektool 3 RC5 from Geektool 2.1.2 and when I open it all of my scripts were gone from the geektool menu (they still appear on the screen but not in the program) I had to uninstall it and put 2.1.2 version back.

Thanks all in advance.
p.s. overall good first impression of SL except some of the apps are not working but I'm sure it will be fixed soon
 
I was having some issues with my Album Art script not linking up with the .pict files after I installed Snow Leopard. I put a link to the script change on my blog.
 
I have a few questions that I want to clarify. TIA.
First I upgraded to Snow Leopard today and it's seems that my Top Processes are not showing anymore:
Here is the script I'm using
Top Processes:
top -ocpu -FR -l2 -n20 | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77

Does anybody else having the same issue?

Try this, is this what you're looking for? It works for me on Snow Leopard.

Code:
ps -arcwwwxo "pid %cpu command" | egrep "PID|$1" | grep -v grep | head -12 | tail -11
 
My weather image script is no longer working with Snow Leopard. In 10.5 Leopard I had to install and run PHP with GD Library to get it to work enabling PHP alone did not do it. Anyone running this PHP script get it to work yet?

Link to how I did it: http://iamawesome.net/2009/04/my-geektool-setup/

PHP:
<?php
$url="http://weather.yahoo.com/forecast/77092.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);
?>

Or if anyone has a better method for the weather image. Thanks for any help.
 
cpu usage always shows idle

cpu usage always shows idle now that i upgraded to snow leopard(geektool2.1.2)

I am using this script

top -l 1 | fgrep "CPU usage" | awk '{print "cpu usage: ", $8}'
 
I'm having trouble getting the calenders to display properly, just using "cal" it displays like the attached pic, the days are kind of out of sync. Any ideas?
 

Attachments

  • Screen shot 2009-08-30 at 21.55.42.png
    Screen shot 2009-08-30 at 21.55.42.png
    15.3 KB · Views: 5,744
I fully reformatted my system when moving to snow leopard, and I'm having a horrible time trying to figure some things out that I already had. If anyone can give me a hand, I'd greatly appreciate it.

First: here is the code I currently have for 'uptime'

Code:
uptime | awk '{sub(/[0-9]|user\,|users\,|load/, "", $6); sub(/mins,|min,/, "min", $6); sub(/user\,|users\,/, "", $5); sub(",", "min", $5); sub(":", "h ", $5); sub(/[0-9]/, "", $4); sub(/day,/, " day ", $4); sub(/days,/, " days ", $4); sub(/mins,|min,/, "min", $4); sub("hrs,", "h", $4); sub(":", "h ", $3); sub(",", "min", $3); print "Uptime: " $3$4$5$6}'

It works well, especially with the label not having to be done in a different shell. However,something is wrong. My current screen shows this: [Uptime:53min1] What is that '1' at the end, and how can I get rid of it?

Next I cannot for the life of me figure out how to do what I did before. I had a box that displayed the following: [Current Network: network_name_here] I've only been able to do this with my ip, which I don't need. Any advice?
 
After reading through all the pages (yes, I sat here and read every page), this is what I could compile that would work for me on my first try:
http://fledmorphine.deviantart.com/art/Desktop-FAIL-135369260
Wow that looks great! Could you share what your script for calendar and weather is? I can never get lynx working on my computer for some reason, so that seems to limit me to curl. Also what is that little circle next to the big monday? Or is that part of your wallpaper?
 
Hi all so my desktop has dramatically changed over night. i took things from everywhere and i'd like to thank anyone whos script, background, ideas inspired me.

This is what i have so far.

Also, I have been having trouble with getting things like standard calendars and columns to work. they appear in unorganized. like they do not follow a straight line. I mentioned this before but i thought it was a Geektool 3 issue. since then i've downgraded to Geektool 2 but continue to have this problem. Any help would be much appreciated.

EDIT: I'll also be adding a text document with all the codes i have managed to get working for me. they will include the code and also the fonts i used to display them for those curious.

Hey man, can i get the code for your horizontal calendar? I'm using something similar, but i can't get the "Today's date" marking to show up :S
 

Where is the Tron desktop picture? Gotta have it.

If you don't mind, I would like to provide an opinion. I like what you have done except for one thing. The blue, red, and yellow date information sticks out too much, IMO. Maybe try a blue that is closer to the blues in the picture and maybe size down the red date just a smidgen, especially the numeral. You could alternatively change the color of the date info all together, a white might work.
 
anyone have any clue on how to get this clock for geektools?
I do not know but this entire setup is exactly what I am looking for. Where did you find this? I would like to get assistance in setting my desktop up like this.
 
Wow that looks great! Could you share what your script for calendar and weather is? I can never get lynx working on my computer for some reason, so that seems to limit me to curl. Also what is that little circle next to the big monday? Or is that part of your wallpaper?
Put it in terminal and make sure it works. If it works, put it in geektools command line, and what I had to go was change the output encoding to "ASCII"

The calender is just "cal," I couldnt find one I wanted and didnt want a horizontal one since I wont be able to see it most of the time.

The circle is Bowtie iTunes iController.
 

Attachments

  • Screen shot 2009-08-31 at 9.54.28 AM.png
    Screen shot 2009-08-31 at 9.54.28 AM.png
    5.6 KB · Views: 5,685
I fully reformatted my system when moving to snow leopard, and I'm having a horrible time trying to figure some things out that I already had. If anyone can give me a hand, I'd greatly appreciate it.

First: here is the code I currently have for 'uptime'

Code:
uptime | awk '{sub(/[0-9]|user\,|users\,|load/, "", $6); sub(/mins,|min,/, "min", $6); sub(/user\,|users\,/, "", $5); sub(",", "min", $5); sub(":", "h ", $5); sub(/[0-9]/, "", $4); sub(/day,/, " day ", $4); sub(/days,/, " days ", $4); sub(/mins,|min,/, "min", $4); sub("hrs,", "h", $4); sub(":", "h ", $3); sub(",", "min", $3); print "Uptime: " $3$4$5$6}'

It works well, especially with the label not having to be done in a different shell. However,something is wrong. My current screen shows this: [Uptime:53min1] What is that '1' at the end, and how can I get rid of it?

Next I cannot for the life of me figure out how to do what I did before. I had a box that displayed the following: [Current Network: network_name_here] I've only been able to do this with my ip, which I don't need. Any advice?

mine too went all screwed up after upgrading to SL, have uninstalled and wil wait for a "stable" version
 
mine too went all screwed up after upgrading to SL, have uninstalled and wil wait for a "stable" version

I installed GT 3. It looks much nicer as far as the interface in concerned. One thing I miss is the duplicate function. (It might still be there and I'm missing it.) Most everything else seems to be working okay. It might be operator error (mine), but it's possible that wherever the script(s) that I tried to read the name of the wireless network are trying to pull the info from a process that has changed or changed location. (I don't even know if what I said makes sense. I know nothing about coding!)

--

On a side note. Does someone know how to do this: add a label to an existing script? For example say I want to use [uptime] but I want toe code to print out 'Uptime: userdatastuffhere" I know I can create a new shell with [echo "Uptime:"], but I haven't been able to do it in the same line. I've tried to look at posted codes that already have the code written like this, and I've tried to duplicate the process by trying to see how it was added, but I've been unsuccessful.

It's pretty fun when you finally figure something out, but oh so exhausting when you cannot.
 
I fully reformatted my system when moving to snow leopard, and I'm having a horrible time trying to figure some things out that I already had. If anyone can give me a hand, I'd greatly appreciate it.

First: here is the code I currently have for 'uptime'

Code:
uptime | awk '{sub(/[0-9]|user\,|users\,|load/, "", $6); sub(/mins,|min,/, "min", $6); sub(/user\,|users\,/, "", $5); sub(",", "min", $5); sub(":", "h ", $5); sub(/[0-9]/, "", $4); sub(/day,/, " day ", $4); sub(/days,/, " days ", $4); sub(/mins,|min,/, "min", $4); sub("hrs,", "h", $4); sub(":", "h ", $3); sub(",", "min", $3); print "Uptime: " $3$4$5$6}'

It works well, especially with the label not having to be done in a different shell. However,something is wrong. My current screen shows this: [Uptime:53min1] What is that '1' at the end, and how can I get rid of it?

Next I cannot for the life of me figure out how to do what I did before. I had a box that displayed the following: [Current Network: network_name_here] I've only been able to do this with my ip, which I don't need. Any advice?

Looks like I'm having the same issue with Uptime code as well (1 at the end). I have the same script, and looks like this is the only one that works with SL. Also it's seems that it's showing that only until it reaches 1 hour mark.
If anybody has an updated Uptime script for SL I would appreciate it. TIA.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.