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.

Scrbzzz

macrumors member
Nov 21, 2009
36
0
Thanks those both worked but what Im looking for is a list of the processes like I have but a cleaner looking one like on this desktop. http://www.alice-dsl.net/ctamilselvi/GeekTool.html

Heres what happens when I put in that code posted

Screenshot2009-11-21at10638PM.png
 

Fisa

macrumors newbie
Aug 18, 2009
16
0
Two Calendars?

Does anyone know how to put up two different calendars on the desktop?

for example: Gregorian calendar and the Islamic Calendar.
 

Scrbzzz

macrumors member
Nov 21, 2009
36
0
Use this with a fixed-width font to get you started. Just a guess...
Code:
ps -Aro ucomm,%cpu

I do like that one better, I like the one in the link because its perfectly squared off. Sorry Im not good at codes and stuff, is there a way to make the one you just gave me limit to the top 5 or so?
 

Saul89

macrumors newbie
Nov 21, 2009
4
0
Does anyone have a Geektool script for Battery percentage that works with Snow Leopard?

Thank you.
 

catwink21

macrumors newbie
Sep 30, 2008
7
0
Hope this helps, found it here

https://forums.macrumors.com/posts/8840764/

Follow those codes and make sure to type each one in.

Weatehr Image:
Current Image Grabber - here the text REMAINING_LINK_INFORMATION was obtained by going to yahoo weather and imputing my zip code, and copying the resultant URL.
This grabs the image on the weather site and copies it to my harddrive. This shell does not, by itself, display anything on the desktop.

your http should read similar to mine...

Code:
curl --silent "http://weather.yahoo.com/united-states/texas/houston-2424766/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /var/tmp/weather10.png\

This part goes in the "Image" section of geektool>>>
Current"Image" Display - This displays the image from the previous step.

Code:
file://localhost/var/tmp/weather10.png
 

creator2456

macrumors 68000
Jul 10, 2007
1,649
2
Chicago
First picture is what I had and the second is what I have.

Only change in what is visible is the picture of the weather condition. Also made some changes to the coding to have better performance while showing the same info.

To see the list of what I have going on, click HERE


See a theme with my desktops?
 

Attachments

  • Screen shot 2009-11-08 at 4.07.06 PM.png
    Screen shot 2009-11-08 at 4.07.06 PM.png
    1.1 MB · Views: 221
  • Screen shot 2009-11-22 at 7.41.16 AM.png
    Screen shot 2009-11-22 at 7.41.16 AM.png
    800.8 KB · Views: 256

Chartreux

macrumors newbie
Nov 23, 2009
14
0
Rss

I wrote a tiny Ruby script to display RSS-feeds.

It takes a RSS-link as the only parameter and displays the channel name + the time and title of each item.

Put something like this in the Command field of GeekTool (I saved it as "rss.rb" in my personal bin directory):

Code:
~/bin/rss.rb https://www.macrumors.com/macrumors.xml

Script:
Code:
#!/usr/bin/ruby

require 'rss'
require 'open-uri'

rss = RSS::Parser.parse open(ARGV.shift).read, false

puts rss.channel.title

rss.items.each_with_index do |item,i|
  puts "" if i.zero? or item.date.day != rss.items[i-1].date.day

  puts "#{item.date.strftime '%H:%M'}  #{item.title}"
end

Remember to turn on the executable bit: chmod +x rss.rb
No need to install Ruby by the way, it's already included in OS X, so it should work out of the box.
 

Attachments

  • rss.rb.zip
    361 bytes · Views: 94
  • rss.png
    rss.png
    588.1 KB · Views: 181

catdeerduck

macrumors newbie
Nov 23, 2009
1
0
I can't seem to get the weather to work. I have installed curl gui but i still can't get the weather to appear. Would anyone mind posting the link to a direct download of curl or lynx. And how to do it
 

rasputin666

macrumors regular
Mar 1, 2009
167
28
quote of the day

hey there!
loving geektool :)

i've searched all 40 something pages and can't find good code for a quote of the day command.

anybody have suggestions?

ps...i'd attach a screenshot of my desktop but grab makes a 2.6mb file that is too big to attach. i'll post it in the cloud in a few minutes.

thanks
 

rasputin666

macrumors regular
Mar 1, 2009
167
28
desktop screenshot

hey there!
loving geektool :)

i've searched all 40 something pages and can't find good code for a quote of the day command.

anybody have suggestions?

ps...i'd attach a screenshot of my desktop but grab makes a 2.6mb file that is too big to attach. i'll post it in the cloud in a few minutes.

thanks

here's my desktop
 

Attachments

  • desk.jpg
    desk.jpg
    613.8 KB · Views: 277

RogersDA

macrumors 6502
Aug 19, 2009
271
0
Is there a way to get the console log to display and update with Geektool?
Couldn't you just configure Geektools with File (instead of Shell) and point the file to users/YOURUSERNAME/Library/Logs/.../XXXX.log (or whatever file you want to display)?
 

digitallife

macrumors member
Oct 25, 2009
46
0
Lisbon, Portugal
I do like that one better, I like the one in the link because its perfectly squared off. Sorry Im not good at codes and stuff, is there a way to make the one you just gave me limit to the top 5 or so?

Hi,

am i seeing it wrong or the link you posted actually as the command to do it?
Code:
CPU hogger!

ps -acx -o %cpu,command | awk '!/0.0/&&!/%CPU/ {if($1>t){t=$1;v=$0}} END{print v}'

Top Processes

top -ocpu -FR -l2 -n20 | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77

I didn't have a chance to test so ...
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.