Shop Mobile More Submit  Join Login
×




Details

Submitted on
April 22, 2011
File Size
67.3 KB
Link
Thumb
Embed

Stats

Views
21,086 (1 today)
Favourites
91 (who?)
Comments
77
Downloads
1,456
×
Mnml GeekTool Batt Indicator by gotteric Mnml GeekTool Batt Indicator by gotteric
A battery indicator I made for GeekTool. If you would like it, it is available on my dropbox: [link]

After requests, I have made variations on it for volume, iTunes and HDD space, all of which are available from my dropbox. There are also links to download them from my dropbox in the comments.

Hope you like it, and let me know what you think! :D
Add a Comment:
 
:iconlovehatredx:
lovehatredx Featured By Owner Apr 9, 2013
Help the battery icon won't move?
Reply
:iconlovehatredx:
lovehatredx Featured By Owner Apr 8, 2013
Thank you sooo much! :)
Reply
:iconchristiangbm:
christiangbm Featured By Owner Jul 11, 2012
bro whats ur wallpaper id love it
Reply
:iconchristiangbm:
christiangbm Featured By Owner Jul 11, 2012
sorry i founded, hm how i can get a black status bar like yours ?
Reply
:iconlibbyb:
LibbyB Featured By Owner Jun 27, 2012  Student General Artist
The battery indicator is a gorgeous little geeklet! i've tried several times to get it to work right to the instructions (even deleted & tried with a new download) but when It runs it doesn't seem to work

Here's the error message when running in AppleScript Editor:
error "Can’t make \"MacintoshHD/Users/libby/Documents/CustomisyThings/geektools/HORIZONTAL/Battery/getBattLevel.txt" into type file." number -1700 from "MacintoshHD/Users/libby/Documents/CustomisyThings/geektools/HORIZONTAL/Battery/getBattLevel.txt" to file
Reply
:icontwiggette:
twiggette Featured By Owner Feb 13, 2012  Professional Photographer
Love this :) Btw, what wall is what?
Reply
:icondemenshi:
Demenshi Featured By Owner Feb 7, 2012  Student Interface Designer
This isn't working for me -_-

I put the folder in my main directory

so would the codes look like ???

osascript jdiato/Battery/battImage.scpt
file://localhost/jdiato//Battery/temp/png

Thats what i did and its not working
Reply
:iconjeryck0:
Jeryck0 Featured By Owner Dec 10, 2011
Nvm I name of my HD has a space which "broke" the path. I the emplacement of the file and it now works.
Thanks for the job!
Reply
:iconjeryck0:
Jeryck0 Featured By Owner Dec 10, 2011
Hello,
I can't understand what I've done wrong but when I run the script in applescript it won't change the image temp.png. It gives me this error:

error "usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory" number 64

Any idea how to fix it?
Thanks in advance!
Reply
:iconreddodgeraz:
RedDodgerAZ Featured By Owner Dec 9, 2011
Sorry for the double post
Reply
:icongotteric:
gotteric Featured By Owner Dec 11, 2011
No worries, try deleting the whole thing, redownloading and follow the instructions exactly. If you run into problems still, I'll have to see what you changed. Usually people have issues with the path name but that would give a different error.
Reply
:iconreddodgeraz:
RedDodgerAZ Featured By Owner Dec 9, 2011
Newbie here! Result hen running from AppleScript:
error "Can’t make item 1 of {} into type integer." number -1700 from item 1 of {} to integer
Reply
:iconreddodgeraz:
RedDodgerAZ Featured By Owner Dec 9, 2011
Recieving the below result running this from the AppleScriptEditor:
error "Can’t make item 1 of {} into type integer." number -1700 from item 1 of {} to integer
Reply
:icontrafjay:
trafjay Featured By Owner Nov 26, 2011
And how would I go about changing them to black?
Reply
:icongotteric:
gotteric Featured By Owner Nov 30, 2011
If you go into the folder containing the images, change each one to black individually. (I know, it's kinda tedious)
Reply
:icondzadze:
DzaDze Featured By Owner Nov 10, 2011  Student Interface Designer
What theme are u using, can u share just the white apple logo ?
Reply
:icongotteric:
gotteric Featured By Owner Nov 30, 2011
I actually don't remember and my hard drive died on me since this post so I don't actually have access to the files I used for it. There are definitely resources as far as how to do it though. If I come across anything, I'll post again to let you know.
Reply
:icontrafikjam:
trafikjam Featured By Owner Oct 29, 2011
Nice! Could you make a black coloured version?
Reply
:icongotteric:
gotteric Featured By Owner Nov 6, 2011
It is actually pretty easy to do that yourself. Just go into the folder containing the image files and make them black. The temp file will automatically update to match it.
Reply
:iconhavok-inmyhead:
havok-inmyhead Featured By Owner Sep 20, 2011  Student
hey, I'm having a similar problem like a few of the ppl above. The battery bar shows but it doesn't indicate current battery level. i tried running the the script on AppleScript Editor and it says :

"error "Can’t make \"/Users/sHong/Documents/getBattLevel.txt\" into type file." number -1700 from "/Users/sHong/Documents/getBattLevel.txt" to file"

any suggestions would be much appreciated! :love:
Reply
:icongotteric:
gotteric Featured By Owner Oct 6, 2011
I see what should be the problem. The path at the very end (getBattLevel.txt\") shouldn't have that backslash. It should work if you delete that.
Reply
:iconrushikh:
rushikh Featured By Owner Sep 11, 2011
Can you make it all in black?
Reply
:icongotteric:
gotteric Featured By Owner Oct 6, 2011
You can actually do that yourself. In the folder containing the images, just edit them to black and the temp image will automatically do the same on the next refresh.
Reply
:iconrushikh:
rushikh Featured By Owner Sep 4, 2011
I can't get the volume to change when I press the volume key on my mac, so like from 25%volume to 100% it wont change and then I have to open the applescript and click run then it will update it on my desktop. What am I doing wrong?
Reply
:icongotteric:
gotteric Featured By Owner Oct 6, 2011
What does the edited code look like?
Reply
:iconrushikh:
rushikh Featured By Owner Oct 10, 2011
on run
set pathName to "/Users/rushikh/Dropbox/Public/GeekTool/Battery"
set battText to (do shell script (read pathName & "/getBattLevel.txt"))
set AppleScript's text item delimiters to {"%"}
set battList to every text item of battText
set battNum to item 1 of battList as integer
do shell script ("cp " & pathName & "/Images/" & battNum & ".png " & pathName & "/temp.png")
end run
Reply
:icongotteric:
gotteric Featured By Owner Oct 10, 2011
Wait, you're trying to use the volume one? That is the script for battery one.
Reply
:iconrushikh:
rushikh Featured By Owner Oct 12, 2011
Here is the volume one: [link]
Reply
:icongotteric:
gotteric Featured By Owner Oct 13, 2011
That looks correct, have you looked at the refresh times for the script and for the image?
Reply
:iconrushikh:
rushikh Featured By Owner Oct 30, 2011
I checked and they are all set for 1second. When I run the script manually it gives me "" as the output.
Reply
:iconhe6o:
He6o Featured By Owner Sep 1, 2011  Hobbyist General Artist
Great concept, and it looks awesome! I'm using the HDD version; although I can't quite get it to refresh the image/display anything other than the temporary png yet. I'm sure I'll get there eventually. Still, great customisation! :love:
Reply
:icongotteric:
gotteric Featured By Owner Oct 6, 2011
Thanks!
Reply
:iconevorc:
Evorc Featured By Owner Aug 29, 2011
Easy to set up. Very well done, much needed on my AIR.
Reply
:iconthehobo001:
thehobo001 Featured By Owner Aug 26, 2011
it is not working for me. :(
PATH: Users/Bob/Battery
Shell Script: osascript /Users/Bob/Battery/battImage.scpt
Image: file://localhost/Users/Bob/Battery/temp.png
I followed the instructions on the 'README', still not sure what i got wrong.
Look :
on run
set pathName to "Users/Bob/Battery"
set battText to (do shell script (read pathName & "/getBattLevel.txt"))
set AppleScript's text item delimiters to {"%"}
set battList to every text item of battText
set battNum to item 1 of battList as integer
do shell script ("cp " & pathName & "/Images/" & battNum & ".png " & pathName & "/temp.png")
end run
any help would be appreciated. thanks.
Reply
:icongotteric:
gotteric Featured By Owner Aug 30, 2011
If you run it in AppleScript Editor, does it give you an error or do what it is supposed to do?
Reply
:iconthehobo001:
thehobo001 Featured By Owner Aug 26, 2011
i can only see the thick bar right now, the image won't change.
Reply
:iconwongandonly:
wongandonly Featured By Owner Jul 1, 2011
I can't get this great Geeklet bat indicator to work...

Script > Users/Jeff/Downloads/Battery
Shell > osascript /Users/Jeff/Downloads/Battery/battImage.scpt
Image > file://localhost/Users/Jeff/Downloads/Battery/temp.png

I only get the "thick" bar without any "thinner" parts displaying how much of the battery has been used.
Reply
:iconpauloruberto:
PauloRuberto Featured By Owner Dec 11, 2013  Hobbyist Artist
Try Macintosh/HDUsers/Jeff/Downloads/Battery for everything.

Reply
:iconwongandonly:
wongandonly Featured By Owner Jul 1, 2011
I can't get this great Geeklet bat indicator to work...

Script > Users/Jeff/Downloads/Battery
Shell > osascript /Users/Jeff/Downloads/Battery/battImage.scpt
Image > file://localhost/Users/Jeff/Downloads/Battery/temp.png

I only get the "thick" bar without any "thinner" parts displaying how much of the battery has been used.
Reply
:iconjgraham7:
jgraham7 Featured By Owner Jun 21, 2011   Photographer
When I edit the pathName, i get "Can’t make "Jordan/Users/urban/Battery/getBattLevel.txt" into type file." any suggestions?
Reply
:icongotteric:
gotteric Featured By Owner Jun 21, 2011
Are you sure your path is correct? Keep in mind that pathName is only the path that contains getBattLevel.txt. And if you are unsure as to if it is correct or not, a little trick you can do is open up terminal and drag the directory containing getBattLevel.txt into terminal and it will automatically say what the path is.

Hope that helps, and if not, don't hesitate to ask :)
Reply
:iconjgraham7:
jgraham7 Featured By Owner Jun 21, 2011   Photographer
when I edit the pathname and run the script, i get "Can’t make "jordan/battery/getBattLevel.txt" into type file. any advice?
Reply
:iconfender7083:
Fender7083 Featured By Owner May 17, 2011
Nice n' minimalistic'!
Reply
:iconmjrn-design:
Mjrn-Design Featured By Owner May 12, 2011
I've done this with geektool only, set it up entirely in one script, yet I've only used 21 images due to the strain on the system, especially with the CPU.

I have to say well done, this is quite ingenious, yet I have to ask:

Is this heavy on your machine?
Reply
:icongotteric:
gotteric Featured By Owner May 12, 2011
Thank you!

It actually is barely makes a dent. My whole setup [link] uses only about 1% CPU and 10MB of real memory.
Reply
:iconkimbbabb:
kimbbabb Featured By Owner May 10, 2011
Hey it all works great except that the indicator ( bar ) won't change at all? Is it supposed to be changing automatically or do i have to manually do it everytime? Thanks :D
Reply
:icongotteric:
gotteric Featured By Owner May 11, 2011
Yeah, It should be changing automatically. Make sure to follow the readme. If you are still having a problem, reply with the applescript and I'll take a look at it.
Reply
:iconkimbbabb:
kimbbabb Featured By Owner May 11, 2011
Ok so...I put my battery folder on my folder martin which the root would be file://localhost/Users/martinkim/Martin/Battery/ so basically I did wrote on run set pathName to "martinkim/Martin/Battery" right??

Then on the shell i put pmset -g ps | sed -n 's/.*[[:blank:]]+*\(.*%\).*/\1/p' for the battery level which shows right! but the level indicator is just an image URL being file://localhost/Users/martinkim/Martin/Battery/temp.png and when I put the osascript PATH/Battery/battImage.scpt on the shell it gives me nothing? so i put the command instead which is pmset -g ps | sed -n 's/.*[[:blank:]]+*\(.*%\).*/\1/p'

Sorry...hope ur not too confused...lol
Reply
:iconkimbbabb:
kimbbabb Featured By Owner May 11, 2011
Nvm! i got it :D thanksss mate!!! u bloody ROCK!
Reply
Add a Comment: