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.
hello, thanks for the excellent post.

I need a script that works with mountain lion, for battery the magic mouse and keyboar bluetooth.

I tried with other scripts in this post, and always shows disconnected.

thanks
 
I have two scripts (cpu and memory) that run every second.
Because of this they spam the console with a "already running" message. Is there any way to stop these messages? Perhaps something I could add to the end of the script?

Thanks.
 
Hi All,

I am messing with Geek Tools, can anyone tell me how to display an image using the Shell Script ?

I know that you can do am image directly on it's own but I am trying to combine images and text in one applet so to speak. The text is working fine.

Many thanks.
 
Hi All,

I am messing with Geek Tools, can anyone tell me how to display an image using the Shell Script ?

I know that you can do am image directly on it's own but I am trying to combine images and text in one applet so to speak. The text is working fine.

Many thanks.

They have to be separate geeklets, one for the script and one for the image. The script running in the script geeklet will have to have the ability do download the image for the image geeklet to display.
 
Hey all, this is my first post ever! I've been messing around on geektool and getting some tips from this forum and other internet sources over the past 5 hours.

What do you guys think of my first background? Suggestions?
 

Attachments

  • Screen Shot 2012-08-16 at 8.07.14 PM.png
    Screen Shot 2012-08-16 at 8.07.14 PM.png
    1.3 MB · Views: 423
Hey all, this is my first post ever! I've been messing around on geektool and getting some tips from this forum and other internet sources over the past 5 hours.

What do you guys think of my first background? Suggestions?

Looks very nice - like the color scheme that your using, very pleasant on the eye.

Is the date a Geek script as well, not seen one that fancy ?
 
Location based on external IP address

Hey everybody, total noob here. Been using GeekTool for a while now, but just copying and pasting code I find here to build my desktop.

I like to display city and country based on my external IP address.

I found this on the internet:

geoip () { curl -s "http://www.geoiptool.com/?IP=$1" | html2text | egrep --color 'City:|IP Address:|Country:' }

Tried modifying, but no success. Can any of you fine gents tweak this so that it displays correctly?
 
Have implemented the weather warning stuff for the US NWS, working on getting the other sites done.

Thanks for updating the script! I'm running the following to call the script:
python /...ultimate_weather_parser.py -W -A -T usnws

Is there any way to get it to output only the hazard warnings and nothing else?
 
Thanks for updating the script! I'm running the following to call the script:
python /...ultimate_weather_parser.py -W -A -T usnws

Is there any way to get it to output only the hazard warnings and nothing else?

Not right now, I'll keep that in mind for the next release. It does make sense to have the -W only output weather warnings though.

If you know python, I can show you where to comment code out.
 
Hey everybody, total noob here. Been using GeekTool for a while now, but just copying and pasting code I find here to build my desktop.

I like to display city and country based on my external IP address.

I found this on the internet:

geoip () { curl -s "http://www.geoiptool.com/?IP=$1" | html2text | egrep --color 'City:|IP Address:|Country:' }

Tried modifying, but no success. Can any of you fine gents tweak this so that it displays correctly?

Just pulled out the location code from my Ultimate Weather script and wrote a one off script to display your location.

Here is the link to the Wiki about the script (contains download link):
http://code.google.com/p/xtacocorex-geektool-scripts/wiki/LocationGrabberHowTo

Hope this helps.
 
So I had a spare monitor that I can't get to display at it's native resolution, so what better use than to dedicate it to GeekTool? In my opinion because it's stretched to 16:10 rather than the actual 1024x768, the text looks better on the display than the screenshot! :p

I might have gone a bit overboard. But it's cool (for me)! :D
 

Attachments

  • geektool.jpg
    geektool.jpg
    299.9 KB · Views: 541
Is there anyway I can control the spacing between the characters?

EG

date +"%I:%M:%S"

the output is 10:11:12

I would like to be able to space the numbers out like

1 0 : 1 1 : 1 2

Thanks
 
I'm currently using this for weather:

Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=94105" | 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>//' | tail -n1

I'm trying to display the city name (San Francisco in my case) next to it, only if it connects to internet, otherwise display nothing. Can anyone help?
 
Is there anyway I can control the spacing between the characters?

EG

date +"%I:%M:%S"

the output is 10:11:12

I would like to be able to space the numbers out like

1 0 : 1 1 : 1 2

Thanks

I found a work around, here is my result;
 

Attachments

  • ZnHFu.jpg
    ZnHFu.jpg
    174.9 KB · Views: 329
I asked this on the last page, but am I crazy -- did I imagine there was a script that tracks the total number of MOUSE CLICKS? :confused:
It's arbitrary, I know, but I feel like in theory, it should be a workable script?
 
I use the for Uptime:

uptime | awk '{print "Uptime: " $3 " " $4 " " $5 }' | sed -e 's/.$//g';

but i get a ',' in the end. I mean the output is 'Uptime: 10 mins,'

How can I remove the coma?
 
The Next day Forecast, Image Use this script:
Code:
[B][I]curl "http://xml.weather.yahoo.com/forecastrss?p=YOURCITYCODE&u=c" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "\n" | sed "s/Hi\:\ \(.*\)\ Lo\:\ \(.*\)/\?Hi\: \1\  Lo\:\ \2/" | sed "s/\?\(.*\)/\\1/"[/I][/B]

Again use the city code in place of YOURCITYCODE within each of the above scripts

First off, this is GREAT and thank you for posting this!!

I dropped the shell on my desktop for the next-day forecast and it works, except it hasn't updated to Monday being the current day and Tuesday being the next day. I have it set to update every 1800 seconds. Any tips? Thanks again!

----------

I use the for Uptime:

uptime | awk '{print "Uptime: " $3 " " $4 " " $5 }' | sed -e 's/.$//g';

but i get a ',' in the end. I mean the output is 'Uptime: 10 mins,'

How can I remove the coma?

Use this instead:

uptime | awk '{sub(/[0-9]|user\,|users\,|load/, "", $6); sub(/mins,|min,/, "min", $6); sub(/user\,|users\,/, "", $5); sub(",", "min", $5); sub(":", "h ", $5); sub(/[0-9]/, "", $4); sub(/day,/, " day ", $4); sub(/days,/, " days ", $4); sub(/mins,|min,/, "min", $4); sub("hrs,", "h", $4); sub(":", "h ", $3); sub(",", "min", $3); print "Uptime: " $3$4$5$6}'
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.