I need help writing the code for a widget I had an idea for. Pretty much, the widget will display the total amount, in percentage form, that you are using of all of your attached hard drives. I am pretty handy with javascript and I already have the design for it done. I've also looked into how to call terminal commands from with my widget. Sadly, though, I don't know what to call from the terminal or how to slice the information I get into the necessary format.
Is anyone out there that can help me with this?