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.
Dock help

Does anyone know how I can make my dock look like this?

I am totally new to GeekTool

Prolium_by_neodesktop.jpg
 
Does anyone know how I can make my dock look like this?

I am totally new to GeekTool

First, please use timg tags instead of just plain img tags.

Now for Geektool.

It looks like the person has used a program to move the dock pinning to the lower left of the screen. I think something like SuperDocker does this but I am not 100% sure, just look around.

The black behind the dock is most likely an image through Geektool and the dock icons are just custom icons, nothing more.

All the Geektool stuff on the right looks to be simple code that can be found in these pages.

The tabs on the right of the screen is DragThing (someone correct me if I'm wrong).
 
Sorry about the huge image

Would I use the picture or file option?

In picture, how do I structure the URL to a local image?


First, please use timg tags instead of just plain img tags.

Now for Geektool.

It looks like the person has used a program to move the dock pinning to the lower left of the screen. I think something like SuperDocker does this but I am not 100% sure, just look around.

The black behind the dock is most likely an image through Geektool and the dock icons are just custom icons, nothing more.

All the Geektool stuff on the right looks to be simple code that can be found in these pages.

The tabs on the right of the screen is DragThing (someone correct me if I'm wrong).
 
Anyone here who can help a noob with geektool-script?

have been looking around for a way to make it possible to get my skype-contacts showing up in a textview on desktop by geektool without luck. So if there's anyone who can help me so pls?
Throwed out my pc last week and got me a mac so....i'm pretty new to all this macstuff, so ......feeling little stupid here sometimes with macterms. :p

by the way-here is my way of using todo-list for 7 days.
/usr/local/bin/icalBuddy -nc eventsToday+7 | sed -e "s/*/--/" | sed -e "s/!/!!/"

Works fine 4 me!
 

Attachments

  • Skärmavbild 2010-03-21 kl. 18.49.39.jpg
    Skärmavbild 2010-03-21 kl. 18.49.39.jpg
    678.7 KB · Views: 448
can anyone help me with this mutual fund. because of the formatting i do not get any info.

http://www.google.com/finance?q=MUTF:FAMRX

thanks in advance

Hello all,

Thanks for all your wicked scripts in this thread.
I just wanted to share my scripts. I've added some exchange rates to my desktop using Geektool 3. Might help someone out there.

These are for Indian Rupees, but you can easily change it to the currency you need.

HTML:
curl --silent http://www.google.com/finance?q=USDINR | grep "span" | sed -e :a -e 's/<[^>]*>//g;//ba' | head -8 | tail -n 5 | sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /';
curl --silent http://www.google.com/finance?q=GBPINR | grep "span" | sed -e :a -e 's/<[^>]*>//g;//ba' | head -8 | tail -n 5 | sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /';
curl --silent http://www.google.com/finance?q=EURINR | grep "span" | sed -e :a -e 's/<[^>]*>//g;//ba' | head -8 | tail -n 5 | sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /';

@pitt1717 - replace USDINR in the code to MUTF:FAMRX, that should do the trick.
 
Cricket Scores

Oh.. and another thing...

For those cricket lovers out there.. Here is a live scores script.
Straight from Cricinfo.

HTML:
curl --silent "http://static.cricinfo.com/rss/livescores.xml" | grep -e "title" | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'
 
So if there's anyone who can help me so pls?

No idea on the skype thing, but I do like that bowtie (hope that is what it is) theme you are using. Mind sharing?

Also, why show the time/battery in the menubar and on the desktop?


Can you separate the word CPU and the percentage into two different shells?

Not sure if this is the most efficient way, but it is how I would go about it.

- rag out a new shell to create the label
- use this code:
Code:
echo "CPU:"
or whatever you want the label to be

- Drag out another shell for the %
- use this code:
Code:
top -l 1 | awk '/CPU usage/ {print "", $3}'

Apply formatting to them as you see fit.
 
Finally decided to take the time to install and learn iCalBuddy. Pretty nifty what it can do.

Here's the code I'm using. Not showing the additional 30 sed items for changing the full MLB team names to their abbreviations.

Code:
/usr/local/bin/icalBuddy -sd -n -nrd -nc -tf "%I:%M %p" -df "%e %a" -eep "url,location,notes" -f eventsToday+2 | sed -e "s/•//" | sed -e "s/PM/pm/" | sed -e "s/PM/pm/" | sed -e "s/AM/am/" | sed -e "s/AM/am/"

I'll also include the .scpt and .glet I use for the lyrics. All you need to do is change the file path in the .glet once opened to where you place the .scpt file.
 

Attachments

  • Screen shot 2010-03-22 at 9.57.05 AM.jpg
    Screen shot 2010-03-22 at 9.57.05 AM.jpg
    738.8 KB · Views: 476
  • iTunes_GeekTool.zip
    8.6 KB · Views: 153
Hello all,

Thanks for all your wicked scripts in this thread.
I just wanted to share my scripts. I've added some exchange rates to my desktop using Geektool 3. Might help someone out there.

These are for Indian Rupees, but you can easily change it to the currency you need.

HTML:
curl --silent http://www.google.com/finance?q=USDINR | grep "span" | sed -e :a -e 's/<[^>]*>//g;//ba' | head -8 | tail -n 5 | sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /';
curl --silent http://www.google.com/finance?q=GBPINR | grep "span" | sed -e :a -e 's/<[^>]*>//g;//ba' | head -8 | tail -n 5 | sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /';
curl --silent http://www.google.com/finance?q=EURINR | grep "span" | sed -e :a -e 's/<[^>]*>//g;//ba' | head -8 | tail -n 5 | sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /';

@pitt1717 - replace USDINR in the code to MUTF:FAMRX, that should do the trick.




Thank you so much! just 1 problem is too much info is being given. i just need the price and %change
 

Attachments

  • Screen shot 2010-03-22 at 12.43.08 PM.png
    Screen shot 2010-03-22 at 12.43.08 PM.png
    98.9 KB · Views: 111
Would some of you Geektool gurus visit this thread: Geektool Scripting Methodology?

This thread has some great scripts, screenshots and help, but the thread above is requesting some specific help on the actual coding, what it means, how to write it, resources, etc. more so than just trying to find working scripts

Those of us who are script challenged could use the insight
If the mods feel like they should be merged, that's ok too, I just don't want the request made by the OP in that thread to get lost
 
Thank you so much! just 1 problem is too much info is being given. i just need the price and %change

This should solve your problem.
HTML:
curl --silent http://www.google.com/finance?q=MUTF:FAMRX | grep "span" | sed -e :a -e 's/<[^>]*>//g;//ba' | head -5 | tail -2 | sed '/^$/d' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' | sed 's/^/FAMRX: /g';
 
cyrusyrus......THANK YOU! i apreciate the help. once i get some free time im gonna start looking into some of this scripting
 
Finally decided to take the time to install and learn iCalBuddy. Pretty nifty what it can do.

Here's the code I'm using. Not showing the additional 30 sed items for changing the full MLB team names to their abbreviations.

Code:
/usr/local/bin/icalBuddy -sd -n -nrd -nc -tf "%I:%M %p" -df "%e %a" -eep "url,location,notes" -f eventsToday+2 | sed -e "s/•//" | sed -e "s/PM/pm/" | sed -e "s/PM/pm/" | sed -e "s/AM/am/" | sed -e "s/AM/am/"

I'll also include the .scpt and .glet I use for the lyrics. All you need to do is change the file path in the .glet once opened to where you place the .scpt file.

Just FYI, when you have multiple sed expressions, instead of piping the output of one to another, for example:

Code:
sed -e "s/•//" | sed -e "s/PM/pm/"

you can can just do this:

Code:
sed -e "s/•//" -e "s/PM/pm/"

This little trick makes scripts a lot easier to read and nicer to look at! plus you can keep adding "-e" to the initial sed command as many times as you want.
 
Given that the OP in that thread is a few posts down from yours I think they may have already discovered it for themselves.

I am sure he/she did

But give a man a fish, feed him for a day
Teach a man to fish, feed him for a lifetime

Many of us come here asking for a fish
And we can copy and past the code with the best of them
But I have no clue what any of the code means and could never modify it any way

I was hopeful some of the gurus would enlighten the rest of us on the code or point towards resources on learning actually how to write it ourselves, not just copy/paste it

I could not tell you if the code is Python, Pearl, Unix, C, BASIC, Fortran, Cobol or some ancient Mayan hieroglyphics

It is all gibberish to me, and I would like to change that

If someone would like to give us the Rosetta Stone, we would be grateful
 
Basically Geektool takes shell scripts and displays their outputs on your desktop. I'm just getting started with shell script, but I would recommend a book from amazon, like this or this.
 
As an Amazon Associate, MacRumors earns a commission from qualifying purchases made through links in this post.
Basically Geektool takes shell scripts and displays their outputs on your desktop. I'm just getting started with shell script, but I would recommend a book from amazon, like this or this.

Excellent!
Just the kind of information I was looking for :)
Thank you muchly
 
As an Amazon Associate, MacRumors earns a commission from qualifying purchases made through links in this post.
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.