<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=402081&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Postez vos scripts Lua pour Conky !]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=402081</link>
		<description><![CDATA[Les sujets les plus récents dans Postez vos scripts Lua pour Conky !.]]></description>
		<lastBuildDate>Thu, 07 Mar 2013 17:58:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12821831#p12821831</link>
			<description><![CDATA[<p>sympa et content sue j&#039;ai pu un peu t&#039;éclairer <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>Le miens se compose de plusieurs conkys et me fait un fond d&#039;écran </p><p><a href="http://pix.toile-libre.org/?img=1362679013.png"><span class="postimg"><img src="http://pix.toile-libre.org/upload/img/1362679013.png" alt="1362679013.png" /></span></a></p><p>le fond d&#039;origine </p><p><a href="http://pix.toile-libre.org/?img=1362679098.jpg"><span class="postimg"><img src="http://pix.toile-libre.org/upload/img/1362679098.jpg" alt="1362679098.jpg" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (maan)]]></author>
			<pubDate>Thu, 07 Mar 2013 17:58:44 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12821831#p12821831</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12807221#p12807221</link>
			<description><![CDATA[<p>Merci Maan pour tes infos.<br />Voici ce que ça donne pour le moment :</p><p><a href="http://www.hostingpics.net/viewer.php?id=199732Capturedu20130306152307.png"><span class="postimg"><img src="http://img15.hostingpics.net/thumbs/mini_199732Capturedu20130306152307.png" alt="mini_199732Capturedu20130306152307.png" /></span></a></p><p>Il me reste a poser sous la date l&#039;icone de la météo du jour et j&#039;aurais la total <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (morfla)]]></author>
			<pubDate>Wed, 06 Mar 2013 14:26:25 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12807221#p12807221</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12708081#p12708081</link>
			<description><![CDATA[<p>excuse j&#039;avais pas fait attention <img src="http://forum.ubuntu-fr.org/img/smilies/roll.png" width="15" height="15" alt="roll" /></p><p>pour la CM je ne sais pas vraiment, ton ati je ne la vois pas apparaitre dans le retour de ton screen<br />Après pour ton cpu :<br />--- dans ton conkyrc </p><div class="codebox"><pre><code>CPU : ${hwmon x temp x}</code></pre></div><p>Pour retrouver les chiffres exactes par lesquels remplacer les x tu les retrouves en comparant tes résultats terminal et les fichier qui se trouvent <br />/sys/class/hwmon/hwmonx/device/tempx_input <br />A toi de retrouver le bon fichier correspondant à ta t° cpu et de remplacer les x<br />--- Dans ton lua tu copi un ring et tu remplace &quot;name&quot; et &quot;arg&quot; </p><div class="codebox"><pre><code>name=&#039;hwmon&#039; 
arg=&#039;x temp x&#039;</code></pre></div><p>Les x seront les mêmes que dans ton conkyrc</p><p>Voilà après à toi de bien renseigner pour les placés ou tu les désires avec ${voffset xx} et ${goto xx} dans ton conkyrc et &quot;x=--&quot; et &quot;y=--&quot; dans ton lua<br />Après je ne suis pas un pro, moi c&#039;est ainsi que j&#039;ai procéder, <br />alors il y aura peut être d&#039;autres solutions, et peut être quelqu&#039;un pour te renseigner pour la CM et ton Ati</p>]]></description>
			<author><![CDATA[dummy@example.com (maan)]]></author>
			<pubDate>Mon, 25 Feb 2013 23:31:56 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12708081#p12708081</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12701781#p12701781</link>
			<description><![CDATA[<p>oui, j&#039;avais mis le screen pour vous montrer justement <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (morfla)]]></author>
			<pubDate>Mon, 25 Feb 2013 14:20:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12701781#p12701781</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12697531#p12697531</link>
			<description><![CDATA[<p>Tout d&#039;abord as-tu &quot;lm-sensors&quot; d&#039;installer ??<br />dans un terminal </p><div class="codebox"><pre><code>sensors</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (maan)]]></author>
			<pubDate>Sun, 24 Feb 2013 21:44:21 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12697531#p12697531</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12693631#p12693631</link>
			<description><![CDATA[<p>Bonjour tous le monde.</p><p>J&#039;aurais besoin d&#039;un coup de main pour modifier le conky que j&#039;ai DL sur le net dont voici un screen :</p><p><a href="http://www.hostingpics.net/viewer.php?id=814263Capturedu20130224162948.png"><span class="postimg"><img src="http://img11.hostingpics.net/thumbs/mini_814263Capturedu20130224162948.png" alt="mini_814263Capturedu20130224162948.png" /></span></a></p><p>Je vous mets le contenue des fichiers conkyrc et conkyorange.lua</p><p>Je souhaiterais arriver a avoir la température de mon cpu, ma CM&#160; et éventuellement de mon ATI<br />Si quelqu&#039;un peut m&#039;aider <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre class="vscroll"><code>#==============================================================================
#                               conkyrc_orange
#
#  author  : SLK
#  version : v2011011601
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 10
gap_y 30
minimum_size 190 450
maximum_width 190
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tr

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 EF5A29

lua_load ~/.conky/conky_orange.lua
lua_draw_hook_post main

#${voffset 35}
#${goto 95}${color3}${font ubuntu:size=32}${time %e}${color1}${voffset 0}${offset -60}${font ubuntu:size=10}${time %A}
#${goto 85}${color2}${voffset -2}${font ubuntu:size=9}${time %b}${voffset -2} ${color3}${font ubuntu:size=12}${time %Y}${font}
#
#${voffset 70}


TEXT
${voffset 35}
${goto 95}${color4}${font ubuntu:size=22}${time %e}${color1}${offset -50}${font ubuntu:size=10}${time %A}
${goto 85}${color2}${voffset -2}${font ubuntu:size=9}${time %b}${voffset -2} ${color3}${font ubuntu:size=12}${time %Y}${font}

${voffset 80}
${goto 90}${font Ubuntu:size=7,weight:bold}${color}CPU
${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}${top name 2}${alignr}${top cpu 2}%
${goto 90}${font Ubuntu:size=7,weight:normal}${color3}${top name 3}${alignr}${top cpu 3}%
${goto 90}${cpugraph 10,100 666666 666666}
${goto 90}${voffset -10}${font Ubuntu:size=7,weight:normal}${color}${threads} process 

${voffset 20}
${goto 90}${font Ubuntu:size=7,weight:bold}${color}MEM
${goto 90}${font Ubuntu:size=7,weight:normal}${color1}${top_mem name 1}${alignr}${top_mem mem 1}%
${goto 90}${font Ubuntu:size=7,weight:normal}${color2}${top_mem name 2}${alignr}${top_mem mem 2}%
${goto 90}${font Ubuntu:size=7,weight:normal}${color3}${top_mem name 3}${alignr}${top_mem mem 3}%

${voffset 15}
${goto 90}${font Ubuntu:size=7,weight:bold}${color}DISKS

${goto 90}${diskiograph 30,100 666666 666666}${voffset -30}
${goto 90}${font Ubuntu:size=7,weight:normal}${color}used: ${fs_used /home} /home
${goto 90}${font Ubuntu:size=7,weight:normal}${color}used: ${fs_used /} /</code></pre></div><div class="codebox"><pre class="vscroll"><code>--==============================================================================
--                            conky_orange.lua
--
--  author  : SLK
--  version : v2011062101
--  license : Distributed under the terms of GNU GPL version 2 or later
--
--==============================================================================

require &#039;cairo&#039;

--------------------------------------------------------------------------------
--                                                                    clock DATA
-- HOURS
clock_h = {
    {
    name=&#039;time&#039;,                   arg=&#039;%H&#039;,                    max_value=12,
    x=110,                         y=80,
    graph_radius=53,
    graph_thickness=3,
    graph_unit_angle=30,           graph_unit_thickness=30,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.0,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    txt_radius=34,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=0.6,
    graduation_radius=53,
    graduation_thickness=6,        graduation_mark_thickness=2,
    graduation_unit_angle=30,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    },
}
-- MINUTES
clock_m = {
    {
    name=&#039;time&#039;,                   arg=&#039;%M&#039;,                    max_value=60,
    x=110,                         y=80,
    graph_radius=57,
    graph_thickness=2,
    graph_unit_angle=6,            graph_unit_thickness=6,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    txt_radius=70,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=0.6,
    graduation_radius=57,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=30,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    },
}
-- SECONDS
clock_s = {
    {
    name=&#039;time&#039;,                   arg=&#039;%S&#039;,                    max_value=60,
    x=110,                         y=80,
    graph_radius=50,
    graph_thickness=2,
    graph_unit_angle=6,            graph_unit_thickness=2,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.0,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    txt_radius=40,
    txt_weight=0,                  txt_size=12.0,
    txt_fg_colour=0xFFFFFF,        txt_fg_alpha=0.3,
    graduation_radius=0,
    graduation_thickness=0,        graduation_mark_thickness=0,
    graduation_unit_angle=0,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.0,
    },
}

--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu0&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=18,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu1&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=22,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu2&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=26,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu3&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=30,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu4&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=34,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu5&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=38,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu6&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=42,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu7&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=46,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;cpu&#039;,                    arg=&#039;cpu8&#039;,                  max_value=100,
    x=85,                          y=200,
    graph_radius=50,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;memperc&#039;,                arg=&#039;&#039;,                      max_value=100,
    x=85,                          y=300,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
    caption=&#039;&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name=&#039;fs_used_perc&#039;,           arg=&#039;/&#039;,                     max_value=100,
    x=85,                          y=380,
    graph_radius=24,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=34,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;/&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name=&#039;fs_used_perc&#039;,           arg=&#039;/home/&#039;,                max_value=100,
    x=85,                          y=380,
    graph_radius=18,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.2,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=10,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption=&#039;/home&#039;,
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},

}

-------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end

-------------------------------------------------------------------------------
--                                                              draw_clock_ring
-- displays clock
--
function draw_clock_ring(display, data, value)
    local max_value = data[&#039;max_value&#039;]
    local x, y = data[&#039;x&#039;], data[&#039;y&#039;]
    local graph_radius = data[&#039;graph_radius&#039;]
    local graph_thickness, graph_unit_thickness = data[&#039;graph_thickness&#039;], data[&#039;graph_unit_thickness&#039;]
    local graph_unit_angle = data[&#039;graph_unit_angle&#039;]
    local graph_bg_colour, graph_bg_alpha = data[&#039;graph_bg_colour&#039;], data[&#039;graph_bg_alpha&#039;]
    local graph_fg_colour, graph_fg_alpha = data[&#039;graph_fg_colour&#039;], data[&#039;graph_fg_alpha&#039;]

    -- background ring
    cairo_arc(display, x, y, graph_radius, 0, 2 * math.pi)
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = (value % max_value)
    local i = 1
    while i &lt;= val do
        cairo_arc(display, x, y, graph_radius,(  ((graph_unit_angle * i) - graph_unit_thickness)*(2*math.pi/360)  )-(math.pi/2),((graph_unit_angle * i) * (2*math.pi/360))-(math.pi/2))
        cairo_set_source_rgba(display,rgb_to_r_g_b(graph_fg_colour,graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = (graph_unit_angle * i) - graph_unit_thickness

    -- graduations marks
    local graduation_radius = data[&#039;graduation_radius&#039;]
    local graduation_thickness, graduation_mark_thickness = data[&#039;graduation_thickness&#039;], data[&#039;graduation_mark_thickness&#039;]
    local graduation_unit_angle = data[&#039;graduation_unit_angle&#039;]
    local graduation_fg_colour, graduation_fg_alpha = data[&#039;graduation_fg_colour&#039;], data[&#039;graduation_fg_alpha&#039;]
    if graduation_radius &gt; 0 and graduation_thickness &gt; 0 and graduation_unit_angle &gt; 0 then
        local nb_graduation = 360 / graduation_unit_angle
        local i = 1
        while i &lt;= nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            cairo_arc(display, x, y, graduation_radius, (((graduation_unit_angle * i)-(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2),(((graduation_unit_angle * i)+(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data[&#039;txt_radius&#039;]
    local txt_weight, txt_size = data[&#039;txt_weight&#039;], data[&#039;txt_size&#039;]
    local txt_fg_colour, txt_fg_alpha = data[&#039;txt_fg_colour&#039;], data[&#039;txt_fg_alpha&#039;]
    local movex = txt_radius * (math.cos((angle * 2 * math.pi / 360)-(math.pi/2)))
    local movey = txt_radius * (math.sin((angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, &quot;ubuntu&quot;, CAIRO_FONT_SLANT_NORMAL, txt_weight);
    cairo_set_font_size (display, txt_size);
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha));
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3);
    cairo_show_text (display, value);
    cairo_stroke (display);
end

-------------------------------------------------------------------------------
--                                                              draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
    local max_value = data[&#039;max_value&#039;]
    local x, y = data[&#039;x&#039;], data[&#039;y&#039;]
    local graph_radius = data[&#039;graph_radius&#039;]
    local graph_thickness, graph_unit_thickness = data[&#039;graph_thickness&#039;], data[&#039;graph_unit_thickness&#039;]
    local graph_start_angle = data[&#039;graph_start_angle&#039;]
    local graph_unit_angle = data[&#039;graph_unit_angle&#039;]
    local graph_bg_colour, graph_bg_alpha = data[&#039;graph_bg_colour&#039;], data[&#039;graph_bg_alpha&#039;]
    local graph_fg_colour, graph_fg_alpha = data[&#039;graph_fg_colour&#039;], data[&#039;graph_fg_alpha&#039;]
    local hand_fg_colour, hand_fg_alpha = data[&#039;hand_fg_colour&#039;], data[&#039;hand_fg_alpha&#039;]
    local graph_end_angle = (max_value * graph_unit_angle) % 360

    -- background ring
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = value % (max_value + 1)
    local start_arc = 0
    local stop_arc = 0
    local i = 1
    while i &lt;= val do
        start_arc = (graph_unit_angle * i) - graph_unit_thickness
        stop_arc = (graph_unit_angle * i)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = start_arc

    -- hand
    start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
    stop_arc = (graph_unit_angle * val)
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
    cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
    cairo_stroke(display)

    -- graduations marks
    local graduation_radius = data[&#039;graduation_radius&#039;]
    local graduation_thickness, graduation_mark_thickness = data[&#039;graduation_thickness&#039;], data[&#039;graduation_mark_thickness&#039;]
    local graduation_unit_angle = data[&#039;graduation_unit_angle&#039;]
    local graduation_fg_colour, graduation_fg_alpha = data[&#039;graduation_fg_colour&#039;], data[&#039;graduation_fg_alpha&#039;]
    if graduation_radius &gt; 0 and graduation_thickness &gt; 0 and graduation_unit_angle &gt; 0 then
        local nb_graduation = graph_end_angle / graduation_unit_angle
        local i = 0
        while i &lt; nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
            stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
            cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data[&#039;txt_radius&#039;]
    local txt_weight, txt_size = data[&#039;txt_weight&#039;], data[&#039;txt_size&#039;]
    local txt_fg_colour, txt_fg_alpha = data[&#039;txt_fg_colour&#039;], data[&#039;txt_fg_alpha&#039;]
    local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
    local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
    cairo_select_font_face (display, &quot;ubuntu&quot;, CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data[&#039;caption&#039;]
    local caption_weight, caption_size = data[&#039;caption_weight&#039;], data[&#039;caption_size&#039;]
    local caption_fg_colour, caption_fg_alpha = data[&#039;caption_fg_colour&#039;], data[&#039;caption_fg_alpha&#039;]
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, &quot;ubuntu&quot;, CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 5, y + toy + 1)
    -- bad hack but not enough time !
    if graph_start_angle &lt; 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end

-------------------------------------------------------------------------------
--                                                               go_clock_rings
-- loads data and displays clock
--
function go_clock_rings(display)
    local function load_clock_rings(display, data)
        local str, value = &#039;&#039;, 0
        str = string.format(&#039;${%s %s}&#039;,data[&#039;name&#039;], data[&#039;arg&#039;])
        str = conky_parse(str)
        value = tonumber(str)
        draw_clock_ring(display, data, value)
    end
    
    for i in pairs(clock_h) do
        load_clock_rings(display, clock_h[i])
    end
    for i in pairs(clock_m) do
        load_clock_rings(display, clock_m[i])
    end
    for i in pairs(clock_s) do
        load_clock_rings(display, clock_s[i])
    end
end

-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = &#039;&#039;, 0
        str = string.format(&#039;${%s %s}&#039;,data[&#039;name&#039;], data[&#039;arg&#039;])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end
    
    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[i])
    end
end

-------------------------------------------------------------------------------
--                                                                         MAIN
function conky_main()
    if conky_window == nil then 
        return
    end

    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    local display = cairo_create(cs)
    
    local updates = conky_parse(&#039;${updates}&#039;)
    update_num = tonumber(updates)
    
    if update_num &gt; 5 then
        go_clock_rings(display)
        go_gauge_rings(display)
    end
    
    cairo_surface_destroy(cs)
    cairo_destroy(display)
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (morfla)]]></author>
			<pubDate>Sun, 24 Feb 2013 15:36:50 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12693631#p12693631</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12545771#p12545771</link>
			<description><![CDATA[<p>Bonsoir</p><p>Toutes mes excuses pour le retard mais je veux dire &quot;Chapeau&quot; et merci.<br />Pour le HOME j&#039;avais trouvé mais pour la température je cherchais depuis longtemps.</p><p>Encore Merci <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (bruno-mi)]]></author>
			<pubDate>Mon, 11 Feb 2013 17:11:26 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12545771#p12545771</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12471101#p12471101</link>
			<description><![CDATA[<p>bonjour</p><p>@bruno-mi</p><p>pour la t° de ta ville tu ouvre ton navigateur ensuite tu vas sur <a href="http://weather.noaa.gov">http://weather.nooa.gov</a> puis go<br />ensuite tu descends jusqu&#039;à &quot;international weather conditions&quot; et tu sélectionne ton pays puis go<br />puis tu sélectionne la ville de ton choix (attention si tu habite une petite ville il se peut qu&#039;elle n&#039;apparaisse pas dans les choix, donc prendre la &quot;grosse&quot; ville la plus proche) puis go<br />ensuite dans ton conkyrc mettre à la place de LQBK les quatre lettres qui sont affichées dans la barres d&#039;adresse du navigateur (ex paris-orly = LFPO)<br />puis dans ton conkyrc, 2 lignes avant celle des 4 lettres, tu remplace HOME par la ville de ton choix<br />voilou</p>]]></description>
			<author><![CDATA[dummy@example.com (ludo63)]]></author>
			<pubDate>Tue, 05 Feb 2013 10:05:39 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12471101#p12471101</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12461461#p12461461</link>
			<description><![CDATA[<div class="quotebox"><cite>DJ Raging-Bull a écrit&#160;:</cite><blockquote><div><p>Bonjour, </p><p>Pour&#160; ma part j&#039;utilise ce conky:<br /><a href="http://www.clapico.com/wp-content/uploads/2012/04/conky02.png">http://www.clapico.com/wp-content/uploa … onky02.png</a></p><p>J&#039;aimerais bien n&#039;avoir que jusqu&#039;à RAM sans rien en dessous.<br />Pourriez vous m&#039;indiquer comment procéder ? J&#039;ai réussi à virer les textes, mais quand je veux enlever les anneaux ça enlève aussi les aiguilles de l&#039;horloge.</p></div></blockquote></div><p>Bonjour,</p><p>J&#039;utilise aussi ce conky et je chercher à mettre la température de ma ville au lieu de celle affichée (dont je ne connais pas la provenance).<br />Dans le fichier .conkyrc il y a bien une ligne concernant la température:</p><p>${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather <a href="http://weather.noaa.gov/pub/data/observations/metar/stations/">http://weather.noaa.gov/pub/data/observ … /stations/</a> LQBK temperature temperature 30} °C${font}</p><p>Mais après je sèche...</p><p>Si quelqu&#039;un a une idée ???<br />@+<br />Ps désolé d&#039;avoir déjà posté cette question dans un autre sujet.</p>]]></description>
			<author><![CDATA[dummy@example.com (bruno-mi)]]></author>
			<pubDate>Mon, 04 Feb 2013 13:39:18 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12461461#p12461461</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12452921#p12452921</link>
			<description><![CDATA[<p>je ne saurai t&#039;aider davantage, mais je pense que tu devrais poster ton problème dans une autre rubrique du forum : <a href="http://forum.ubuntu-fr.org/viewtopic.php?pid=12432711#p12432711">http://forum.ubuntu-fr.org/viewtopic.ph … #p12432711</a> , d&#039;une part il y a plus de monde qui le lit, deuxièmement le sujet ici est plus pour les problème avec les scripts lua...</p>]]></description>
			<author><![CDATA[dummy@example.com (chepioq)]]></author>
			<pubDate>Sun, 03 Feb 2013 16:52:20 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12452921#p12452921</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12448461#p12448461</link>
			<description><![CDATA[<p>salut, merci pour cette réponse si rapide ^^<br /> en effet je n&#039;ai pas installer ces polices demandés&#160; -_-&quot;</p><p>EDIT: je viens d&#039;installer toutes polices demandés et j&#039;ai toujours le mm problème de petits carrés :S</p><p>je viens de comprendre que les petits carrés devant le 2/02/2013 , il s&#039;agit surement d&#039;un moyen pour indiquer le jour actuel, car aujourd&#039;hui les carrés ont migrés jusqu&#039;au 3/02/2013 ..<br />Si quelqu&#039;un sait comment régler le probleme <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>EDIT 2 : si quelqu&#039;un pouvait me donner la ligne qui fait retrait vers droite, parce que je crois qu&#039;il s&#039;agit d&#039;un probleme de retrait, j&#039;ai regardé partout il ne s&#039;agit ni d&#039;un probleme d&#039;encodage, ni de police dans mon cas !</p>]]></description>
			<author><![CDATA[dummy@example.com (kaizoku kuma)]]></author>
			<pubDate>Sun, 03 Feb 2013 12:27:36 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12448461#p12448461</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12444811#p12444811</link>
			<description><![CDATA[<p>Juste une question : as-tu installé les polices utilisées dans ces conky ? (à savoir HandelGotD, birth of a hero, ubuntu et StyleBats )</p><p>D&#039;autre part je trouve qu&#039;il y a un peu trop d&#039;appel à ces polices...</p>]]></description>
			<author><![CDATA[dummy@example.com (chepioq)]]></author>
			<pubDate>Sun, 03 Feb 2013 06:32:59 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12444811#p12444811</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12442191#p12442191</link>
			<description><![CDATA[<p>Bonjour,<br /> je me permet de up ce forum car j&#039;ai besoin d&#039;aide concernant un script de calendrier !<br />Je ne connais pas du tout le langage de programmation utilisé pour les modules conky, je ne demande qu&#039;à apprendre <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>voila mon problème, j&#039;ai récupérer un conky, je ne sais plus trop où ... (je vous le linkerais dès que je l&#039;aurais retrouver !)<br />je l&#039;ai installer car il comprenais tout ce j&#039;avais besoin : </p><p>&#160; &#160; -calendrier<br />&#160; &#160; - date<br />&#160; &#160; - processus en cours(bien qu&#039;il manque les PID, dommage)<br />&#160; &#160; - espaces libre du HD(enfin de ma partition) <br />&#160; &#160; - indicateur de mail non lu !<br />&#160; &#160; -une partie pour afficher des flux rss, cela n&#039;étant interessant que si on peut utiliser du php, mais là encore j&#039;aimerais bien savoir s&#039;il y a moyen d&#039;utiliser du php !<br />Si oui comment ?</p><p>Seulement, j&#039;ai des petits carrés qui s&#039;affichent un peu partout ... j&#039;ai essayer de reprendre d&#039;autres scripts mais aucun moyen de les faire partir ... j&#039;ai lu quelques part qu&#039;il fallait enregistrer le fichier et mettre fin de ligne Unix/Linux , je l&#039;ai déjà fait mais j&#039;ai toujours les petits carrés ...</p><p>voici le code complet sans aucune modification du fichier .conkyrc : </p><div class="codebox"><pre class="vscroll"><code>own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

background yes
use_xft yes
xftfont HandelGotD:size=8
xftalpha 0.8
update_interval 0.5
total_run_times 0
double_buffer yes
minimum_size 200
maximum_size 300
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_left
gap_x 10
gap_y 40
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
show_graph_scale no
show_graph_range no
text_buffer_size 1024
#colour
#default_color 000000
color2 ffffff
short_units yes
pad_percents 2

TEXT
${font birth of a hero:size=50}${time %B} ${font ubuntu:size=20} ${font}
${font birth of a hero:size=50}${color orange}${time %d}$color ${font} ${font birth of a hero:size=20} ${voffset -40}${time %A} ${font}

${font birth of a hero:size=70}${time %H:%M}${font}

${font birth of a hero:size=40} RAM: ${color orange}$memperc%$color${font}
${offset 50}${font birth of a hero:size=20} SWAP: ${color orange}$swapperc%$color${font}





${font ubuntu bold:size=10}${color orange}MEMÓRIA$color${font}
${hr 2}
${font StyleBats:size=14}g${font} ${top_mem name 1}${alignr}${top_mem mem 1}
${font StyleBats:size=14}g${font} ${top_mem name 2}${alignr}${top_mem mem 2}
${font StyleBats:size=14}g${font} ${top_mem name 3}${alignr}${top_mem mem 3}
${font StyleBats:size=14}g${font} ${top_mem name 4}${alignr}${top_mem mem 4}
${font StyleBats:size=14}g${font} ${top_mem name 5}${alignr}${top_mem mem 5}
${font StyleBats:size=14}g${font} ${top_mem name 6}${alignr}${top_mem mem 6}
${font StyleBats:size=14}g${font} ${top_mem name 7}${alignr}${top_mem mem 7}
${font StyleBats:size=14}g${font} ${top_mem name 8}${alignr}${top_mem mem 8}




${font ubuntu bold:size=10}${color orange}DISCOS$color${font}
${hr 2}
${voffset 4}${font Pie charts for maps:size=12}7${font} ${voffset -5}/:
${voffset 4}${fs_used /}/${fs_size /} ${alignr} ${fs_bar 8,60 /}




${font ubuntu bold:size=10}${color orange}REDE$color${font}
${hr 2}
${alignr}${addr eth1}

${voffset -6}${font PizzaDude Bullets:size=12}O${font} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=12}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=12}N${font} Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=12}T${font} Download: ${alignr}${totaldown eth1}</code></pre></div><p>voici le code complet sans aucune modification du fichier .conkyrc_rss (le module qui contient le calendrier, notif de mails et rss :</p><div class="codebox"><pre class="vscroll"><code>own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

background no
use_xft yes
xftfont HandelGotD:size=8
xftalpha 0.8
update_interval 0.5
total_run_times 0
double_buffer yes
minimum_size 200
maximum_size 1440
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 0
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
show_graph_scale no
show_graph_range no
text_buffer_size 1024
#colour
default_color 000000
color2 FFFFFF
short_units yes
pad_percents 2
TEXT
${font ubuntu bold:size 8}${color orange}OMG Ubuntu${font}${color ffffff}
${hr 2}
${rss http://feeds.feedburner.com/d0od 6 item_titles 6}

${font ubuntu bold:size 8}${color orange}Cinema${font}${color ffffff}
${hr 2}
${rss http://rss.cinema.uol.com.br/ultnot/index.xml 8 item_titles 8}

${font ubuntu bold:size 8}${color orange}Tecnologia ${font}${color ffffff}
${hr 2}
${rss http://d.yimg.com/br.rss.news.yahoo.com/rss/tecnologia 10 item_titles 10}

${font ubuntu bold:size 8}${color orange}LINUX${font}${color ffffff}
${hr 2}
${rss http://feeds.feedburner.com/NoticiasLinux 6 item_titles 6}

${font ubuntu bold:size 8}${color orange}MangaStream${font}${color ffffff}
${hr 2}
${rss http://feeds.feedburner.com/mstream 4 item_titles 4}

${font ubuntu bold:size 8}${color orange}E-mail${font}${color ffffff}
${hr 2}
EMAIL: ${alignc} ${pop3_unseen SERVIDORPOPAQUI LOGIN SENHA [-i 60]} 

${font DejaVu Sans:pixelsize=10}${alignc}${execi 60 date +&quot;%B %Y&quot; | tr &quot;[:lower:]&quot; &quot;[:upper:]&quot;}${font Snap.se:size=8 }${font}
${font DejaVu Sans Mono:size=10}${execpi 60 cal | sed &#039;1d&#039; | sed &#039;3d&#039; | sed &#039;2d&#039; | sed &#039;2d&#039; | sed &#039;2d&#039; | sed &#039;2d&#039; | sed &#039;2d&#039; | sed &#039;s/^/${alignc} /&#039;}${font} ${color orange}
${font DejaVu Sans Mono:size=10}${execpi 60 DJS=`date +%_d`; cal | sed &#039;1d&#039; | sed &#039;/./!d&#039; | sed &#039;s/$/                    /&#039; | fold -w 21 | sed -n &#039;/^.\{21\}/p&#039; | sed &#039;s/^/${alignc} /&#039; | sed /&quot; $DJS &quot;/s/&quot; $DJS &quot;/&quot; &quot;&#039;${color1}&#039;&quot;$DJS&quot;&#039;${color0}&#039;&quot; &quot;/}${font}</code></pre></div><p>Merci d&#039;avance !</p><p>EDIT : <span class="postimg"><img src="http://image.noelshack.com/fichiers/2013/05/1359836583-capture-du-2013-02-02-21-20-59.png" alt="screenshot" /></span></p><p>et voila j&#039;ai retrouver le conky :http://br-lin.deviantart.com/art/Conky-Style-2-and-Tint2-185963802?q=&amp;qo=</p>]]></description>
			<author><![CDATA[dummy@example.com (kaizoku kuma)]]></author>
			<pubDate>Sat, 02 Feb 2013 21:07:47 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12442191#p12442191</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11266981#p11266981</link>
			<description><![CDATA[<p>Bonjour,</p><p>Je suis en train de me mettre au lua en essayant le script suivant pour écrire des textes courbés</p><p>courbe.lua</p><div class="codebox"><pre class="vscroll"><code>--[[
text on bezier curve by mr peachy 12/2011
credit to Daniel Pupius http://13thparallel.com/archive/bezier-curves/
for the bezier equations
also eXpander for the letter split function
]]
require &#039;cairo&#039;

function conky_beztext()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local updates=tonumber(conky_parse(&#039;${updates}&#039;))
if updates&gt;5 then
--#########################################################################################################

--Title


t={
startx=50,--set the start point of the curve
starty=700,--^^
endx=450,--set the end point of the curve
endy=550,--^^
angle1=15,--this is the angle around the start point that controls the curve
length1=160,--see below for explaination of how these settings affect the curve
angle2=230,
length2=140,
color={51,153,255,0.3},--this is the color of the text, red, green, blue, alpha
text=&quot; &quot;..conky_parse(&quot;   ${nodename} &quot;)..&quot; &quot;,
--font=&quot;URW Chancery L&quot;,
font=&quot;English&quot;,
fsize=30,--font size
}--end of setup table


btext(t)--this calls the text drawing function
--to see how the settings above affect the curve set display to 1 and call the curve drawing function below
--if you want the curve set display to 0 and call function
--else comment out the next 3 lines
local display=0--1=turn the setup display on,0=turn display off
local color={51,153,255,0.3}--color of curve, r,g,b,a
curvedraw(t,display)



t2={
startx=50,--set the start point of the curve
starty=700,--^^
endx=500,--set the end point of the curve
endy=590,--^^
angle1=45,--this is the angle around the start point that controls the curve
length1=170,--see below for explaination of how these settings affect the curve
angle2=220,
length2=150,
color={51,153,255,0.3},--this is the color of the text, red, green, blue, alpha
text=&quot;&quot;..conky_parse(&quot;  $sysname 12.04 LTS Unity on $machine&quot;)..&quot; &quot;,
--font=&quot;URW Chancery L&quot;,
font=&quot;English&quot;,
fsize=30,--font size
}--end of setup table


btext(t2)--this calls the text drawing function
--to see how the settings above affect the curve set display to 1 and call the curve drawing function below
--if you want the curve set display to 0 and call function
--else comment out the next 3 lines
local display=0--1=turn the setup display on,0=turn display off
local color={51,153,255,0.3}--color of curve, r,g,b,a
curvedraw(t2,display)


t3={
startx=50,--set the start point of the curve
starty=700,--^^
endx=480,--set the end point of the curve
endy=670,--^^
angle1=75,--this is the angle around the start point that controls the curve
length1=180,--see below for explaination of how these settings affect the curve
angle2=220,
length2=110,
color={51,153,255,0.3},--this is the color of the text, red, green, blue, alpha
text=&quot;&quot;..conky_parse(&quot;    Noyau : $kernel   &quot;)..&quot; &quot;,
--font=&quot;URW Chancery L&quot;,
font=&quot;English&quot;,
fsize=30,--font size
}--end of setup table


btext(t3)--this calls the text drawing function
--to see how the settings above affect the curve set display to 1 and call the curve drawing function below
--if you want the curve set display to 0 and call function
--else comment out the next 3 lines
local display=0--1=turn the setup display on,0=turn display off
local color={51,153,255,0.3}--color of curve, r,g,b,a
curvedraw(t3,display)


--#########################################################################################################
end-- if updates&gt;5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function

function btext(t)
--set variables
local startx=t.startx
local starty=t.starty
local endx=t.endx
local endy=t.endy
local angle1=t.angle1
local length1=t.length1
local angle2=t.angle2
local length2=t.length2
--set local functions
local function split_text (text_to_split, splitted_text)      
    for letter in text_to_split:gmatch(&quot;.&quot;) do
    table.insert(splitted_text, letter)
    end
return splitted_text
end
local function B1(t) return t*t*t end
local function B2(t) return 3*t*t*(1-t) end
local function B3(t) return 3*t*(1-t)*(1-t) end
local function B4(t) return (1-t)*(1-t)*(1-t) end
local function getBezier(percent,C1x,C1y,C2x,C2y,C3x,C3y,C4x,C4y)
local posx1 = C1x*B1(percent) + C2x*B2(percent) + C3x*B3(percent) + C4x*B4(percent);
local posy1 = C1y*B1(percent) + C2y*B2(percent) + C3y*B3(percent) + C4y*B4(percent);
local posx2 = C1x*B1(percent+0.01) + C2x*B2(percent+0.01) + C3x*B3(percent+0.01) + C4x*B4(percent+0.01);
local posy2 = C1y*B1(percent+0.01) + C2y*B2(percent+0.01) + C3y*B3(percent+0.01) + C4y*B4(percent+0.01);
local posx3 = C1x*B1(percent-0.01) + C2x*B2(percent-0.01) + C3x*B3(percent-0.01) + C4x*B4(percent-0.01);
local posy3 = C1y*B1(percent-0.01) + C2y*B2(percent-0.01) + C3y*B3(percent-0.01) + C4y*B4(percent-0.01);
return posx1,posy1,posx2,posy2,posx3,posy3
end
local function getangle(x1,y1,x2,y2)
local radians = math.atan((x2-x1)/(y2-y1));
local degrees = radians *  180 / math.pi;
return radians,degrees
end
--calculations below---------------------------------------
local rad=length1
local arc=((2*math.pi)/360)*(angle1)
local c1x=0+rad*(math.sin(arc))
local c1y=0-rad*(math.cos(arc))
local center1x=c1x+startx
local center1y=c1y+starty
local rad=length2
local arc=((2*math.pi)/360)*(angle2)
local c2x=0+rad*(math.sin(arc))
local c2y=0-rad*(math.cos(arc))
local center2x=c2x+endx
local center2y=c2y+endy
--end curve calculations----------------------------------
texttab={}
split_text (t.text,texttab)
for i=1,#texttab do
n=1-((i-1)/(#t.text-1))
--print (n)
x1,y1,x2,y2,x3,y3=getBezier(n,startx,starty,center1x,center1y,center2x,center2y,endx,endy)
--print (&quot;x1=&quot;..x1,&quot;y1=&quot;..y1,&quot;x2=&quot;..x2,&quot;y2=&quot;..y2)
if y2&lt;y3 then
add=-90
else
add=90
end
cairo_select_font_face (cr, t.font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, t.fsize)
cairo_set_source_rgba (cr,t.color[1],t.color[2],t.color[3],t.color[4])
rad,deg=getangle(x2,y2,x3,y3)
cairo_move_to (cr,x1,y1)
local rot=(deg+add)*(math.pi/180)
cairo_rotate (cr,-rot)
cairo_show_text (cr,texttab[i])
cairo_stroke (cr)
cairo_rotate (cr,rot)
end
end--function btext

function curvedraw(t,display,color)
--set variables
local startx=t.startx
local starty=t.starty
local endx=t.endx
local endy=t.endy
local angle1=t.angle1
local length1=t.length1
local angle2=t.angle2
local length2=t.length2
cairo_set_source_rgba (cr,t.color[1],t.color[2],t.color[3],t.color[4])
--calculations below---------------------------------------
local rad=length1
local arc=((2*math.pi)/360)*(angle1)
local c1x=0+rad*(math.sin(arc))
local c1y=0-rad*(math.cos(arc))
local center1x=c1x+startx
local center1y=c1y+starty
local rad=length2
local arc=((2*math.pi)/360)*(angle2)
local c2x=0+rad*(math.sin(arc))
local c2y=0-rad*(math.cos(arc))
local center2x=c2x+endx
local center2y=c2y+endy
--end calculations----------------------------------
if display==1 then
cairo_set_line_width (cr,1)----------------------
cairo_set_source_rgba (cr,1,0,1,1)---------------
cairo_move_to (cr,startx,starty)-----------------
cairo_line_to (cr,center1x,center1y)-------------
cairo_stroke (cr)--------------------------------
cairo_set_source_rgba (cr,1,0,0,1)---------------
cairo_arc (cr,startx,starty,3,0,2*math.pi)-------
cairo_fill (cr)----------------------------------
cairo_set_source_rgba (cr,1,0,0,1)---------------
cairo_arc (cr,startx,starty,length1,0,2*math.pi)
cairo_stroke (cr)--------------------------------
cairo_set_source_rgba (cr,0,1,0,1)---------------
cairo_arc (cr,center1x,center1y,3,0,2*math.pi)---
cairo_fill (cr)----------------------------------
cairo_set_source_rgba (cr,1,0,1,1)---------------
cairo_move_to (cr,endx,endy)---------------------
cairo_line_to (cr,center2x,center2y)-------------
cairo_stroke (cr)--------------------------------
cairo_set_source_rgba (cr,0,1,1,1)---------------
cairo_arc (cr,endx,endy,3,0,2*math.pi)-----------
cairo_fill (cr)----------------------------------
cairo_arc (cr,endx,endy,length2,0,2*math.pi)-----
cairo_stroke (cr)--------------------------------
cairo_set_source_rgba (cr,1,1,0,1)---------------
cairo_arc (cr,center2x,center2y,3,0,2*math.pi)---
cairo_fill (cr)----------------------------------
end
--you can set text to 1 to see the actual cairo code for the curve
local text=0
if text==1 then
local function round(num, idp)
  return tonumber(string.format(&quot;%.&quot; .. (idp or 0) .. &quot;f&quot;, num))
end
local c1x=round(center1x,2)
local c1y=round(center1y,2)
local c2x=round(center2x,2)
local c2y=round(center2y,2)
cairo_set_source_rgba (cr,1,1,0,1)
cairo_select_font_face (cr, &quot;Sans&quot;, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 10);
cairo_move_to (cr,startx+20,starty)
cairo_show_text (cr, &quot;cairo_move_to (cr, &quot; .. startx .. &quot;, &quot; .. starty .. &quot;)&quot;)
cairo_move_to (cr,startx+20,starty+12)
cairo_show_text (cr, &quot;cairo_curve_to (cr, &quot; .. c1x .. &quot;, &quot; .. c1y .. &quot;, &quot; .. c2x .. &quot;, &quot; .. c2y .. &quot;, &quot; .. endx .. &quot;, &quot; .. endy .. &quot;)&quot;)
cairo_stroke (cr)
end
--###############################################
--setup curve line width and color/alpha--------------------------
cairo_set_line_width (cr,1)
cairo_move_to (cr,startx,starty)
cairo_curve_to (cr,center1x,center1y,center2x,center2y,endx,endy)
cairo_stroke (cr)
-------------------------------------------------------------------
end--function curve</code></pre></div><p>.conkyrc3</p><div class="codebox"><pre class="vscroll"><code># temps pour fermer conky en seconde. 0 = toujours actif 
total_run_times 0

# affiche le texte sur la sortie standard
out_to_console no

# réglage de la mémoire, pour éviter le clignotement
double_buffer yes
# Soustraire les mémoires tampons de la mémoire utilisée
no_buffers yes
text_buffer_size 2048

# taux de rafraichissement de la fenêtre (en secondes)
update_interval 1

# nombre d&#039;échantillons à utiliser pour calculer la moyenne d&#039;utilisation
cpu_avg_samples 4
net_avg_samples 2

# taille et positon
alignment top_right
minimum_size 320 5
maximum_width 320

# écart avec le bord x=gauche ou droit y= haut ou bas
gap_x 50
gap_y 20

#  afficher les ombres
draw_shades yes
# afficher des contours
draw_outline no
# contours autour des blocs de texte
draw_borders no
# largeur du contour
border_width 1
# largeur des marges
border_margin 4

#pour que conky tourne en arrière plan background no pour les tests
background yes

# utiliser sa propre fenêtre
own_window no
#type de fenêtre : normal(avec le cadre) / override / desktop
own_window_type override # normal / override / desktop
#pseudo transparence si vous avez des icones sous le conky elle ne seront plus accessibles une fois conky activé
own_window_transparent yes
own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager # définition du type 

# Utiliser Xft (polices lissées etc)
use_xft yes
xftalpha .1
override_utf8_locale yes # force UTF8

#police a utiliser : use_xft doit être a &quot;yes&quot;
xftfont Fixed:size=8#OCR A Std:size=15
# Tout le texte en majuscule
uppercase no

draw_outlines yes

# Ajoute des espaces après certains objets pour éviter de les faire bouger.
# Fonctionne uniquement avec les polices Fixes
use_spacer right

# Couleurs
default_color FFFFFF #blanc
default_shade_color 333333
default_outline_color black

color1 e49c16 
color2 CA0000 #rouge

color6 EEEEEE
color7 DDDDDD
color8 CCCCCC
color9 BBBBBB

# -- Lua Load -- #
lua_load ~/courbe.lua
lua_draw_hook_pre beztext

TEXT</code></pre></div><p>Avec ce .conkyrc3, mon conky s&#039;affiche mais fait disparaître les icônes du bureau et lorsque je clique sur le bureau, le conky disparaît puis se réaffiche (les icônes quant à elles apparaissent puis disparaissent)</p><p>Si je mets yes à own_window, le conky ne s&#039;affiche plus et j&#039;ai essayé de modifié own_window_type et cela ne fonctionne pas.<br />J&#039;ai aussi suivi le conseil pour ce problème sur la page conky d&#039;ubuntu mais celaa ne marche pas.<br />Mes autres .conkyrc qui fonctionnent sans script lua n&#039;ont pas ce problème.</p><p>Etant débutant en lua, j&#039;ai peut être fait une erreur bête...<br />La console ne me renvoie aucune erreur et je vous affiche la commande conky -v</p><div class="codebox"><pre class="vscroll"><code>miguel@PC-Miguel:~$ conky -v
Conky 1.8.1 compiled Fri Dec 16 18:29:36 UTC 2011 for Linux 2.6.24-30-server (x86_64)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

 Music detection:
  * Audacious
  * MPD
  * MOC
  * XMMS2

 General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * eve-online
  * config-output
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2</code></pre></div><p>Si vous avez une idée, merci <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Skops)]]></author>
			<pubDate>Fri, 26 Oct 2012 11:14:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11266981#p11266981</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Postez vos scripts Lua pour Conky !]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=9240041#p9240041</link>
			<description><![CDATA[<p>Bonjour a tous...</p><p>je me lance dans l’écriture &#039;from scratch&#039; d&#039;un code lua...</p><p>countdown.lua qui calcule le temps restant jusqu’à une certaine date, ainsi que les pourcentages ecoulés et restant depuis une date de début</p><div class="codebox"><pre class="vscroll"><code>--[[Countdown.lua by shamen456 (forum.ubuntu-fr.org)
calcul du temps restant (en jours, hr, min, sec) jusqu&#039;a une certaine date a determiner par &#039;endday&#039; ci-dessous
]]

require &#039;cairo&#039;

function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local updates=tonumber(conky_parse(&#039;${updates}&#039;))


    local today=os.time()
    local startday=os.time{year=2012, month=5, day=11, hour=8}
    local endday=os.time{year=2012, month=6, day=13, hour=8}
    local totaltime=endday-startday
    local totaldays=math.floor(totaltime/86400)
    local elapsedtime=today-startday
    local remaining=endday-today
    
    local percelapsed=(elapsedtime*100)/totaltime
    local percremain=(remaining*100)/totaltime
    local heure=os.date(&quot;%H&quot;,today)
    local minute=os.date(&quot;%M&quot;,today)
    local remdays=math.floor(remaining/86400)
    local elapseddays=math.floor(elapsedtime/86400)
    local remhours=math.floor((remaining-(remdays*86400))/3600)
    local remmin=math.floor((remaining-(remdays*86400)-(remhours*3600))/60)
    local remsec=remaining-(remdays*86400)-(remhours*3600)-(remmin*60)

function conky_today()
    return today
end

function conky_startD()
    local startDay=os.date(&quot;%d %b %Y&quot;,startday)
    return startDay
end

function conky_endD()
    local endDay=os.date(&quot;%d %b %Y&quot;,endday)
    return endDay
end

function conky_totalD()
    return totaldays
end


function conky_remainD()
    return remdays
end

function conky_remainH()
    return remhours
end

function conky_remainM()
    return remmin
end

function conky_remainS()
    return remsec
end


function conky_elapsD()
    return elapseddays
end

function conky_percelapsD()
    return percelapsed
end

function conky_percremainD()
    return percremain
end

cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end</code></pre></div><p>seulement quand j’appelle les fonctions dans conky, celles-ci ne se mettent pas à jour <img src="http://forum.ubuntu-fr.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>comment faire pour forcer le code lua a s’exécuter à chaque refresh du conky...?<br />EDIT :</p><p>j&#039;ai trouvé, en creant une fonction principale englobant toutes les autres, grace au code lua de base de MrPeachy....</p><br /><p>Bon conky à tous...</p>]]></description>
			<author><![CDATA[dummy@example.com (shamen456)]]></author>
			<pubDate>Sun, 13 May 2012 06:20:08 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=9240041#p9240041</guid>
		</item>
	</channel>
</rss>
