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.
Someone on this thread said that Geektool wasnt working on Lion. Anyone tried?
Geektool works fine in Lion.

By the way, I am still looking for that orange and blue background wallpaper image in post #3032 on the proceeding page. Can anyone help?
 
I have a feeling that's going to be very hard to do with Geektool, it might be possible with Geektool 3 which I think can call other Geeklets into existence but I run Nerdtool and don't have the ability to try it currently.

I'm assuming you want to be able to click the picture and go to the corresponding flickr page?

Do you have a link to that Windows program? I'd like to see what it's all about.

I think this would have to be a standalone application which I don't have time to learn the API for OS-X or code something up. :(

I can go either way with the clicking, mainly I want to stream images I have saved, and have them in a box that wont resize.

Here is the Lifehacker article about how to make this desktop on the PC: http://lifehacker.com/5820200/the-rush-hour-desktop

and yes it is a stand alone app. Im actually using Yahoo widgets to run photo galleries, but Yahoo widgets is just plain awful!
 
can i get an script for battery life? please this thread is too big for me :( thanks
( macbook pro i5 13´2011 version)

This following code is what I wrote to display all battery info. There are 4 lines. Power Source, Battery Level, Battery Status, and Battery Time. So you can pick and choose what you need.

Code:
pmset -g ps | grep Power | awk '{print "      Power Source:"$4}' | sed "s/'/ /"

ioreg -l | grep -i capacity | tr '\n' ' | ' | awk '{printf("       Battery Level: ""%.2f%%\n", $10/$5 * 100)}'

pmset -g ps | grep charg | awk '{print "     Battery Status: "$3}' | sed "s/;/ /" | sed "s/charging/Charging/" | sed "s/disCharging/Depleting/" | sed "s/charged/Charged/" | sed "s/finishing/Finishing/"

pmset -g ps | grep charg | sed "s/finishing\ charge/fc/" | awk '{print "       Battery Time "$4"m"}' | sed "s/:/h /" | sed "s/Time/Time:/" | sed "s/(noh/n\/a/" | sed "s/(nom/n\/a/" | sed "s/charge;m/n\/a/"
 
Hey, I was wondering if anyone knows of a script that will track and show your cumulative data received and sent from the internet, since last boot up. I know the data is tracked under the network tab in the Activity Monitor. Thanks!
 
By the way, I am still looking for that orange and blue background wallpaper image in post #3032 on the proceeding page. Can anyone help?

That looks to be the wallpaper for the HTC Desire. This is the biggest version I could find and is 960x800
 

Attachments

  • htc_wallpaper_01.jpg
    htc_wallpaper_01.jpg
    154.6 KB · Views: 156
okay so i've been fiddling with geektool for a while. and I have next to no programming knowledge.

While this works for stocks:
Code:
curl http://www.google.ca/finance?q=INDEXDJX:.DJI | sed -n '/price-panel style/,/ Close/p' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'| sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' | head -1 | sed 's/^/DOW: /g' | sed -n '/-/p'

I can't adjust it for mutual funds or the like, because I have no idea what i'm doing, And this doesn't work:
Code:
curl http://www.google.com/finance?q=MUTF:GGSCX | sed -n '/price-panel style/,/ Close/p' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'| sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' | head -1 | sed 's/^/GGSCX: /g'
 
okay so i've been fiddling with geektool for a while. and I have next to no programming knowledge.

I can't adjust it for mutual funds or the like, because I have no idea what i'm doing, And this doesn't work:

I went through your code and the website's source code. The segment with "price-panel style" is the part that indicates where in the webpage source to start looking at, and needed to be changed to "market-data-div" since the webpage source is laid out differently when displaying mutual funds.

So this final code should work...

Code:
curl http://www.google.com/finance?q=MUTF:GGSCX | sed -n '/market-data-div/,/ Close/p' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'| sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' | head -1 | sed 's/^/GGSCX: /g'

EDIT:

I just realized the above code gives you the mutual fund's last update time at the end, if you don't want the date included, this following code strips the date as well...

Code:
curl http://www.google.com/finance?q=MUTF:GGSCX | sed -n '/market-data-div/,/ Close/p' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'| sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' | head -1 | cut -f 1-3 -d " " | sed 's/^/GGSCX: /g'
 
Last edited:
So i'm probably getting a little annoying, but how would I separate this script:
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=USPA0730&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'
which currently displays conditions and temperature (Partly Cloudy, 85F)
into two different ones? Like one for conditions, and one for temperature.

Or even a way to make it so it displays everything before the comma in one and then displays everything after the comma in the other.
 
but how would I separate this script:
which currently displays conditions and temperature (Partly Cloudy, 85F)
into two different ones? Like one for conditions, and one for temperature.

This code should do it, just make sure to copy it into geektool just as it is, the /g' on the second line needs to be on its own line like that...

Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=USPA0730&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' | sed 's/, /\
/g'
 
But how would I split it into two separate geeklets so i could control the font of the temperature and conditions separately? is it just a matter of removing that /g' in the first one, and then removing the other variables in the second one?
 
But how would I split it into two separate geeklets so i could control the font of the temperature and conditions separately? is it just a matter of removing that /g' in the first one, and then removing the other variables in the second one?

Ah ok, well that's easily enough done.

For condition...
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=USPA0730&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' | cut -f 1 -d ","

For temperature...
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=USPA0730&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' | cut -f 2 -d ","
 
Display Crossfit WOD

Any way to scrape crossfit.com and display the workout name and workout of the day?
in case it helps:
RSS
text

I'm not real good with awk/sed etc so any help would be appreciated.
 
I found myself wondering if there is a terminal command I can run as a geeklet to display the most recently opened files, like a list with 10~items in a text column :

Legendas.tv.txt
Quests.txt
drag.png
dock.png
DESKTOP(Folder)

~

It may sound paranoid, but actually I just have a few minor attention disorder issues and usually forget what I was doing 5 minutes ago that led me to where I am now :p
 
Does anyone know the code to change the month from "july" to "7" so instead of the letters it will be a number for the month ??

Trying to make my desktop more minimal...
 
I found myself wondering if there is a terminal command I can run as a geeklet to display the most recently opened files, like a list with 10~items in a text column :

I looked into how the system calls recent items, and I could only find this one way. The odd thing is when you open a file, it instantly shows up in the Recent Item list under the menu bar, but through terminal, there is a 30 second delay before the recent item seems to be written to this .plist file. So it will take 30 seconds before it is displayed using this code. But this should work for you unless someone else has a more efficient way to display the recent items.

Code:
defaults read com.apple.recentitems RecentDocuments | grep Name | cut -f 2 -d "=" | sed 's/\(.*\)../\1/' | sed 's/..\(.*\)/\1/'

------------------------------------------------------------------------------------

Does anyone know the code to change the month from "july" to "7" so instead of the letters it will be a number for the month ??

Not sure exactly how you are displaying the date as I've not seen your code, but this is how you would show the month numerically in terminal.

Code:
date "+%m"
 
Any way to scrape crossfit.com and display the workout name and workout of the day?
in case it helps:
RSS
text

I'm not real good with awk/sed etc so any help would be appreciated.

I'm working on a python solution to this, need some more time. Wanted to let you know that someone is working on it and not leaving you hanging.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.