<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Conky Blog &#187; Hints &amp; Tips</title>
	<atom:link href="http://blog.conky.be/category/hints-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.conky.be</link>
	<description>The Official Blog for Conky, a Lightweight System Monitor</description>
	<lastBuildDate>Wed, 12 May 2010 19:52:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Widgets in Conky? It can be done!</title>
		<link>http://blog.conky.be/2009/10/19/widgets-in-conky-it-can-be-done/</link>
		<comments>http://blog.conky.be/2009/10/19/widgets-in-conky-it-can-be-done/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 20:56:36 +0000</pubDate>
		<dc:creator>londonali1010</dc:creator>
				<category><![CDATA[Hints & Tips]]></category>

		<guid isPermaLink="false">http://blog.conky.be/?p=132</guid>
		<description><![CDATA[If you haven't already jumped on the Conky 1.7.2 bandwagon, now may be the time to try it out...I've written a new script in Lua, that will allow you to draw widgets to your Conky window, a la this screenie:

The Conky above is a combination of four separate widgets (one clock and 4 semi-rings) in [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven't already jumped on the Conky 1.7.2 bandwagon, now may be the time to try it out...I've written a new script in Lua, that will allow you to draw widgets to your Conky window, a la this screenie:<br />
<a href="http://blog.conky.be/2009/10/19/widgets-in-conky-it-can-be-done/2009-10-17-1255819891_1024x600_scrot/" rel="attachment wp-att-133"><img src="http://blog.conky.be/wp-content/uploads/2009/10/2009-10-17-1255819891_1024x600_scrot-300x175.png" alt="Conky Widgets Screenshot" title="Conky Widgets Screenshot" width="300" height="175" class="aligncenter size-medium wp-image-133" /></a><br />
The Conky above is a combination of four separate widgets (one clock and 4 semi-rings) in the Conky Widgets script, and all the text is written with Conky.  You can download the Lua script and .conkyrc that made it here: <a href='http://blog.conky.be/2009/10/19/widgets-in-conky-it-can-be-done/conky_widgets-tar/' rel='attachment wp-att-134'>conky_widgets.tar.gz</a>.</p>
<p>This Conky Widgets script is essentially a "shell" to hold blocks of widget code, with the idea that you or anyone else can write blocks of code and call them simply in a single script, without having to make drastic changes to your script or to your Conky.  To use it with your Conky, download the empty script here: <a href='http://blog.conky.be/2009/10/19/widgets-in-conky-it-can-be-done/conky_widgets-lua-tar/' rel='attachment wp-att-137'>conky_widgets.lua.tar.gz</a>.  Then download one or more code blocks: Air Clock (<a href='http://blog.conky.be/2009/10/19/widgets-in-conky-it-can-be-done/air_clock_wb-txt-tar/' rel='attachment wp-att-138'>air_clock_wb.txt.tar.gz</a>) or Ring Meter (<a href='http://blog.conky.be/2009/10/19/widgets-in-conky-it-can-be-done/ring_wb-txt-tar/' rel='attachment wp-att-139'>ring_wb.txt.tar.gz</a>).  Simply copy the code block into the empty widget script, following the instructions in the script's header.</p>
<p>Finally, call your widgets with the following code before TEXT in your .conkyrc:</p>
<blockquote><pre lang="lua" line="1">lua_load ~/scripts/conky_widgets.lua
lua_draw_hook_pre widgets</pre>
</blockquote>
<p>Have a go and see what you can do!  And if you write a widget code block yourself, please do post it here so we can all see what you've done.</p>
<p>(Don't have Conky 1.7.2 installed yet?  Start <a href="http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/">here</a>!)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.conky.be/2009/10/19/widgets-in-conky-it-can-be-done/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Lua Cairo Bindings for Conky 1.7.2+&#8230;Getting Started</title>
		<link>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/</link>
		<comments>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 20:01:49 +0000</pubDate>
		<dc:creator>londonali1010</dc:creator>
				<category><![CDATA[Hints & Tips]]></category>

		<guid isPermaLink="false">http://blog.conky.be/?p=67</guid>
		<description><![CDATA[If you saw my last post about Lua Cairo bindings for Conky 1.7.2+, but didn't go any further with it, then you're not alone! It's pretty daunting at first, especially if you haven't programmed in Lua or Cairo before. Perhaps I can persuade you...?
The images in the following two screenshots use only Conky. They were [...]]]></description>
			<content:encoded><![CDATA[<p>If you saw <a href="http://blog.conky.be/?p=11">my last post about Lua Cairo bindings</a> for Conky 1.7.2+, but didn't go any further with it, then you're not alone! It's pretty daunting at first, especially if you haven't programmed in Lua or Cairo before. Perhaps I can persuade you...?</p>
<p>The images in the following two screenshots use only Conky. They were written in Lua, using Cairo bindings:<br />
<a rel="attachment wp-att-68" href="http://blog.conky.be/?attachment_id=68"><img class="aligncenter size-medium wp-image-68" title="&quot;Air&quot; Clock Screenshot" src="http://blog.conky.be/wp-content/uploads/2009/09/2009-09-26-1253997905_1024x600_scrot-300x175.png" alt="&quot;Air&quot; Clock Screenshot" width="300" height="175" /></a></p>
<p><a rel="attachment wp-att-69" href="http://blog.conky.be/?attachment_id=69"> <img class="aligncenter size-medium wp-image-69" title="&quot;Rings&quot; Screenshot" src="http://blog.conky.be/wp-content/uploads/2009/09/2009-09-27-1254084788_1024x600_scrot-300x175.png" alt="&quot;Rings&quot; Screenshot" width="300" height="175" /></a></p>
<p>If I've tickled your fancy, here are a few tips to get you started!</p>
<p><strong>Before you start</strong></p>
<p>First and foremost, grab yourself a copy of the <a href="http://sourceforge.net/projects/conky/" target="_blank">latest Conky release</a>. Â If you are running Ubuntu 9.04 or higher, you can get the .deb <a href="https://launchpad.net/~norsetto/+archive/ppa/+packages" target="_blank">here</a>. Â If you are running Ubuntu 9.10 Karmic Koala, version 1.7.2 is in the Karmic repos.</p>
<p><span style="background-color: #ffffff;">Read through the <a href="http://cairographics.org/tutorial/">Cairo tutorial</a>, and familiarise yourself with the <a href="http://www.lua.org/docs.html">Lua documentation</a>. Â Not to say that you should do every exercise word-for-word or read every entry in the Lua reference manual, but it'll give you an idea of the kinds of things you can do, and where to find help if you need it.</span></p>
<p><strong>Starting out</strong></p>
<p>The easiest way to start is to modify someone else's work, just to get used to the syntax. Just find a script you like and start tweaking. Maybe change colours or shapes, placement of objects, or combine elements from different scripts. Try the following:</p>
<ul>
<li><a href="http://norsetto.890m.com/Conky_Cairo.php">Clock background</a> by Norsetto</li>
<li><a href="http://www.gnome-look.org/content/show.php?content=111096">Conky Pies</a> by Brenden Matthews</li>
<li><a href="http://conky.linux-hardcore.com/?page_id=2780" target="_blank">Air Clock</a> or <a href="http://conky.linux-hardcore.com/?page_id=2800" target="_blank">Rings</a>, both by me</li>
</ul>
<p>If you're ready to start making your own ideas come to life, have a go recreating the <a href="http://cairographics.org/samples/">Cairo snippets</a> on the Cairo website. Then start breaking out your own designs!</p>
<p><strong>Working with Conky</strong></p>
<p>There are a couple of bits you'll definitely need to get your Lua script to work with Conky. First, to define your Cairo surface:</p>
<blockquote><p>if conky_window==nil then return end<br />
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, onky_window.width, conky_window.height)<br />
cr=cairo_create(cs)</p></blockquote>
<p>Next, the best bit: you can use the function conky_parse() to evaluate any Conky expression. For instance, you can use:</p>
<blockquote><p>str=conky_parse('${cpu cpu0}')</p></blockquote>
<p>to grab the total CPU percent usage of your system. It is saved as a string, so in order to get it as a numerical value, you will need to use:</p>
<blockquote><p>value=tonumber(str)</p></blockquote>
<p>conky_parse() and tonumber() together are a powerful combination, because it means that anything you can get in Conky, you can get in your Lua script.</p>
<p><strong>And finally</strong></p>
<p>Don't forget, if you come up with a new weird and wonderful way to use Conky, post it here!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.conky.be/2009/09/28/lua-cairo-bindings-getting-started/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>5 Great Sources of Conky Inspiration</title>
		<link>http://blog.conky.be/2009/09/07/5-great-sources-of-conky-inspiration/</link>
		<comments>http://blog.conky.be/2009/09/07/5-great-sources-of-conky-inspiration/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 21:02:44 +0000</pubDate>
		<dc:creator>londonali1010</dc:creator>
				<category><![CDATA[Hints & Tips]]></category>

		<guid isPermaLink="false">http://blog.conky.be/?p=37</guid>
		<description><![CDATA[So, I think we're all on the same page by now: Conky is a fantastic system monitor, but it can also be a nice little bit of eye-candy for your desktop. Once you've got a handle on the basics, you'll probably be looking for inspiration for your next great Conky config. Here are my top [...]]]></description>
			<content:encoded><![CDATA[<p>So, I think we're all on the same page by now: Conky is a fantastic system monitor, but it can also be a nice little bit of eye-candy for your desktop. Once you've got a handle on the basics, you'll probably be looking for inspiration for your next great Conky config. Here are my top 5 favourite places to look, when I'm after ideas for a new Conky setup...</p>
<p><strong>5. <a href="http://conky.sourceforge.net/variables.html" target="_self">Conky Documentation</a></strong></p>
<p style="text-align: center;"><a href="http://conky.sourceforge.net/variables.html"><img class="size-medium wp-image-39 aligncenter" title="Conky Documentation" src="http://blog.conky.be/wp-content/uploads/2009/09/Conky-Documentation-300x175.png" alt="Conky Documentation" width="300" height="175" /></a></p>
<p>Browsing the Conky documentation may not seem particularly inspiring, but you'd be surprised! I've found some of my favourite variables just by reading through the variable list...Variables I would probably not have learned about any other way. For instance, it was here that I discovered the $scroll variable, which scrolls text inside a set number of characters. It was also here that I stumbled upon the $if_updatenr variable, which counts the number of updates and can display a different set of outputs for each one.</p>
<p><strong>4. <a href="http://ubuntuforums.org/showthread.php?t=281865" target="_blank">The Ubuntu Forums Conky Screenshot Thread</a></strong></p>
<p style="text-align: left;"><strong><a href="http://ubuntuforums.org/showthread.php?t=281865"><img class="size-medium wp-image-40 aligncenter" title="Ubuntu Forums" src="http://blog.conky.be/wp-content/uploads/2009/09/Ubuntu-Forums-300x175.png" alt="Ubuntu Forums" width="300" height="175" /></a></strong>The biggest active thread I've found devoted to Conky, this baby boasts over 900 pages (at last count)...That's over nine THOUSAND posts of screenshots, hints, tips and troubleshooting. It's also frequented by some of the most prolific and best Conkyists out there, so you're dealing with the best of the best.</p>
<p><strong>3. <a href="http://wiki.conky.be/index.php/Conky_Wiki" target="_blank">Conky Wiki</a></strong></p>
<p style="text-align: left;"><strong><a href="http://wiki.conky.be/index.php/Conky_Wiki"><img class="size-medium wp-image-43 aligncenter" title="Conky Wiki" src="http://blog.conky.be/wp-content/uploads/2009/09/Conky-Wiki-300x175.png" alt="Conky Wiki" width="300" height="175" /></a></strong>The Conky Wiki is where new releases are described in the most detail, with feature tours, screenshots and code snippets. It's the best place to browse the latest features and get ideas on how to implement them.</p>
<p style="text-align: left;"><strong>2. <a href="http://www.flickr.com/groups/lifehacker-desktop-showandtell/pool/" target="_blank">The Lifehacker Desktop Show and Tell Pool on Flickr</a></strong></p>
<p style="text-align: left;"><a href="http://www.flickr.com/groups/lifehacker-desktop-showandtell/pool/"><img class="aligncenter size-medium wp-image-48" title="Lifehacker Pool" src="http://blog.conky.be/wp-content/uploads/2009/09/Lifehacker-Pool-300x175.png" alt="Lifehacker Pool" width="300" height="175" /></a>It's not all about Conky in this Flickr pool; it's a real mix of Mac OS, Linux distros and Windows. There are some absolutely <em>awesome</em> shots on here, from Conky to Rainmeter to Geektool to Samurize and beyond...If you want some real artistic inspiration, this is the place to look.</p>
<p style="text-align: left;"><strong>1. <a href="http://conky.linux-hardcore.com" target="_blank">Conky Hardcore!</a></strong></p>
<p style="text-align: left;"><strong><a href="http://conky.linux-hardcore.com"><img class="aligncenter size-medium wp-image-50" title="Conky Hardcore" src="http://blog.conky.be/wp-content/uploads/2009/09/Conky-Hardcore-300x175.png" alt="Conky Hardcore" width="300" height="175" /></a></strong>Hands down, the best place to look for Conky inspiration is <a href="http://conky.linux-hardcore.com" target="_blank">Conky Hardcore!</a> Captured from all over the 'net, Conky Hardcore! compiles the best and brightest ideas for Conky...and tells you how to achieve them on your own system. Whether you're a novice or an expert, Conky Hardcore! should definitely be in your bookmark list.</p>
<p style="text-align: left;"><strong>And finally...</strong></p>
<p style="text-align: left;">So those are my top 5 resources for Conky inspiration...What are yours?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.conky.be/2009/09/07/5-great-sources-of-conky-inspiration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
