http://woozle.org/~neale/g.cgi/status
I've been maintaining a status program (in C) for a while now. It makes
your status line look like this:
-49dBm 1.82 1.6G 62° (64%) 10 Nov 11:51
| | | | |
| | | | Battery (parens = discharging)
| | | CPU Temperature
| | CPU Frequency
| Load average 1min
Wifi Quality
It has thresholds (settable via command-line options) for not bothering
to display values. For example, if the load average is under 1.4 *
number_of_CPUs (by default), it won't display that. Also, if your
machine doesn't support a particular feature, like battery or wifi,
that's not displayed.
It also runs a helper program periodically, prepending that program's
output to its own. Mine's a shell script that runs anacron in the
background and outputs some files that various anacron jobs write
(check for new email, monitor IRC activity, etc.)
Finally, it tries to detect when your machine has gone into suspend
mode, and activates the screen saver using XActivateScreenSaver. See
http://woozle.org/~neale/src/xss.html for more on this; if you don't
use an XScreenSaver client, nothing will happen.
Because it's an X11 client, it will automatically exit when your X
server goes away. So you can run it in the background in your X
startup script and forget about it.
I hope someone finds it useful.
http://woozle.org/~neale/g.cgi/status
Received on Wed Sep 05 2012 - 23:47:26 CEST