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.
Can some one help me change a script of mine?
I had this working perfect under leopard but when I upgraded to snow leopard I couldn't get the cpu usage to work.

Code:
echo CPU Usage

top -l 1| awk '/CPU usage/ {print $8, $9}'

top -l 1| awk '/CPU usage/ {print $10, $11}'

top -l 1| awk '/CPU usage/ {print $12, $13}'

echo""

echo Memory Usage &top -l 1 | awk '/PhysMem/ {print "Used: " $8}'

top -l 1 | awk '/PhysMem/ {print "Free: " $10}'

echo""
echo Macintosh HD
df -h | grep "disk1s2" | awk '{print "Total Space: " $2}'
df -h | grep "disk1s2" | awk '{print "Free Space: " $4}'

echo " "
echo Trash Size
du -sh ~/.Trash/ | awk '{print $1}'

Also, I would like to add a
"Inactive memory" and
"Total free memory" ( free+inactive)

I tried various things but couldn't get them working...
Thanks.

I figured out how to get the inactive memory, now just need to figure out how to add inactive + free together and get a total free memory? Any one have any ideas?

Here is the code to show inactive memory (along with used and free) in case any one wanted it.
Code:
top -l 1 | awk '/PhysMem/ {print "Used: " $8 " Free: " $8 " Inactive: "$6}'
 
New to GeekTool and im finding it awesome. Is there a script to have a "To-Do List" to show up on my desktop? Thanks
 
New to GeekTool and im finding it awesome. Is there a script to have a "To-Do List" to show up on my desktop? Thanks
If you use the "Search this Thread" option, you will find that, yes, it has been discussed here. Here is one of the places, but there may be more.

Have fun with that! This is a very extensive and informative thread. Don't get sucked too far in and remember to eat. :)
 
Hey everybody, Here's my first appempt to use geektool. Still have to change the dock and clean up the desktop :)

Thanks everyone for their efforts in posting so many great scripts!
 
Hi guys I am new to MacRumors but I have been using geektool for a while. I have run into a slight problem however, I have a todo list created with text edit saved as plain text. Geektool will show whats written on the desktop as expected but it wont update unless I manually tell it to. Even then I run into a bigger problem, rather than updating whats there it will simply add the everything on top of the old text. Attached is an example of what I am talking about.

Thanks to any replies
 

Attachments

  • Screen shot 2010-02-26 at 6.26.58 PM.png
    Screen shot 2010-02-26 at 6.26.58 PM.png
    99.9 KB · Views: 130
A little help please?

Hello all,

I've been having a lot of fun with GeekTool and trying to get the various readouts for my needs and tastes.

My current interest/project is the weather. I've tried combining a couple of the above scripts to get what I'm after but I just can't get them working (this is due to my lack of coding knowledge and what you can and can't do in terms of commands) for me. The scripts on their own work but I want to add, subtract, or change certain elements of the readout.

I'm looking for the correct code to give:

the current conditions, temperature with a degree sign but without F or C, and the forecast for the next two days with high and low temps with degree sign and no F or C. I'm just looking for the basic text in the readout - no graphics neccessary. In other words...

(this is based on my current conditions - Tuesday afternoon)

Mostly Cloudy, 64°

Wed - Partly Cloudy/Wind
High: 55° Low: 43°
Thur - Partly Cloudy/Wind
High: 50° Low: 40°

...or something very similar this.

I've tried combining commands but now I have a degree sign between Mostly and Cloudy. lol

Any help will be greatly appreciated!
 
My futures script got messed up for gold and oil does anyone have a fix and does anyone have a script for la traffic?
 
Thanks to jck1946 for the guide, took a few hours but got up to this result after seeing it only recently.

screenshot20100305at124.jpg


Any advice is welcome!! :D
 
hi, does anybody have a script that shows total cpu load in the iStat manner, without dividing the load into 3 groups like user/system/idle? probably even total divided by core load?

thanks in advance
 
Here's my first stab at a geektool'd desktop.
 

Attachments

  • Screen shot 2010-03-08 at 10.35.40 AM.png
    Screen shot 2010-03-08 at 10.35.40 AM.png
    799.2 KB · Views: 290
Here's my geektool setup at work...
Hope you like it ;-)
 

Attachments

  • Screen shot 2010-03-08 at 12.19.54.jpg
    Screen shot 2010-03-08 at 12.19.54.jpg
    282.1 KB · Views: 421
Some of the screenshots/scripts are really nice/worth sharing beyond just the code. Unfortunately, encoding, linebreaks, etc etc can sometimes make using them a little challenging. I know there is a glet site already hosting some of these but 3.0 did add the very nice feature to easily import and export glets, which can be easily attached in the forum
 
Just started working on mine, but after seeing that one above, I'm gonna have to change it around a little

screenshot20100308at110.jpg
 
@striker9...

Can you post your code for the clock, weather, etc.?

The font for the clock is what I'm after really, but I like the picture for the weather.

Or just point me inthe thread if it's already there somewhere.

Thanks,
 
to show disks read and written speed?

Anyone know how to show disk read and written speed in Geektools?
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.