Re: Display system monitoring counter on hard-status line?

2007-09-04 Thread Karl.
On Wed, Sep 05, 2007 at 12:13:19AM -0400, cga2000 wrote: > As to %CPU, I couldn't find anything useful in /proc, ...SNIP... This isn't quite directly useful, but here's a snippet of lua code I use for getting cpu usage for the status bar of my window manager: f=io.open('/proc/stat','r')

Re: Display system monitoring counter on hard-status line?

2007-09-04 Thread cga2000
On Tue, Sep 04, 2007 at 06:54:19PM EDT, Aaron Griffin wrote: > On 9/3/07, cga2000 <[EMAIL PROTECTED]> wrote: > > Is there any way I can display the following on the hard-status line: > > Something like: > http://img.phraktured.net/other/screen-status.png > > Sure! > Here's my current config: > ht

Re: Display system monitoring counter on hard-status line?

2007-09-04 Thread Aaron Griffin
On 9/3/07, cga2000 <[EMAIL PROTECTED]> wrote: > Is there any way I can display the following on the hard-status line: Something like: http://img.phraktured.net/other/screen-status.png Sure! Here's my current config: http://phraktured.net/config/.screenrc And the script directory: http://phraktur

Re: Display system monitoring counter on hard-status line?

2007-09-04 Thread Johannes Weiner
Hi, On Mon, Sep 03, 2007 at 06:44:10PM -0400, cga2000 wrote: > Is there any way I can display the following on the hard-status line: > > . %RAM used > . %SWAP used > . CPU temperature > . %CPU I use this: backtick 0 10 10 awk '{ printf "%sC", $2 }' /proc/acpi/thermal_zone/THM0/temperature A