macfidelity

|

rethinking the think-different thing

Nerd/Geektool

You can realize the following desktop effect with both

Anyways lets start to collect some code examples. As wordpress tends to eat my snippet code i’ll use screenshots for the code-quotes. That’s far away from perfect – but at least it should work.

As final note

It might make sense to play with different fonts to get better formatting results.

Date & Time

20091011_geektool_02

That’s based on a set of small shell commands.

Time

20091011_geektool_03

Day

20091011_geektool_04

Month

20091011_geektool_05

Date

20091011_geektool_06

If you are interested in more date-related commands consider the following list

  • Month (string): date +%B
  • Day of month (number): date +%d
  • Full date: date "+%A, %B %d"
  • Day of week (string): date +%A
  • Time: date +"%l:%M"
  • AM/PM: date +"%p"

Calendar

Show simple calendar

20091011_geektool_13

via

20091011_geektool_14

Show advanced calendar

20091011_geektool_07

via

20091011_geektool_08

Show horizontal calendar

20091101_nerdtool_01

via

20091101_nerdtool_02

Show today in history

20091011_geektool_23

via

20091011_geektool_24

Weather

Show weather image and temperature

This time it’s a bit more complicated as you need to work with a script (which must be configured) and 2 entries in Geektool/Nerdtool but it should end in something similar to the following 2 images

20091025_geeknerdtool_01

20091025_geeknerdtool_02

via

Part 1: execute weather.sh weather.sh

20091025_geeknerdtool_03

Part 2: display script-output weather.jpg (the path must be configured in the script above)

20091025_geeknerdtool_04

Network

Show established network connections

20091011_geektool_09

via

20091011_geektool_10

Show ping results

20091011_geektool_11

via
20091011_geektool_12

Show external ip

20091011_geektool_19

via

20091011_geektool_20

System

Show system resources & top processes

20091011_geektool_15

via

20091011_geektool_16

Show processes and cpu usage

20091011_geektool_25

via

20091011_geektool_26

Show memory informations

20091011_geektool_27

via

20091011_geektool_28

Show system uptime

20091011_geektool_17

via

20091011_geektool_18

Show size of Trash

20091011_geektool_21

via

20091011_geektool_22

Show memory status (Mac Pro with Riser-cards and FB-Dimm)

20091022_system_profiler_03

via

20091022_system_profiler_02

9 Responses to “Nerd/Geektool”

  1. Blog | Kleinere Updates | macfidelity Says:

    [...] Nerd/Geektool [...]

  2. Susrich Says:

    Kleiner Nachtrag für SnowL (10.6.*) [stellt die CPU-Last in Prozent mit dem alten Skript nicht mehr dar]

    Uptime / Ram / CPU

    _____________________
    uptime | awk ‘{print “UPTIME : ” $3 ” ” $4 ” ” $5 }’ | sed -e ’s/.$//g’; \
    top -l 1 | awk ‘/PhysMem/ {print “RAM : ” $8 ” “}’ ; \
    top -l 2 | awk ‘/CPU usage/ && NR > 5 {print $1, “:”, $3, $4, $5, $6, $7, $8}’
    ___________

    Frage: Was ist denn mit dem Kalenderskript los?? Auch bei Dir sehe ich, wird der Monat Oktober für seine ersten Tage völlig falsch dargestellt. Bei mir auch. Kann man das nicht besser machen???

    ReplyReply
  3. fidel Says:

    @Susrich
    mit dem Kalender hast du absolut recht …. witzig dabei das es mir bei der aufnahme garnicht aufgefallen ist.
    Ich brauch Urlaub ;)

    Ansonsten danke für den Nachtrag.

    Gruss
    fidel

    ReplyReply
  4. bernd Says:

    bin mir sicher ihr seid schon draufgekommen dass das mit nem fixed width font nicht passiert beim kalender.

    ReplyReply
  5. fidel Says:

    @bernd:
    danke …. manchmal denke ich einfach nicht an das relevante – obwohl ich den prinzipiellen Hinweis schon selber im Text verfasst hatte hehe ;)

    @Susrich:
    hat sich jetzt erledigt oder ?

    ReplyReply
  6. Randnotiz | Geektool/Nerdool Weather Script Update | macfidelity Says:

    [...] Nerd/Geektool [...]

  7. ommi Says:

    Alter Lachs! :D Ist das ne coole Sache, dieses NerdTool! Vielen vielen Dank für die ganzen Codes hier!

    ReplyReply
  8. Randnotiz | Monitor RAID status with Perl & Nerdtool/Geektool | macfidelity Says:

    [...] ergänzende Geektool/Nerdtool Ideen findet ihr u.a. hier im [...]

  9. mac | Geektool AppleScript’en | macfidelity Says:

    [...] Die Basics zum Programm bietet die Projektseite. Solltet ihr an Anwendungsfällen interessiert sein lohnt ein Blick auf die folgenden Tags (#geektool sowie #nerdtool) hier im Blog sowie ggf ein Blick auf die Mini-Script-Sammlung. [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>