You should have a working plasmoid application from previous examples. Take a copy of the plasmoid and rename it. After this you can replace contents of the <tt>contents/code/main.js</tt> with following:

You should have a working plasmoid application from previous examples. Take a copy of the plasmoid and rename it. After this you can replace contents of the <tt>contents/code/main.js</tt> with following:

−

<code>

+

<syntaxhighlight lang="text">

layout = new LinearLayout(plasmoid);

layout = new LinearLayout(plasmoid);

Revision as of 20:45, 29 June 2011

This example assumes that you are familiar with previous examples such as NowPlaying (from which this example was adapted).

Following code illustrates how to connect to systemmonitor and how to receive updates from various data sources.

You should have a working plasmoid application from previous examples. Take a copy of the plasmoid and rename it. After this you can replace contents of the contents/code/main.js with following: