GeekTool is very aptly named, and is a great app for those who love tinkering about with their UI and workspaces.
![]() Its always a work in progressI have a few more ideas that I want to do at some pointbut this one works wonders for me. I have the currently-playing albumtrack below that (using Bowtie), my computers network status, a check for if my website is up and the ping time to the server, and then my machines CPU and memory usage as well as relevant processes. ![]() This may be a mix of differences in output and other environmental factors; so you may also need to fiddle with the scripts as you use them. The commands I print out here will go in the Command field of that window, and then you can tweak with the fonts and colors and placement to your hearts content. Each of the text (February, 03, Thu, 10:28) are separate Geeklets, although you can certainly combine them if you like. I used separate Geeklets in order to order them the way I wished, as you can see. I was able to find a couple commands online for machine uptime, but I discovered that once my machine was up more than a day, the actual text did not make any more sense. The actual uptime output for more than a day would be something like. What I did up there was to cut the uptime command from to the 11th character (which should be just after the up portion) to an arbitrary character position (100I dont think my machine will ever be up enough to warrant any longer uptime text); then split the output to two strings using, number users as the delimiter (where to split, basically); that would result in something like 19:25 or 1 day, 19:25. The rest is just cosmetic substitution ( day to d,: to h, addition of min ). It basically gives you a command to run in Terminal to output the contents of your iCal into text output. After installing icalBuddy and making sure that the icalBuddy binarycommand is accessible by your system, you can simply run. I love it for quick checks to see if my website is actually up and how its doing. The green button is simply a Geeklet setting to display status feedback image. Create a shell script somewhere (via vim, TextMate, TextEdit, whatever you like) and put this in. Geektool Scripts Trial And ErrorThere are many similar blog posts containing the use of top and ps and whatnot with this same information, but for this one Ive kind of fiddled around with it quite a bit using a lot of the man command;) and trial and error. Two samples are shown to get the CPU usage, and the extra table header line (since there are essentially two tables in the output) is removed from the top at the last. I had a to do Geeklet using icalBuddy, which Ive removed; I also had my apache error log on my desktop, but I decided it wasnt too pretty to have error logs on a desktop;). You might know me from Scripts.Indisguise.Org where I used to dabble a little with linkware toys, or Yahoo Southeast Asia, but nowadays Im the technical lead for HungryGoWhere where I am always hungry, since I end up looking at food all day.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |