Mac :: utilitaire :: GeekTool 3

GeekTool se bonifie et passe en version 3. Le site est lui aussi refait et propose des sections pour utilisateurs.

Cet utilitaire permet d’afficher le résultat de commandes Unix (shell), images ou éléments de pages Web sur le fond de votre bureau.

La nouvelle interface :

Voila_Capture32.png

http://projects.tynsoe.org/fr/geektool/

Les Processus en tête de liste :

top -ocpu -FR -l2 -n20 | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 1-24,33-42,64-77

Informations sur vos connexions Wifi :

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I

CPU Idle %

top -l 2 | awk '/CPU usage/ && NR > 5 {print $12, $13}'

IP Address (from nicinabox.com)

ifconfig en1 | grep "inet " | awk '{print $2}'

Calendrier (nicinabox.com)

cal | awk -v cday=`date "+%d"` '{ fill=(int(cday)>9?"":" ");
a=$0; sub(" "fill int(cday)" ","["fill int(cday)"]",a); print a }'

Upload

if=`ifconfig | awk '($1 ~ /^inet$/ && $2 !~ /^127.0.0.1$/) || /BROADCAST/ {if ($1 == "inet") {sub(/:/,"",i); print i; exit;} else i = $1;}'`; o=`netstat -I $if -bn | awk 'NR == 2 {print $10}'`; sleep 4; if [ -n "$if" ]; then echo `expr \( \`netstat -I $if -bn | awk 'NR == 2 {print $10}'\` - $o \) | awk '{printf("%.1f KB/s",$1 / (1024 * 4))}'` up; fi

Download

if=`ifconfig | awk '($1 ~ /^inet$/ && $2 !~ /^127.0.0.1$/) || /BROADCAST/ {if ($1 == "inet") {sub(/:/,"",i); print i; exit;} else i = $1;}'`; i=`netstat -I $if -bn | awk 'NR == 2 {print $7}'`; sleep 4; if [ -n "$if" ]; then echo `expr \( \`netstat -I $if -bn | awk 'NR == 2 {print $7}'\` - $i \) | awk '{printf("%.1f KB/s",$1 / (1024 * 4))}'` dn; fi

En savoir plus sur Les miscellanées Numériques

Abonnez-vous pour recevoir les derniers articles par e-mail.

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur la façon dont les données de vos commentaires sont traitées.