5 width: childrenRect.width
6 height: childrenRect.height
20 text: "Active Mem: MB"
21 verticalAlignment: Text.AlignVCenter
22 horizontalAlignment: Text.AlignHCenter
24 //height: parent.height
28 var x = out.match(/[0-9]+/gi);
30 return "Active Mem: "+Math.round(x/1024)+ " MB"
34 command: "sh -c \"cat /proc/meminfo | /bin/grep 'Active:'\""
35 onCompleted: { txt.text = parse(stdout) }
36 onFailed: { bg.color = "red"; txt.text = stderr }
39 running: runtime.isActiveWindow
42 onTriggered: { process.run() }