<?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>Make Tech Easier &#187; conky</title>
	<atom:link href="http://maketecheasier.com/tag/conky/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Fri, 20 Nov 2009 13:39:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Create A Minimal And Beautiful Desktop With Conky</title>
		<link>http://maketecheasier.com/how-to-create-a-minimal-and-beautiful-desktop-with-conky/2008/10/30</link>
		<comments>http://maketecheasier.com/how-to-create-a-minimal-and-beautiful-desktop-with-conky/2008/10/30#comments</comments>
		<pubDate>Thu, 30 Oct 2008 02:23:28 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[conky]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=1024</guid>
		<description><![CDATA[Conky is a simple, lightweight system monitor application that can display information on your desktop and allows you to monitor several processes simultaneously. For those who like to keep a minimal desktop, but still want to have quick access to various information such as emails, weather, memory usage etc, then Conky is just the application [...]<p><strong><a href="http://maketecheasier.com/how-to-create-a-minimal-and-beautiful-desktop-with-conky/2008/10/30">How to Create A Minimal And Beautiful Desktop With Conky</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/10-of-the-best-linux-desktop-customization-screenshots-to-inspire-your-creativity/2008/11/28' rel='bookmark' title='Permanent Link: 10 Of The Best Linux Desktop Customization Screenshots To Inspire Your Creativity'>10 Of The Best Linux Desktop Customization Screenshots To Inspire Your Creativity</a></li><li><a href='http://maketecheasier.com/create-install-your-own-usplash-theme-in-ubuntu/2009/01/25' rel='bookmark' title='Permanent Link: How To Create And Install Your Own Usplash Theme In Ubuntu'>How To Create And Install Your Own Usplash Theme In Ubuntu</a></li><li><a href='http://maketecheasier.com/you-want-a-beautiful-os-try-elive/2009/02/26' rel='bookmark' title='Permanent Link: You Want A Beautiful OS? Try Elive'>You Want A Beautiful OS? Try Elive</a></li><li><a href='http://maketecheasier.com/create-a-great-window-maker-desktop/2009/02/14' rel='bookmark' title='Permanent Link: How To Create A Great Window Maker Desktop'>How To Create A Great Window Maker Desktop</a></li><li><a href='http://maketecheasier.com/nitrogen-a-background-setter-for-lightweight-desktop-manager/2008/12/02' rel='bookmark' title='Permanent Link: Nitrogen: A Background Setter For Lightweight Desktop Manager'>Nitrogen: A Background Setter For Lightweight Desktop Manager</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://conky.sourceforge.net/" target="_blank">Conky</a> is a simple, lightweight system monitor application that can display information on your desktop and allows you to monitor several processes simultaneously. For those who like to keep a minimal desktop, but still want to have quick access to various information such as emails, weather, memory usage etc, then Conky is just the application for you.</p>
<p><img class="alignnone size-full wp-image-1032" title="my conky-setup" src="http://images.maketecheasier.com/2008/10/conky-screenshot-small.jpg" alt="conky-screenshot" width="580" height="363" /></p>
<p>While the installation of Conky is easy, configuring it can be a rather troublesome task. Follow this tutorial closely and I am sure you&#8217;ll master the trick in no time.</p>
<p><strong>Install Conky</strong></p>
<p>Click <a href="apt:conky">here</a> to install Conky on your Ubuntu machine. Alternatively, open your terminal (<em>Applications -&gt; Accessories -&gt; Terminal</em>) and type:</p>
<p class="codeblock">sudo apt-get install conky</p>
<p>Once the installation is completed, type in the terminal:</p>
<p class="codeblock">zcat /usr/share/doc/conky/examples/conky.conf.gz &gt; ~/.conkyrc</p>
<p>To test if conky is working, in the terminal, type</p>
<p class="codeblock">conky</p>
<p>A window will pop up showing all your system information. Other than the background which is your own wallpaper, the information will be the same as the one shown in the image below.</p>
<p><a title="Conky Window" rel="lightbox" href="http://images.maketecheasier.com/2008/10/conky1.jpg"><img class="alignnone size-thumbnail wp-image-1025" title="conky-window" src="http://images.maketecheasier.com/2008/10/conky1-150x150.jpg" alt="conky-window" width="150" height="150" /></a><br />
<small>(Click to enlarge)</small></p>
<p>Close the conky window. We are now going to configure it to display the information that we want and also to change its color to match those of your wallpaper.</p>
<p><strong>Configuring Conky</strong></p>
<p>Go to your Home folder (<em>Places -&gt; Home</em>). Press <em>Ctrl + H</em> to show hidden files. Scroll down till you found the file <em>.conkyrc</em>. Double click to open it in Text editor. This is the main config file that will affect what is showing on your desktop.</p>
<p>Scroll down the list and make sure the following configuration are set properly. Make sure that these settings do not have a &#8216;#&#8217; in front. If yes, remove them.</p>
<p class="codeblock">background yes<br />
use_xft yes<br />
xftfont Bitstream Vera Sans Mono:size=8<br />
xftalpha 0.8<br />
update_interval 5.0<br />
total_run_times 0<br />
own_window no<br />
own_window_type desktop<br />
own_window_transparent yes<br />
own_window_colour black<br />
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager<br />
double_buffer yes<br />
minimum_size 280 5<br />
draw_shades yes<br />
draw_outline no<br />
draw_borders no<br />
draw_graph_borders no<br />
stippled_borders 8<br />
border_margin 4<br />
border_width 1<br />
default_color white<br />
default_shade_color black<br />
default_outline_color black<br />
alignment top_right<br />
gap_x 12<br />
gap_y 12<br />
no_buffers yes<br />
uppercase no<br />
cpu_avg_samples 2<br />
net_avg_samples 2<br />
override_utf8_locale no<br />
use_spacer none<br />
text_buffer_size 1024<br />
override_utf8_locale yes</p>
<p>The above configurations are the default setting that I used in my system. When you are more familiar with it, you can change it to suit your needs. When you are done with the configuration setting, leave this aside for a while. We will get back to it later.</p>
<p><strong>Installing the Mail and Weather Forecast package for Conky</strong></p>
<p>We need to install additional package in order for Conky to display new mail and weather forecast on your desktop.</p>
<p>In your terminal,</p>
<p class="codeblock">gksu gedit /etc/apt/sources.list</p>
<p>Add the following line to the end of the file.</p>
<p class="codeblock">deb http://ppa.launchpad.net/m-buck/ubuntu hardy main</p>
<p>Save and close.</p>
<p>Back to your terminal,</p>
<p class="codeblock">sudo apt-get update<br />
sudo apt-get install conkyemail conkyforecast</p>
<p><strong>Configuring Weather Forecast</strong></p>
<p>Now, go to <a href="http://www.weather.com/services/xmloap.html" target="_blank">Weather.com</a> and sign up a partner account. This will enable you to enquire the weather information in your city.</p>
<p><img class="alignnone size-full wp-image-1027" title="weather-signup" src="http://images.maketecheasier.com/2008/10/weather-signup.jpg" alt="weather-signup" width="580" height="120" /></p>
<p>Once you have signed up, check your mailbox for the confirmation email. Scroll down the mail until you see your Partner ID and License key.</p>
<p><img class="alignnone size-full wp-image-1028" style="border:1px solid #000" title="weather-key" src="http://images.maketecheasier.com/2008/10/weather-key.jpg" alt="weather-key" width="377" height="146" /></p>
<p>Back to your terminal,</p>
<p class="codeblock">sudo cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config<br />
gedit ~/.conkyForecast.config</p>
<p>Fill in the XOAP_Partner_ID and XOAP_License_key fields with the information from the confirmation email. Save and exit.</p>
<p>On your browser, go to <a href="http://xoap.weather.com/search/search?where=YOUR_CITY" target="_blank">http://xoap.weather.com/search/search?where=YOUR_CITY</a> and replace YOUR_CITY with the name of your city. You will see a xml similar to the image below. Record down the id. This is the identifier for your city and you will need it later on.</p>
<p><img class="alignnone size-full wp-image-1029" style="border:1px solid #000" title="weather.com xml file" src="http://images.maketecheasier.com/2008/10/weather-xml.jpg" alt="weather.com xml file" width="578" height="283" /></p>
<p><strong>Putting all together</strong></p>
<p>Back to your .conkyrc file, scroll down to until you see the line</p>
<p class="codeblock"># stuff after &#8216;TEXT&#8217; will be formatted on screen<br />
TEXT</p>
<p>As stated in the statement, anything that is placed under the word TEXT will be displayed on the screen. There is a certain syntax that you need to follow to get it to display correctly and beautifully.</p>
<p>The following is my configuration . You are free to copy and modify.</p>
<p class="codeblock"><code>TEXT<br />
${font Radio Space:size=30}${color5}DAMIEN'S PC<br />
${voffset -20}${color1}$hr<br />
${voffset -20}${font Radio Space:size=14}${color1}${time %A %d %Y}<br />
${font Radio Space:size=55}${color1}${time %H:%M}<br />
${voffset -15}${font ConkyWeather:size=36}c ${font Verdana:size=15}${voffset -5}${execi 3600 conkyForecast --location=SNXX0006 --datatype=LT} / ${execi 3600 conkyForecast --location=SNXX0006 --datatype=HT}<br />
$stippled_hr<br />
${font Verdana:style=Bold:size=9}${color1}Yahoo: ${font Verdana:size=8}${execi 600 conkyEmail --servertype=POP --servername=pop.mail.yahoo.com --username=xyz --password=xyz --ssl}  new emails<br />
${font Verdana:style=Bold:size=9}${color1}Gmail: ${font Verdana:size=8}${execi 600 conkyEmail --servertype=IMAP --servername=imap.googlemail.com --username=xyz --password=xyz --ssl} new emails<br />
$stippled_hr<br />
${font Verana:style=Bold:size=9}CPU1: ${font Verana:size=8}${cpubar cpu1 10,150} ${cpu cpu1}%<br />
${font Verana:style=Bold:size=9}CPU2: ${font Verana:size=8}${cpubar cpu2 10,150} ${cpu cpu2}%<br />
${font Verana:style=Bold:size=8}Name              PID     CPU%   MEM%<br />
${font Verana:size=8}${top name 1}    ${top pid 1}  ${top cpu 1}  ${top mem 1}<br />
${top name 2}    ${top pid 2}  ${top cpu 2}  ${top mem 2}<br />
${top name 3}    ${top pid 3}  ${top cpu 3}  ${top mem 3}<br />
${top name 4}    ${top pid 4}  ${top cpu 4}  ${top mem 4}<br />
${top name 5}    ${top pid 5}  ${top cpu 5}  ${top mem 5}<br />
${font Verana:style=Bold:size=9}RAM:  ${font Verdana:size=8}${mem} / ${memmax} (${memperc}%)<br />
${font Verana:style=Bold:size=9}SWAP: ${font Verdana:size=8}${swap} / ${swapmax} (${swapperc}%)<br />
$stippled_hr<br />
${font Verana:style=Bold:size=9}IP Address: ${font Verana:size=8}${gw_ip}<br />
${font Verana:style=Bold:size=9}Total Download: ${font Verana:size=8}${totaldown eth1}<br />
${font Verana:style=Bold:size=9}Total Upload: ${font Verana:size=8}${totalup eth1}<br />
${font Verana:style=Bold:size=9}Up Speed: ${font Verdana:size=8}${upspeed eth1} Kb/s  ${font Verana:style=Bold:size=9}Down Speed: ${font Verdana:size=8}${downspeed eth1} Kb/s<br />
$stippled_hr<br />
${font Verana:style=Bold:size=9}To Do List<br />
${font Verana:size=8}${execi 30 cat /home/damien/TODO.txt}</code></p>
<p>Some of the commonly used syntax involve:</p>
<p><strong><em>${font Verdana:style=Bold:size=12}</em></strong> &#8211; This means setting the displayed font to <em>Verdana</em> of size 12 and bold. You can modify the font or the size to suit your desktop. A thing to note is that it only supports fonts that are installed in your system. To get new fonts, you can go to <a href="http://www.dafont.com/" target="_blank">dafont.com</a> and download your favorite fonts at no charge at all.</p>
<p><strong><em>${execi 3600 &#8230;}</em></strong> &#8211; The <em>execi</em> syntax allows you to execute external scripts. Note that we use the <em>execi</em> syntax to check your email address, weather forecast and also to read a TODO list file and output to the screen. The number behind the <em>execi</em> determines the interval (in sec) for Conky to execute the scripts.</p>
<p><strong><em>$hr / $stippled_hr</em> </strong>- This is to insert a horizontal line in the screen. The <em>$stippled_hr</em> syntax refers to a dotted line.</p>
<p><strong><em>${execi 3600 conkyForecast &#8211;location=SNXX0006 &#8211;datatype=LT}</em></strong> &#8211; This is the execution code to retrieve Weather information from <a href="http://www.weather.com" target="_blank">Weather.com</a>. Note that you need to replace the <code>--location=xyz</code> by your city&#8217;s identifier.</p>
<p><strong><em>${execi 600 conkyEmail &#8211;servertype=IMAP &#8211;servername=imap.googlemail.com &#8211;username=xyz &#8211;password=xyz &#8211;ssl}</em></strong> &#8211; This is the execution code to retrieve information from your Gmail and Yahoo mail account. To enable IMAP service, you will need to enable the IMAP setting in your Gmail account (<em>Settings -&gt; Forwarding and POP/IMAP</em>)</p>
<p><strong><em>${execi 30 cat /home/damien/TODO.txt}</em></strong> &#8211; This is the execution code to read my TODO list file located in my Home folder and display it on the screen</p>
<p>For more information on the syntax, check out the <a href="http://conky.sourceforge.net/variables.html" target="_blank">Conky variable</a> site.</p>
<p><strong>Testing out your Conky</strong></p>
<p>When you are done with your setting, in your terminal, type</p>
<p class="codeblock">conky</p>
<p>to get it running, and</p>
<p class="codeblock">killall conky</p>
<p>to terminate it.</p>
<p><strong>Start Conky everytime you log in</strong></p>
<p>Go to <em>System -&gt; Preferences -&gt; Sessions</em> and click <em>Add</em>. Fill in the field as shown below</p>
<p><img class="alignnone size-full wp-image-1030" title="conky" src="http://images.maketecheasier.com/2008/10/conky-session.jpg" alt="conky session setting" width="369" height="203" /></p>
<p>Conky will now load up automatically next time you log in to your system.</p>
<p>This is a screenshot of my Conky setup. Not really the best, but it does clean up my desktop in an elegant style.</p>
<p><a title="My Conky Setup" rel="lightbox" href="http://images.maketecheasier.com/2008/10/conky-screenshot.jpg"><img class="alignnone size-full wp-image-1032" title="my conky-setup" src="http://images.maketecheasier.com/2008/10/conky-screenshot-small.jpg" alt="conky-screenshot" width="580" height="363" /></a><br />
<small>Click to enlarge</small></p>
<p>I am sure you have a much better setup than mine. You can share your conky screenshot by leaving a link in the comment or email me at <em>damien [at] maketecheasier.com</em></p>
<p><strong>Useful resources</strong></p>
<ul>
<li><a href="http://conky.sourceforge.net/variables.html" target="_blank">Conky variables</a></li>
<li><a href="http://conky.sourceforge.net/config_settings.html" target="_blank">Conky config setting</a></li>
<li><a href="http://conky.sourceforge.net/docs.html" target="_blank">Conky documentation</a></li>
<li><a href="http://maketecheasier.com/conkyrc.txt">My .conkyrc file</a> (Right click and select <em>Save Link As.</em> Rename the file to <em>.conkyrc</em> and place it in your home folder<em>)</em></li>
<li><a href="http://ubuntuforums.org/showthread.php?p=5436679#post5436679" target="_blank">Ubuntu Forum</a></li>
</ul>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-8765285789552883";
/* MTE body ad300x250, created 5/17/09 */
google_ad_slot = "3980792036";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p></p>
<p><strong><a href="http://maketecheasier.com/how-to-create-a-minimal-and-beautiful-desktop-with-conky/2008/10/30">How to Create A Minimal And Beautiful Desktop With Conky</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/10-of-the-best-linux-desktop-customization-screenshots-to-inspire-your-creativity/2008/11/28' rel='bookmark' title='Permanent Link: 10 Of The Best Linux Desktop Customization Screenshots To Inspire Your Creativity'>10 Of The Best Linux Desktop Customization Screenshots To Inspire Your Creativity</a></li><li><a href='http://maketecheasier.com/create-install-your-own-usplash-theme-in-ubuntu/2009/01/25' rel='bookmark' title='Permanent Link: How To Create And Install Your Own Usplash Theme In Ubuntu'>How To Create And Install Your Own Usplash Theme In Ubuntu</a></li><li><a href='http://maketecheasier.com/you-want-a-beautiful-os-try-elive/2009/02/26' rel='bookmark' title='Permanent Link: You Want A Beautiful OS? Try Elive'>You Want A Beautiful OS? Try Elive</a></li><li><a href='http://maketecheasier.com/create-a-great-window-maker-desktop/2009/02/14' rel='bookmark' title='Permanent Link: How To Create A Great Window Maker Desktop'>How To Create A Great Window Maker Desktop</a></li><li><a href='http://maketecheasier.com/nitrogen-a-background-setter-for-lightweight-desktop-manager/2008/12/02' rel='bookmark' title='Permanent Link: Nitrogen: A Background Setter For Lightweight Desktop Manager'>Nitrogen: A Background Setter For Lightweight Desktop Manager</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/how-to-create-a-minimal-and-beautiful-desktop-with-conky/2008/10/30/feed</wfw:commentRss>
		<slash:comments>68</slash:comments>
		</item>
	</channel>
</rss>
