[mythtv-users] Disk Space UI

Joe Borne joe.borne at gmail.com
Wed Jan 16 14:23:40 UTC 2008


You could try something like this:

Install zenity if it's not already in your system. It's a small package
unless you have to delve into a lot of dependencies. It allows you to use
the gtk widget set to display dialogs.

Then put something like this in a bash script that runs in cron every 5

SPACE=`df -h|head -n 3|tail -n 1|awk '{ print $3 }'|sed 's/G//g'`
zenity --error --text "There is only $SPACE GB of space remaining on the
system. You must delete 3-5 recorded programs to have enough space to record
anything new."

I don't know if you can get zenity dialogs to listen to LIRC, but mythnotify
or wifeypopup could be used in subsitution for zenity in the above example.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20080116/a410d5e2/attachment.htm 

More information about the mythtv-users mailing list