diff options
author | Don Stewart <dons@cse.unsw.edu.au> | 2007-04-29 08:11:50 +0200 |
---|---|---|
committer | Don Stewart <dons@cse.unsw.edu.au> | 2007-04-29 08:11:50 +0200 |
commit | d84c032faed91e63de9107a4c4692d86d5b579d1 (patch) | |
tree | e2e1c1cbb5886e1d7e79fffca5f6fbffe761716f /examples/dzen-status/status | |
download | XMonadContrib-d84c032faed91e63de9107a4c4692d86d5b579d1.tar.gz XMonadContrib-d84c032faed91e63de9107a4c4692d86d5b579d1.tar.xz XMonadContrib-d84c032faed91e63de9107a4c4692d86d5b579d1.zip |
Initial import of xmonad contributions
darcs-hash:20070429061150-9c5c1-3c20053de19f4d37e8fd2a22d86277901bfc66d2.gz
Diffstat (limited to 'examples/dzen-status/status')
-rwxr-xr-x | examples/dzen-status/status | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/dzen-status/status b/examples/dzen-status/status new file mode 100755 index 0000000..6ffe04a --- /dev/null +++ b/examples/dzen-status/status @@ -0,0 +1,9 @@ +#!/bin/sh +au=`date +"%H.%M %a %b %d"` +uk=`TZ=GMT date +"UK %H.%M"` +us=`TZ=America/New_York date +"NY %H.%M"` +ca=`TZ=America/Los_Angeles date +"SF %H.%M"` +hw=`/sbin/sysctl hw.setperf | sed "s/.*=//" | perl -anle 'print (0.6 + ($F[0]) / 100)'` +ut=`uptime | sed 's/.*://; s/,//g'` +bt=`/usr/sbin/apm | sed -n 's/.*: \([^ ]*\).*$/\1/;2p;4p' | xargs printf "apm %s%%, AC %s\n"` +(printf "%s : %s : %s : %s : %s Ghz : %s :%s\n" "$au" "$uk" "$us" "$ca" "$hw" "$bt" "$ut"; sleep 10) | dzen2 |