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.
Well, the simplest way (as sorta explained in my post above yours) is to make a plain text file and then link to it using geektool (using file). This can then be edited manually (or by using quicksilver). Another option is using iCal Buddy and using your iCal to do list/events. Here: http://www.macosxtips.co.uk/index_files/display-ical-events-to-do-list-on-desktop.html is a site explaining step by step how to do this.

Hope this helps

That's perfect. Thank you. :eek:

edit: How do you link it using the file command?
 
That's perfect. Thank you. :eek:

edit: How do you link it using the file command?

Open the geektool screen thing from system preferences, create a new entry and then choose "File" from the drop down menu (the options are Shell, File and Picture). You can then use browse to find and choose a text file to display on the desktop. (Make sure the file is in plain text). You can then edit the font, colours etc the normal way. This can also be used to display various system logs etc.

Hope this helps
 
Ok, this is my first attempt here. Hopefully I can come up with something more creative in the future.

picture1oso.png
 
Script to check for last Timemachine backup

A buddy asked for a quick timemachine script and I thought it'd be handy for the geektools crowd. Here you go.

save it as timemachine.rb, +x permissions, then configure in geektools as necessary. Can probably get it down to hours if you need it that badly.

#!/usr/bin/env ruby
require 'date'

date =`head /var/db/.TimeMachine.Results.plist | grep date| awk -F'<|>|T|:|Z' {'print $3'}`.chomp.split("-")
gap = (Date.new(Time.now.year,Time.now.month,Time.now.day) - Date.new(date[0].to_i,date[1].to_i,date[2].to_i) )
if gap > 14
puts "you gotta backup. its been #{gap.to_i} days"

else
puts "na, you're cool. its only been #{gap.to_i} days"

end
 
A buddy asked for a quick timemachine script and I thought it'd be handy for the geektools crowd. Here you go.

save it as timemachine.rb, +x permissions, then configure in geektools as necessary. Can probably get it down to hours if you need it that badly.

#!/usr/bin/env ruby
require 'date'

date =`head /var/db/.TimeMachine.Results.plist | grep date| awk -F'<|>|T|:|Z' {'print $3'}`.chomp.split("-")
gap = (Date.new(Time.now.year,Time.now.month,Time.now.day) - Date.new(date[0].to_i,date[1].to_i,date[2].to_i) )
if gap > 14
puts "you gotta backup. its been #{gap.to_i} days"

else
puts "na, you're cool. its only been #{gap.to_i} days"

end

Wow, thanks! This is a badass script. Can you make it show hours and days? IE: It has been 4 days and 3 hours since last?
 
Wow, thanks! This is a badass script. Can you make it show hours and days? IE: It has been 4 days and 3 hours since last?

Done
----
#!/usr/bin/env ruby
# require 'date'
public
def to_seconds; self; end
def to_minutes; self/60.0; end
def to_hours; self/(60*60.0); end
def to_days; self/(60*60*24.0); end
def to_weeks; self/(60*60*24*7.0); end

def days; self * 60 * 60 * 24.0; end

date =`head /var/db/.TimeMachine.Results.plist | grep date| awk -F'<|>|T|:|Z' {'print $3 "-" $4'}`.chomp.split("-")

gap = (Time.local(Time.now.year,Time.now.month,Time.now.day,Time.now.hour) - Time.local(date[0].to_i,date[1].to_i,date[2].to_i,date[3].to_i) )
days = gap.to_days.to_i
hours = (gap - days.days).to_hours

if days > 14
puts "you gotta backup. its been #{days} days and #{hours} hours"

else
puts "na, you're cool. its only been #{days} days and #{hours} hours"

end
 
Done
----
#!/usr/bin/env ruby
# require 'date'
public
def to_seconds; self; end
def to_minutes; self/60.0; end
def to_hours; self/(60*60.0); end
def to_days; self/(60*60*24.0); end
def to_weeks; self/(60*60*24*7.0); end

def days; self * 60 * 60 * 24.0; end

date =`head /var/db/.TimeMachine.Results.plist | grep date| awk -F'<|>|T|:|Z' {'print $3 "-" $4'}`.chomp.split("-")

gap = (Time.local(Time.now.year,Time.now.month,Time.now.day,Time.now.hour) - Time.local(date[0].to_i,date[1].to_i,date[2].to_i,date[3].to_i) )
days = gap.to_days.to_i
hours = (gap - days.days).to_hours

if days > 14
puts "you gotta backup. its been #{days} days and #{hours} hours"

else
puts "na, you're cool. its only been #{days} days and #{hours} hours"

end


You are a Ruby god. Thank you sir
 
Thanks for the great thread. Just tried setting up for the first time today. Very nice and quite powerful. I will have to come up with some python scripts.
 

Attachments

  • geektool.png
    geektool.png
    33.6 KB · Views: 145
Can I make geektool stay on my PB's built in display? When I plug in my external monitor it moves to the external while I want it to stay on the built in display.

You should be able to drag the Geektool box scripts to anywhere on either monitor just like a regular document or application.
 
My Current

My current desktop. Any ideas? I'm also looking for a script that will give me just the fan speeds of my MB. (see attachment for desktop)
 

Attachments

  • Picture 1.png
    Picture 1.png
    507.9 KB · Views: 544
Here's what I came up with..

Just screwing around and following the VERY helpful tips and instructions on here and some reverse engineering.

I'd like to find a way to do forecasted weather conditions (Temperature and conditions or later today and tomorrow) - I'm using the m.wund.com method for the weather (I don't have Lynx installed) - If anyone has a script to help with that, I'd love to use it!
 

Attachments

  • Desktop.jpg
    Desktop.jpg
    356.4 KB · Views: 265
This is mine

With the macrumors shell, is there a way for me to have a lot more control over the text, in that I wish to set line breaks, remove the two lines before the news stories appear etc?

I'm using this shell: curl https://www.macrumors.com/macrumors.xml | sed -e '/title/b' -e '/description/{n;p;}' -e d | sed -e 's/"/"/g' | sed -e 's/<br \/>//g' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'

Picture1-9.png


Off topic, does anyone know why tWhirl persists in not showing the icon I changed it to?
 
This is mine

With the macrumors shell, is there a way for me to have a lot more control over the text, in that I wish to set line breaks, remove the two lines before the news stories appear etc?

I'm using this shell: curl https://www.macrumors.com/macrumors.xml | sed -e '/title/b' -e '/description/{n;p;}' -e d | sed -e 's/"/"/g' | sed -e 's/<br \/>//g' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'

Picture1-9.png


Off topic, does anyone know why tWhirl persists in not showing the icon I changed it to?

I have yet to find a working iTunes script what is that one your using?
 
My Desktop

Hi all thought I'd post my desktop

One question is how can we get fans, CPU temp working for Geektool?
 

Attachments

  • Picture 1.png
    Picture 1.png
    339.6 KB · Views: 350
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.