44

The scripts display a single letter using a font I created. There are 51 characters: a-z, A-Y. They represent increments of 2% with a=0% and Y=100%.

Overlay the geeklets and fiddle with the font opacity to get the best layout.

Font can be downloaded here.


Comments

User Avatar
rorykane 488 days ago
ive tried all of them, none of these work.
User Avatar
JimmyBollox 488 days ago
Did you download and install the font?
User Avatar
mrbeast87 487 days ago
JimmyBollox, you are a genius! The most elegant geeklet I've saw.

Cheers
User Avatar
glad2814 486 days ago
Can you please tell me where can I get this grey wallpaper in the first shot.

Thanks

S
User Avatar
JimmyBollox 485 days ago
I got it from here:

http://xn--80aqafcrtq.cc/img/2/2/6/226349.jpg
User Avatar
mrbeast87 486 days ago
Is the cpu meter working for you? My system CPU meter always show over 80% usage...
User Avatar
JimmyBollox 485 days ago
Hey Mrbeast,

The geeklets are designed to be on top of each other. So the cpu user value is actually user PLUS cpu system.

Type top into your terminal and check your CPU usage if you want to double check
User Avatar
mrbeast87 484 days ago
Yup, I got it working for RAM and it's great!

My problem is with the CPU. I read about the subject and found out that the problem is, when I run the command with one sample (-l1), I get a screwed up CPU usage:

top -l1 | grep "CPU usage"

CPU usage: 11.11% user, 44.44% sys, 44.44% idle

However, if I use two samples (-l2), the second one is correct:

top -l2 | grep "CPU usage"

CPU usage: 11.11% user, 44.44% sys, 44.44% idle

CPU usage: 2.32% user, 4.18% sys, 93.48% idle

I don't know enough about commands to consider only the second sample. Do you know how can I achieve this Jimmy?
User Avatar
alexwasserman 418 days ago
@mrbeast87

Use this to show only the last line:

top -l2 | grep "CPU usage" | tail -1
User Avatar
Jora 486 days ago
Thanks JimmyBollox,

I love Criterion and now I have their logo perpetually spinning on my desktop !

http://www.youtube.com/watch?v=yOdE0j40cWc
User Avatar
roboboo 476 days ago
looks cool

can you make one for the battery status please?
User Avatar
nobutter 474 days ago
could you do one for a volume indicator as well?

that would be sweet.

thanks
User Avatar
bfg67 421 days ago
my CPU also appears to be wrong - in the same way as mrbeast87... when i place the two geeklets on top of one another, they often show 100% CPU used - i have been checking it against terminal, activity monitor and the CPU history in activity monitor. The three i have checked it against match, but the geeklets show high. I wonder if there is a delay in displaying them or the refresh rate is wrong or something?

I really love the geeklets by the way - a very elegant solution.
User Avatar
MonkeyKong 416 days ago
JimmyBollox, this seems to be the only way to reach you but would have really preferred email or such.

I love these circles and got them to work well with your ARCfont. I have a request, I hope you don't mind.

Is there any chance that you would like to create a progress bar for the CPU and Memory as I see one user have done using Rainmeter for Windows in this awesome Portal 2 test chamber setup - http://i.imgur.com/KLric.png

Should you want to I'd gladly help out with the rest of the setup, but the progress bar is really to difficult for me.

/Andreas
User Avatar
MonkeyKong 415 days ago
By the way, I've just created the progress bar font in Illustrator, with 51 characters just like you did. So, the material is here but I'm having no luck with any of the Mac font creator software such as Font Lab.

Anyone out there who would like to take existing vector graphics and turn them into a font is very welcome to message me. My email is linked from my user profile.
User Avatar
JeremyLC 411 days ago
So, I'm late to the party here, but, I think this is a more elegant way to do the character conversion rather than a looooong string of sed substitutions (using the disk script as an example)

#!/bin/bash

DISK=`df -H -l|grep G|awk '{print int($5/2)}' | sed 's/\%//'`

SUBS=(a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y)

echo -n " "

for i in `echo $DISK | tr ' ' '\n'`

do

echo -n ${SUBS[$i]} " "

done

User Avatar
JimmyBollox 406 days ago
You've got a much nicer solution there Jeremy!

My programming knowledge is pretty limited and I was sure there must be a simpler way to do it - thanks for finding it for me
User Avatar
jxpx777 241 days ago
A simpler conversion would be possible if the "logical" order of the glyphs were A-Za-y. This would allow simple character code conversions from the percentage values to the character, printing out with printf() in awk:

df -H -l | grep G | grep -v MobileBackups | tr -d '%' | awk '{printf "%c", int($5/2)+65}'

Again, this would require the glyphs in the font to be reassigned so that A was the lowest visual value for the purposes of scripting, so don't think my script above will work. My point is that it would be more elegant this way. :)
User Avatar
jxpx777 241 days ago
Also, in 10.8, echo -n was actually echoing -n in my output. I had to change this to echo "${SUBS[$i]}\c"
User Avatar
ipmonger 185 days ago
Following up on jxpx777's comment, here is a one-liner that prints out the User CPU in the right order for the circular font:

top -l1 -n0 | grep "CPU usage" | tr -d '%' | awk '{CPU=int($3/2); if (CPU < 26) {printf "%c", CPU+97} else {printf "%c", CPU+39}}'

And for System CPU you can use:

top -l1 -n0 | grep "CPU usage" | tr -d '%' | awk '{CPU=int(($3+$5)/2); if (CPU < 26) {printf "%c", CPU+97} else {printf "%c", CPU+39}}'
User Avatar
JimmyBollox 406 days ago
Thanks for all the feedback everyone!

As far as making other geeklets using this font (battery, volume, etc), it should be easy enough for you to adapt other geeklets from this site.
User Avatar
Crobran 350 days ago
I know nothing of scripting for geeklets. Everything seems to be working fine except that I'm getting two circles for the disk useage geeklet though I only have one hard drive.

Also, I don't understand the need for both active RAM and inactive RAM. Wouldn't one just be the inverse of the other? I also don't understand what mem wired is.

Could you shed some light on this?

Thanks!
User Avatar
astro_righteous 327 days ago
the font idea is pretty creative for a graphic representation of info. makes me wonder what else is possible for other info.
User Avatar
dissidenzz 262 days ago
The link for the font no longer works... post it somewhere else? Thanks....
User Avatar
JimmyBollox 260 days ago
Not sure why that's happening - here's the URL anyway:

http://www.mediafire.com/?9ki3sa8ca0y22pl
User Avatar
c45p31 246 days ago
Cool font and idea, I'm using them in another glet.
User Avatar
shadow321337 244 days ago
Just wanted to share my implementation of this. I'm very happy with it.

http://i.imgur.com/7dVl9.jpg
User Avatar
jxpx777 241 days ago
For the disk usage geeklet, I added `grep -v 'MobileBackups'` after the grep G portion to exclude the MobileBackups disk. My guess is that's what some of you were seeing when two meters appeared.
User Avatar
andreabreu 136 days ago
Hi, tanks for this nice script, great work! Recently I make this for calculate AirPort TX rate ... enjoy!

Before run this script please execute this command: sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport

Create one file like /Users/andreabreu/Dropbox/Scripts/get_txrate.sh past follow script

Script: http://cl.ly/code/0C1Y141f2d1I

My Desk: http://cl.ly/image/351v001G223N

I work on same netstats scripts but are stay in testing!!!

Sorry my bad english!
User Avatar
jshake 107 days ago
I am very new to all of this, and was wondering why the text "CPU," "men," etc. are not showing up on my desktop.

As I said, very new to this, so its probably something I did wrong, but any help would be appreciated.

Thx
User Avatar
netherzap 57 days ago
awesome job! super user friendly using a font instead of images, thanks!
User Avatar
solomani 45 days ago
Think it may need updating. "CPU" "men" etc dont appear. Though easy to add using another applet.

Log in to comment or register here.