From: Johan S. <Joh...@xs...> - 2006-03-11 17:59:09
|
Patrick de Brabander wrote: > Hi all. > > I'm using lcd4linix 0.10, and was wondering how i can put my harddisk > information on my LCD screen. > I want to see how much i used or left on /dev/hda. Hello Patrick, You might want to use something similar to: Widget DiskFree { class 'Text' expression statfs( '/Cdos', 'bavail' )*statfs('/Cdos', 'bsize')/1024/1024 prefix '/Windows ' postfix 'MB free' precision 0 width 20 align 'L' update 2000 } This displays the amount of diskspace left on /Cdos. Just replace /Cdos with the mountpoint of the device you want to monitor. You might want to change the text following prefix as well. If you really want to have the space left on /dev/hda, then you have to compute the sum of the space left on the relevant devices /dev/hda1, /dev/hda2, ... . Succes, Johan > > can somebodt help me with this or has some more examples for v 0.10. > > thanks > > Patrick > > > ------------------------------------------------------------------------ > > This message is scanned for virusses and other harmfull contents by > *MailScanner* <http://www.mailscanner.info/> and appears to be clean. > This e-mail is intended for the addressee shown. It contains information > that is confidential and protected > from disclosure. Any review, dissemination or use of this transmission > or its contents by persons or unauthorized > employees of the intended organisations is strictly prohibited. > /*Postmaster @ www.pdebrabander.nl */ > > ------------------------------------------------------------------------ |