Geektool works fine in Lion.Someone on this thread said that Geektool wasnt working on Lion. Anyone tried?
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?
Geektool works fine in Lion.Someone on this thread said that Geektool wasnt working on Lion. Anyone tried?
Someone on this thread said that Geektool wasnt working on Lion. Anyone tried?
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.![]()
can i get an script for battery life? please this thread is too big for methanks
( macbook pro i5 13´2011 version)
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/"
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?
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?
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'
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'
There is a new beta that works in Lion. you can get it here: http://t.co/2ZLCQUm
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:
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'
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'
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>//'
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.
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?
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 ","
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 ","
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 :
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 ??
date "+%m"
This will answer all your questions: http://en.wikipedia.org/wiki/Date_(Unix)
You can't just get a 7, you'll get a 07 with the command. Stripping the leading zero would require more scripting.
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"