[dwm] Stats script

From: Jake Todd <jaketodd422_AT_gmail.com>
Date: Sat, 2 May 2009 23:30:23 -0400

I was wondering what some other dwm users were using for stats like
memory, temperature, et cetera. Right now I'm using this for
termperature, memory, wifi, date:

#!/bin/sh

while true
    do
        xsetroot -name
"`cat /proc/acpi/thermal_zone/THRM/temperature | sed -e
's/temperature://g' -e 's/\ //g'` | `free -m | tail -2 | head -1 | sed
-e 's/-\/+//g' | sed 's/buffers\/cache://g' | cut -d' ' -f11,12 | sed
-e 's/\ //g'`MB | `cat /proc/net/wireless | tail -1 | sed -e
's/wlan0://g' -e 's/0000//g' -e 's/\ \ //g' | cut -d' ' -f1,2 | sed -e
's/\ //g'`% | `date '+%a %b %d %Y %T'`"
        sleep 1
done &
exec dwm

The only problem with this is when memory goes over 100MB, it doesn't
show up (need to fix that).
 
What are you guys using?
Received on Sun May 03 2009 - 03:30:23 UTC

This archive was generated by hypermail 2.2.0 : Sun May 03 2009 - 03:36:03 UTC