<?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=326972&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=326972</link>
		<description><![CDATA[Les sujets les plus récents dans (3) Conky : Postez vos conkyrc ou certaines parties intéressantes.]]></description>
		<lastBuildDate>Mon, 01 Nov 2010 13:30:39 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3824470#p3824470</link>
			<description><![CDATA[<p>Suite ici : <a href="./viewtopic.php?pid=3824466#p3824466">./viewtopic.php?pid=3824466#p3824466</a></p>]]></description>
			<author><![CDATA[dummy@example.com (helly)]]></author>
			<pubDate>Mon, 01 Nov 2010 13:30:39 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3824470#p3824470</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3824448#p3824448</link>
			<description><![CDATA[<p>On approche des 3300 messages sur ce topic... Il ne serait pas temps d&#039;en créer un nouveau?</p><p>Edit: j&#039;ai créé le nouveau! Suffit de continuer les posts sur <a href="./viewtopic.php?pid=3824444#p3824444">CE FIL</a>.</p>]]></description>
			<author><![CDATA[dummy@example.com (Levi59)]]></author>
			<pubDate>Mon, 01 Nov 2010 13:23:27 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3824448#p3824448</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3823879#p3823879</link>
			<description><![CDATA[<p>@maestroom : j&#039;ai essayé de regarder ta capture avec le conky, mais comme j&#039;ai un simple écran j&#039;arrive à avoir l&#039;image en pleine largeur donc impossible de lire les infos.</p><p>En tout cas, le fond d&#039;écran est superbe !!!</p>]]></description>
			<author><![CDATA[dummy@example.com (sunkart)]]></author>
			<pubDate>Mon, 01 Nov 2010 09:03:16 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3823879#p3823879</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822755#p3822755</link>
			<description><![CDATA[<div class="quotebox"><cite>wlourf a écrit&#160;:</cite><blockquote><div><p>@maestroom : un peu chargé ton bureau je trouve mais j&#039;aime bien les anneaux, pas trop durs à configurer ?</p></div></blockquote></div><p>l&#039;image intégrale est celui-ci <a href="http://img818.imageshack.us/i/inevitable1280164.jpg/"><span class="postimg"><img src="http://img818.imageshack.us/img818/4051/inevitable1280164.jpg" alt="inevitable1280164.jpg" /></span></a></p><p>pour les cadres gris transparent je l&#039;ai conçu via Gimp avec le filtres illusion... j&#039;ai mis ces cadres simplement pour que ce soit un peu plus lisible <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>pour ce qui est des rings... un peu plus haut.. j&#039;ai mis mon Lua <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> ce n&#039;ait pas trop difficile a configurer, simplement quelques variables a changer <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> et ces le même scripts que mon avant-dernier . En tout cas j&#039;avoue que le fond d&#039;écran est un peu lourd pour certain mais pour le moment je le trouve beau.. et j&#039;aime bien utiliser chaque pixel XD mais d&#039;ici peu avec gimp je devrais être en mesure de créé mes propre image.. et j&#039;ai quelques petites idée en tête.. donc lorsque ce sera faite je vais les mettres sur le forum.... mais je dois apprendre a utiliser le mutli-script lua <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" />.</p>]]></description>
			<author><![CDATA[dummy@example.com (maestroom)]]></author>
			<pubDate>Sun, 31 Oct 2010 16:53:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822755#p3822755</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822163#p3822163</link>
			<description><![CDATA[<p>ok merci</p>]]></description>
			<author><![CDATA[dummy@example.com (TwistedSister)]]></author>
			<pubDate>Sun, 31 Oct 2010 13:30:44 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822163#p3822163</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822148#p3822148</link>
			<description><![CDATA[<p>remplace <strong>eth0</strong> par <strong>eth1</strong> , pour moi ça marche !!</p>]]></description>
			<author><![CDATA[dummy@example.com (yugurten)]]></author>
			<pubDate>Sun, 31 Oct 2010 13:26:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822148#p3822148</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822141#p3822141</link>
			<description><![CDATA[<div class="quotebox"><cite>TwistedSister a écrit&#160;:</cite><blockquote><div><p>quelqu&#039;un peut m&#039;aider svp je cherche a mettre ma connection wifi à la place</p></div></blockquote></div><p>Essaye en remplaçant <strong>eth0</strong> par <strong>wlan0</strong></p>]]></description>
			<author><![CDATA[dummy@example.com (Fenouille84)]]></author>
			<pubDate>Sun, 31 Oct 2010 13:23:24 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822141#p3822141</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822046#p3822046</link>
			<description><![CDATA[<p>quelqu&#039;un peut m&#039;aider svp je cherche a mettre ma connection wifi à la place</p><div class="codebox"><pre><code>${color black}Download :${color black} ${downspeed eth0} k/s${color black} ${offset 80}${color black}Upload:${color black} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 8b4b0b ffc11f} ${color black}${upspeedgraph eth0 32,150 ffc11f 8b4b0b}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (TwistedSister)]]></author>
			<pubDate>Sun, 31 Oct 2010 12:48:37 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3822046#p3822046</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3821798#p3821798</link>
			<description><![CDATA[<div class="quotebox"><cite>wlourf a écrit&#160;:</cite><blockquote><div><p>@Fenouille84 : ça y est! tu te mets à Lua, bravo !</p></div></blockquote></div><p>Et oui !! Je me convertis petit à petit... <img src="http://forum.ubuntu-fr.org/img/smilies/roll.png" width="15" height="15" alt="roll" /> <img src="http://forum.ubuntu-fr.org/img/smilies/lol.png" width="15" height="15" alt="lol" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Fenouille84)]]></author>
			<pubDate>Sun, 31 Oct 2010 10:52:25 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3821798#p3821798</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3821226#p3821226</link>
			<description><![CDATA[<p>@maestroom : un peu chargé ton bureau je trouve mais j&#039;aime bien les anneaux, pas trop durs à configurer ?</p><p>@Fenouille84 : ça y est! tu te mets à Lua, bravo ! Sinon , le site <a href="http://conky-pitstop.wikidot.com">http://conky-pitstop.wikidot.com</a>/ où tu as trouvé ton script est en cours de traduction en français (en plus de l&#039;allemand et de l&#039;espagnol). Pas mal d&#039;articles publiés ont déjà été traduits par arpinux lorsque ces articles étaient encore sur le site &quot;Conky Hardcore&quot;. Pour l&#039;instant, je remets un peu tout en ordre et ajoute de nouvelles traductions, si certains d&#039;entre vous souhaitent participer aux traductions, envoyez moi un MP <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (wlourf)]]></author>
			<pubDate>Sat, 30 Oct 2010 22:57:23 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3821226#p3821226</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3820763#p3820763</link>
			<description><![CDATA[<p>Salut tout le monde !!</p><p>Voici mon nouveau conky : <em><strong>Tribute to Porta</strong>l</em> !! ^^<br />Rien de bien innovant, je voulais juste tester <a href="http://conky-pitstop.wikidot.com/londonali1010#toc4">ce script</a> ajoutant un background.</p><p><span class="bbu"><strong>Screen :</strong></span><br /><a href="http://img801.imageshack.us/i/obportal.png/"><span class="postimg"><img src="http://img801.imageshack.us/img801/6504/obportal.th.png" alt="obportal.th.png" /></span></a></p><p>conkyrc0 (barre supérieure)</p><div class="codebox"><pre class="vscroll"><code>#Fonctionnement de conky 
  total_run_times 0            #Temps en secondes ; 0 = toujours actif
  background yes                #Pour que conky tourne en arrière plan ; no = pour les tests

#Réglages système
  cpu_avg_samples 1            #Nb d&#039;échantillons pour calculer la moyenne d&#039;utilisation CPU
  net_avg_samples 2            #Nb d&#039;échantillons pour calculer la moyenne d&#039;utilisation CPU

#Mémoire
  double_buffer yes            #Éviter le clignotement
  no_buffers yes                #Soustraire les mémoires tampons de la mémoire utilisée
  text_buffer_size 1024            #Taille du cache pour le texte

#Affichage
  out_to_console no            #Affiche le texte sur la sortie standard
  update_interval 1            #Taux de rafraîchissement de la fenêtre (s)

#Fenêtre conky
  alignment top_left            #Alignement
 #---
  minimum_size 1134 10            #Taille minimum (px) ; largeur / hauteur
  maximum_width 1134            #Largeur maximum (px)
 #---
  gap_x 93                    #Écart avec le bord gauche / droit
  gap_y 10                    #Écart avec le bord haut / bas
 #---
  draw_shades no                #Afficher les ombres
  draw_outline no                #Afficher les contours de fenêtre
  draw_borders no                #Afficher des contours autour des blocs de texte
  border_width 1                #Largeur du contour
  border_inner_margin 1            #Largeur des marges
 #---
  own_window yes                #Utiliser sa propre fenêtre
  own_window_type override         #Type de fenêtre ; normal / override / desktop
  own_window_transparent yes        #Pseudo transparence

#Mise en forme
  use_xft yes                #Utiliser Xft (polices lissées etc)
  xftalpha .1                #Utiliser Xft
  override_utf8_locale yes         #Force l&#039;UTF8
  uppercase no                #Tout le texte en majuscule
  use_spacer right            #Ajoute des espaces après certains objets (qu&#039;avec des polices fixes)
 #---
  xftfont saxMono:size=9         #Police par défaut
 #---
  default_bar_size 30 3            #Barre par défaut (longeur hauteur)
  stippled_borders 5            #Taille des pointillés

#Couleurs
  default_color FFFFFF             #Couleur par défaut
  default_shade_color 333333        #Couleur des ombres
  default_outline_color black        #Couleur des contours
 #---
  color1 404040                #Gris foncé
  color2 DDDDDD                #Gris clair
 #---
  short_units yes                #Unités courtes
  pad_percents 2                #Unité à 2 décimales

#Prise en charge du LUA
  lua_load ~/conky/Script/bg.lua
  lua_draw_hook_pre draw_bg


TEXT
${color1}${voffset -1}${alignc}Krnl:${exec uname -r | cut -c 1-9} | CPU:${cpu cpu}% | Ram:${memperc}% | Swap:${swapperc}% | ${if_existing /proc/net/route wlan0}${execpi 180 $HOME/Script/wifi_crous}${else}${if_existing /proc/net/route eth0}UL:${totalup eth0} | DL:${totaldown eth0}${else}UL:empty | DL:empty${endif}${endif} | /r:${fs_free /} | /h:${fs_free /home} | /t:${exec du -hs /home/math/.local/share/Trash/ | cut -d &quot;    &quot; -f1} | Lexar:${if_mounted /media/LEXAR}${fs_free /media/LEXAR}${else}empty${endif} | Linux:${if_mounted /media/Linux}${fs_free /media/Linux}${else}empty${endif} | LaCie:${if_mounted /media/LaCie_PC}${fs_free /media/LaCie_PC}${else}empty${endif} | Up:${uptime_short}${voffset -2}</code></pre></div><p>conkyrc1 (heure)</p><div class="codebox"><pre class="vscroll"><code>#Fonctionnement de conky 
  total_run_times 0            #Temps en secondes ; 0 = toujours actif
  background yes                #Pour que conky tourne en arrière plan ; no = pour les tests

#Réglages système
  cpu_avg_samples 1            #Nb d&#039;échantillons pour calculer la moyenne d&#039;utilisation CPU
  net_avg_samples 2            #Nb d&#039;échantillons pour calculer la moyenne d&#039;utilisation CPU

#Mémoire
  double_buffer yes            #Éviter le clignotement
  no_buffers yes                #Soustraire les mémoires tampons de la mémoire utilisée
  text_buffer_size 1024            #Taille du cache pour le texte

#Affichage
  out_to_console no            #Affiche le texte sur la sortie standard
  update_interval 1            #Taux de rafraîchissement de la fenêtre (s)

#Fenêtre conky
  alignment top_left            #Alignement
 #---
  minimum_size 65 10            #Taille minimum (px) ; largeur / hauteur
  maximum_width 65            #Largeur maximum (px)
 #---
  gap_x 10                    #Écart avec le bord gauche / droit
  gap_y 10                    #Écart avec le bord haut / bas
 #---
  draw_shades no                #Afficher les ombres
  draw_outline no                #Afficher les contours de fenêtre
  draw_borders no                #Afficher des contours autour des blocs de texte
  border_width 1                #Largeur du contour
  border_inner_margin 1            #Largeur des marges
 #---
  own_window yes                #Utiliser sa propre fenêtre
  own_window_type override         #Type de fenêtre ; normal / override / desktop
  own_window_transparent yes        #Pseudo transparence

#Mise en forme
  use_xft yes                #Utiliser Xft (polices lissées etc)
  xftalpha .1                #Utiliser Xft
  override_utf8_locale yes         #Force l&#039;UTF8
  uppercase no                #Tout le texte en majuscule
  use_spacer right            #Ajoute des espaces après certains objets (qu&#039;avec des polices fixes)
 #---
  xftfont saxMono:size=9         #Police par défaut
 #---
  default_bar_size 30 3            #Barre par défaut (longeur hauteur)
  stippled_borders 5            #Taille des pointillés

#Couleurs
  default_color FFFFFF             #Couleur par défaut
  default_shade_color 333333        #Couleur des ombres
  default_outline_color black        #Couleur des contours
 #---
  color1 404040                #Gris foncé
  color2 DDDDDD                #Gris clair
 #---
  short_units yes                #Unités courtes
  pad_percents 2                #Unité à 2 décimales

#Prise en charge du LUA
  lua_load ~/conky/Script/bg.lua
  lua_draw_hook_pre draw_bg


TEXT
${color1}${offset 2}${font oloron tryout:size=18}${time %M}${font}
${offset 3}${voffset -5}${cpugraph cpu6 0,58}
${voffset -15}${font oloron tryout:size=40}${time %H}${font}
${offset 3}${voffset -6}${cpugraph cpu6 0,58}${voffset -8}
${offset 34}${font oloron tryout:size=18}${time %S}${font}${voffset -28}</code></pre></div><p>conkyrc2 (date)</p><div class="codebox"><pre class="vscroll"><code>#Fonctionnement de conky 
  total_run_times 0            #Temps en secondes ; 0 = toujours actif
  background yes                #Pour que conky tourne en arrière plan ; no = pour les tests

#Réglages système
  cpu_avg_samples 1            #Nb d&#039;échantillons pour calculer la moyenne d&#039;utilisation CPU
  net_avg_samples 2            #Nb d&#039;échantillons pour calculer la moyenne d&#039;utilisation CPU

#Mémoire
  double_buffer yes            #Éviter le clignotement
  no_buffers yes                #Soustraire les mémoires tampons de la mémoire utilisée
  text_buffer_size 1024            #Taille du cache pour le texte

#Affichage
  out_to_console no            #Affiche le texte sur la sortie standard
  update_interval 1            #Taux de rafraîchissement de la fenêtre (s)

#Fenêtre conky
  alignment top_left            #Alignement
 #---
  minimum_size 65 10            #Taille minimum (px) ; largeur / hauteur
  maximum_width 65            #Largeur maximum (px)
 #---
  gap_x 10                    #Écart avec le bord gauche / droit
  gap_y 108                    #Écart avec le bord haut / bas
 #---
  draw_shades no                #Afficher les ombres
  draw_outline no                #Afficher les contours de fenêtre
  draw_borders no                #Afficher des contours autour des blocs de texte
  border_width 1                #Largeur du contour
  border_inner_margin 1            #Largeur des marges
 #---
  own_window yes                #Utiliser sa propre fenêtre
  own_window_type override         #Type de fenêtre ; normal / override / desktop
  own_window_transparent yes        #Pseudo transparence

#Mise en forme
  use_xft yes                #Utiliser Xft (polices lissées etc)
  xftalpha .1                #Utiliser Xft
  override_utf8_locale yes         #Force l&#039;UTF8
  uppercase no                #Tout le texte en majuscule
  use_spacer right            #Ajoute des espaces après certains objets (qu&#039;avec des polices fixes)
 #---
  xftfont saxMono:size=9         #Police par défaut
 #---
  default_bar_size 30 3            #Barre par défaut (longeur hauteur)
  stippled_borders 5            #Taille des pointillés

#Couleurs
  default_color FFFFFF             #Couleur par défaut
  default_shade_color 333333        #Couleur des ombres
  default_outline_color black        #Couleur des contours
 #---
  color1 404040                #Gris foncé
  color2 DDDDDD                #Gris clair
 #---
  short_units yes                #Unités courtes
  pad_percents 2                #Unité à 2 décimales

#Prise en charge du LUA
  lua_load ~/conky/Script/bg.lua
  lua_draw_hook_pre draw_bg


TEXT
${color1}${offset 2}${font oloron tryout:size=18}${time %d}${font}
${offset 3}${voffset -5}${cpugraph cpu6 0,58}
${voffset -15}${font oloron tryout:size=40}${time %m}${font}
${offset 3}${voffset -6}${cpugraph cpu6 0,58}${voffset -8}
${offset 34}${font oloron tryout:size=18}${time %y}${font}${voffset -28}</code></pre></div><p>conkyrc3 (calendrier et todolist)</p><div class="codebox"><pre class="vscroll"><code>#Fonctionnement de conky 
  total_run_times 0            #Temps en secondes ; 0 = toujours actif
  background yes                #Pour que conky tourne en arrière plan ; no = pour les tests

#Réglages système
  cpu_avg_samples 1            #Nb d&#039;échantillons pour calculer la moyenne d&#039;utilisation CPU
  net_avg_samples 2            #Nb d&#039;échantillons pour calculer la moyenne d&#039;utilisation CPU

#Mémoire
  double_buffer yes            #Éviter le clignotement
  no_buffers yes                #Soustraire les mémoires tampons de la mémoire utilisée
  text_buffer_size 1024            #Taille du cache pour le texte

#Affichage
  out_to_console no            #Affiche le texte sur la sortie standard
  update_interval 1            #Taux de rafraîchissement de la fenêtre (s)

#Fenêtre conky
  alignment top_right            #Alignement
 #---
  minimum_size 185 10            #Taille minimum (px) ; largeur / hauteur
  maximum_width 185            #Largeur maximum (px)
 #---
  gap_x 10                    #Écart avec le bord gauche / droit
  gap_y 10                    #Écart avec le bord haut / bas
 #---
  draw_shades no                #Afficher les ombres
  draw_outline no                #Afficher les contours de fenêtre
  draw_borders no                #Afficher des contours autour des blocs de texte
  border_width 1                #Largeur du contour
  border_inner_margin 1            #Largeur des marges
 #---
  own_window yes                #Utiliser sa propre fenêtre
  own_window_type override         #Type de fenêtre ; normal / override / desktop
  own_window_transparent yes        #Pseudo transparence

#Mise en forme
  use_xft yes                #Utiliser Xft (polices lissées etc)
  xftalpha .1                #Utiliser Xft
  override_utf8_locale yes         #Force l&#039;UTF8
  uppercase no                #Tout le texte en majuscule
  use_spacer right            #Ajoute des espaces après certains objets (qu&#039;avec des polices fixes)
 #---
  xftfont saxMono:size=9         #Police par défaut
 #---
  default_bar_size 110 3        #Barre par défaut (longeur hauteur)
  stippled_borders 5            #Taille des pointillés

#Couleurs
  default_color FFFFFF             #Couleur par défaut
  default_shade_color 333333        #Couleur des ombres
  default_outline_color black        #Couleur des contours
 #---
  color1 404040                #Gris foncé
  color2 DDDDDD                #Gris clair
 #---
  short_units yes                #Unités courtes
  pad_percents 2                #Unité à 2 décimales

#Prise en charge du LUA
  lua_load ~/conky/Script/bg.lua
  lua_draw_hook_pre draw_bg


TEXT
${color1}${font Oloron tryout:size=18}${alignc}${exec sed &#039;/CODE/!d ; s/^.*=//g ; s/^.\| [a-z]/\U&amp;/g&#039; /etc/lsb-release} Inside${font}
${hr}${voffset 5}
#
${execp cal | sed &#039;s/^/ /g ; s/$/ /g ; 1d ; s/&#039;&quot; $(date +%e)&quot;&#039;/\${color2}&#039;&quot; $(date +%e)&quot;&#039;\${color1}/1 ; s/^/\${goto 20}/g&#039;}
${voffset -10}${hr}${voffset 5}
#
${if_match ${exec wc -l &lt; $HOME/Ubuntu/ToDo/ToDo} &gt; 0}${exec sed &#039;/^$/d ; /#/d ; s/^/ /g&#039; $HOME/Ubuntu/ToDo/ToDo | fold -sw 26}${else} Nothing to do${endif}
${hr}${voffset 5}
#
${if_match ${exec wc -l &lt; $HOME/Ubuntu/ToDo/Cal} &gt; 0}${exec sed &#039;/^$/d ; /#/d ; s/^/ /g&#039; $HOME/Ubuntu/ToDo/Cal | fold -sw 26}${else} No event planned${endif}</code></pre></div><p>Et voilà <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Si vous trouvez que mes conky forment un cadre, c&#039;est bien vu <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />C&#039;est la place réservée pour mes fenêtres ; comme sa, je garde un œil sur les 2 !</p><p>Pour le wall, c&#039;est <a href="http://fc05.deviantart.net/fs70/f/2010/057/3/3/Portal_Wallpaper_by_AsianSpark.png">par ici</a>.</p>]]></description>
			<author><![CDATA[dummy@example.com (Fenouille84)]]></author>
			<pubDate>Sat, 30 Oct 2010 18:21:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3820763#p3820763</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3817183#p3817183</link>
			<description><![CDATA[<p>Salut a tous et a toutes XD.... je viens de changer de Background <a href="http://img818.imageshack.us/img818/4051/inevitable1280164.jpg">téléchargeable ici</a><br />donc j&#039;ai retravailler mon conky <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> <br /><a href="http://img41.imageshack.us/i/conkyearth.png/"><span class="postimg"><img src="http://img41.imageshack.us/img41/3569/conkyearth.png" alt="conkyearth.png" /></span></a></p><p>et voici la programmation qu&#039;il va avec</p><p>conkyrc:</p><div class="codebox"><pre class="vscroll"><code># Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
background no

# Create own window instead of using desktop (requiblack in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (blackuces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 1240
maximum_width 1250

# Draw shades?
draw_shades no

#draw graph borders?
draw_graph_borders yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 1

# border width
border_width 1

# Default colors and also border colors
default_color black
default_shade_color black
default_outline_color black
own_window_colour white

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 20
gap_y 0

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support requiblack XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer no

border_inner_margin 0
border_outer_margin 5

# -- Lua load -- #
lua_load ~/Conky/ring.lua
lua_draw_hook_pre main_rings

TEXT
${image ~/Conky/pix/calque_conky.png -p 0,0 -s 1280x960}

${color grey}${voffset 60}${goto 290}${cpugraph cpu1 0,40}${goto 435}${cpugraph cpu1 0,40}${goto 620}${cpugraph cpu1 0,40}
${color grey}${voffset -11}${goto 329}${cpugraph cpu1 140,1}${goto 474}${cpugraph cpu1 140,1}${goto 659}${cpugraph cpu1 140,1}
${voffset 0}${color black}${font Alice in Wonderland:size=15}${goto 270}Serenity: ${goto 440}Home: ${goto 590}Dead space: 
${voffset 0}${goto 270}Used: ${fs_used /media/serenity} ${goto 440}Used: ${fs_used /home} ${goto 590}Used: ${fs_used /media/dead space}
${voffset 0}${goto 270}Free: ${fs_free /media/serenity} ${goto 440}Free: ${fs_free /home} ${goto 590}Free: ${fs_free /media/dead space}
${voffset 0}${goto 270}Size: ${fs_size /media/serenity} ${goto 440}Size: ${fs_size /home} ${goto 590}Size: ${fs_size /media/dead space}
${voffset 0}${goto 270}Temp: ${execi 10 hddtemp -n /dev/sda}${font Beautiful Dreams:size=10}° ${font Alice in Wonderland:size=15}C ${goto 440}Temp:  ${execi 10 hddtemp -n /dev/sdb}${font Beautiful Dreams:size=10}°${font Alice in Wonderland:size=15}C ${goto 590}Temp: ${execi 10 hddtemp -n /dev/sde}${font Beautiful Dreams:size=10}°${font Alice in Wonderland:size=15}C
${voffset 100}${goto 210}${color black}${font Alice in Wonderland:size=20} Carte Graphique
${voffset 0}${font Alice in Wonderland:size=15}${goto 240}${color black}Nvidia Geforce Series GTS 250 :${nvidia gpufreq} MHz
${voffset 0}${font Alice in Wonderland:size=15}${goto 250}${color black}Température ACtuel : ${nvidia temp}${font Beautiful Dreams:size=10}°${font Alice in Wonderland:size=15}C
${voffset 0}${font Alice in Wonderland:size=15}${goto 260}${color black}Seuil Température : ${nvidia threshold}${font Beautiful Dreams:size=10}°${font Alice in Wonderland:size=15}C ${goto 640}AMD PHENOM 9550E :
${voffset 0}${font Alice in Wonderland:size=15}${goto 260}${color black}nvidia memory : ${nvidia memfreq} MHZ ${goto 640}Cpu Temp: ${hwmon 1 temp 1}${font Beautiful Dreams:size=10}°${font Alice in Wonderland:size=15}C
${voffset 0}${color #FF6E00}${font Alice in Wonderland:size=15}${goto 640}Core 1: ${cpu cpu1}%
${voffset 0}${color #CB0C29}${font Alice in Wonderland:size=15}${goto 640}Core 2: ${cpu cpu2}%
${voffset 0}${color #49A835}${font Alice in Wonderland:size=15}${goto 640}Core 3: ${cpu cpu3}%
${voffset 0}${color #2D7DB3}${font Alice in Wonderland:size=15}${goto 640}Core 4: ${cpu cpu4}%
${voffset 120}${color #dc1818}${font Alice in Wonderland:size=15}${goto 145}Download: ${downspeed eth0} ${color #2D7DB3}${goto 1025}Upload: ${upspeed eth0}
${voffset 0}${color #AB1852}${font Alice in Wonderland:size=15}${goto 575}Mémoire: $memperc%</code></pre></div><p>ring.lua</p><div class="codebox"><pre class="vscroll"><code>--[[ RINGS with SECTORS widget
    v1.0 by wlourf (08.08.2010)
    this widget draws a ring with differents effects 
    http://u-scripts.blogspot.com/2010/08/rings-sectors-widgets.html
    
To call the script in a conky, use, before TEXT
    lua_load /path/to/the/script/rings.lua
    lua_draw_hook_pre main_rings
and add one line (blank or not) after TEXT


Parameters are :
3 parameters are mandatory
name        - the name of the conky variable to display,
              for example for {$cpu cpu0}, just write name=&quot;cpu&quot;
arg            - the argument of the above variable,
              for example for {$cpu cpu0}, just write arg=&quot;cpu0&quot;
                arg can be a numerical value if name=&quot;&quot;
max            - the maximum value the above variable can reach,
              for example for {$cpu cpu0}, just write max=100
    
Optional parameters:
xc,yc        - coordinates of the center of the ring,
              default = middle of the conky window
radius        - external radius of the ring, in pixels,
              default = quarter of the width of the conky window
thickness    - thickness of the ring, in pixels, default = 10 pixels
start_angle    - starting angle of the ring, in degrees, value can be negative,
              default = 0 degree
end_angle    - ending angle of the ring, in degrees,
              value must be greater than start_angle, default = 360 degrees
sectors        - number of sectors in the ring, default = 10
gap_sectors - gap between two sectors, in pixels, default = 1 pixel
cap            - the way to close a sector, available values are
                &quot;p&quot; for parallel , default value 
                &quot;r&quot; for radial (follow the radius)
inverse_arc    - if set to true, arc will be anticlockwise, default=false
border_size    - size of the border, in pixels, default = 0 pixel i.e. no border
fill_sector    - if set to true, each sector will be completely filled,
              default=false, this parameter is inoperate if sectors=1
background    - if set to false, background will not be drawn, default=true
foreground    - if set to false, foreground will not be drawn, default=true

Colours tables below are defined into braces :
{position in the gradient (0 to 1), colour in hexadecimal, alpha (0 to 1)}
example for a single colour table : 
{{0,0xFFAA00,1}} position parameter doesn&#039;t matter
example for a two-colours table : 
{{0,0xFFAA00,1},{1,0x00AA00,1}} or {{0.5,0xFFAA00,1},{1,0x00AA00,1}}
example for a three-colours table : 
{{0,0xFFAA00,1},{0.5,0xFF0000,1},{1,0x00AA00,1}}

bg_colour1    - colour table for background,
              default = {{0,0x00ffff,0.1},{0.5,0x00FFFF,0.5},{1,0x00FFFF,0.1}}
fg_colour1    - colour table for foreground,
              default = {{0,0x00FF00,0.1},{0.5,0x00FF00,1},{1,0x00FF00,0.1}}
bd_colour1    - colour table for border,
              default = {{0,0xFFFF00,0.5},{0.5,0xFFFF00,1},{1,0xFFFF00,0.5}}              

Seconds tables for radials gradients :
bg_colour2    - second colour table for background, default = no second colour
fg_colour2    - second colour table for foreground, default = no second colour
bd_colour2    - second colour table for border, default = no second colour

v1.0 (08 Aug. 2010) original release

]]


require &#039;cairo&#039;
function conky_main_rings()
-- START PARAMETERS HERE
rings_settings={

    {
    --ring 1-1 :cpu
    name=&quot;cpu&quot;,
    arg=&quot;cpu1&quot;,
    max=100,
    xc=1105,
    yc=365,
    radius=131,
    thickness=7,
    start_angle=-90,
    end_angle=0,
    sectors=1,
    bg_colour1={{0,0xdedede,0.05},{0,0xdedede,0.05}, {0,0xdedede,0.05}},
    fg_colour1={{0,0XFF6E00,0},{0,0xFF6E00,1}, {1,0xFF6E00,0}},
    fg_colour2={{0,0XFF6E00,0},{0,0xFF6E00,1}, {1,0xFF6E00,0}},
    bd_colour1={{0,0XFF6E00,1},{0,0xFF6E00,1}, {1,0xFF6E00,1}},
    },

    {
    --ring 1-2 :cpu
    name=&quot;cpu&quot;,
    arg=&quot;cpu2&quot;,
    max=100,
    xc=1105,
    yc=365,
    radius=131,
    thickness=7,
    start_angle=-180,
    end_angle=-90,
    sectors=1,
    bg_colour1={{0,0xdedede,0.05},{0,0xdedede,0.05}, {0,0xdedede,0.05}},
    fg_colour1={{0,0XCB0C29,0.5},{0,0xCB0C29,0}, {0,0xCB0C29,0.5}},
    fg_colour2={{0,0XFF6E00,0.5},{0,0xFF6E00,0.5}, {0,0xCB0C29,0.5}},
    bd_colour1={{0,0XCB0C29,0.1},{0,0xCB0C29,0.1}, {1,0xCB0C29,0.1}},
    },

    {
    --ring 1-3 :cpu
    name=&quot;cpu&quot;,
    arg=&quot;cpu3&quot;,
    max=100,
    xc=1105,
    yc=365,
    radius=131,
    thickness=7,
    start_angle=-270,
    end_angle=-180,
    sectors=1,
    bg_colour1={{0,0xdedede,0.05},{0,0xdedede,0.05}, {0,0xdedede,0.05}},
    fg_colour1={{0,0X49A835,0},{0.5,0x49A835,1}, {1,0x49A835,0}},
    fg_colour2={{0,0XCB0C29,0},{0.5,0x49A835,1}, {1,0x49A835,0}},
    bd_colour1={{0,0X49A835,1},{0.5,0x49A835,1}, {1,0x49A835,1}},
    },

    {
    --ring 1-4 :cpu
    name=&quot;cpu&quot;,
    arg=&quot;cpu4&quot;,
    max=100,
    xc=1105,
    yc=365,
    radius=131,
    thickness=7,
    start_angle=-360,
    end_angle=-270,
    sectors=1,
    bg_colour1={{0,0xdedede,0.05},{0,0xdedede,0.05}, {0,0xdedede,0.05}},
    fg_colour1={{0,0X2D7DB3,0},{0.5,0x2D7DB3,1}, {1,0x2D7DB3,0}},
    fg_colour2={{0,0XD7DB3,0},{0.5,0xD7DB3,1}, {1,0xD7DB3,0}},
    bd_colour1={{0,0X2D7DB3,1},{0.5,0x2D7DB3,1}, {1,0x2D7DB3,1}},
    },
    
    {
    --ring 2 : memory
    name=&quot;memperc&quot;,
    arg=&quot;&quot;,
    max=100,
    xc=625,
    yc=850,
    radius=105,
    thickness=20,
    start_angle=-140,
    end_angle=140,
    sectors=40,
    bg_colour1={{0,0x000000,1},{0.5,0x999999,1}, {1,0x000000,1}},
    fg_colour1={{0,0XAB1852,1},{0.5,0xAB1852,1}, {1,0xAB1852,0}},
    fg_colour2={{0,0Xae0119,1},{0.5,0xae0119,1}, {1,0xae0119,0}},
    bd_colour1={{0,0XAB1852,1},{0.5,0xAB1852,1}, {1,0xAB1852,1}},
    },

    {
    --ring 4-1 : download speed
    name=&quot;downspeedf&quot;,
    arg=&quot;eth0&quot;,
    max=700,
    xc=80,
    yc=880,
    radius=75,
    thickness=20,
    start_angle=-140,
    end_angle=140,
    sectors=40,
    bg_colour1={{0,0x000000,1},{0.5,0x999999,1}, {1,0x000000,1}},
    fg_colour1={{0,0Xdc1818,0},{0.5,0xdc1818,1}, {1,0xdc1818,0}},
    fg_colour2={{0,0Xae0119,0},{0.5,0xae0119,1}, {1,0xae0119,0}},
    bd_colour1={{0,0Xdc1818,1},{0.5,0xdc1818,1}, {1,0xdc1818,1}},
    },    
    
    {
    --ring 4-2 : upload speed
    name=&quot;upspeedf&quot;,
    arg=&quot;eth0&quot;,
    max=200,
    xc=1180,
    yc=880,
    radius=75,
    thickness=20,
    start_angle=-140,
    end_angle=140,
    sectors=40,
    bg_colour1={{0,0x000000,1},{0.5,0x999999,1}, {1,0x000000,1}},
    fg_colour1={{0,0X2D7DB3,0},{0.5,0x2D7DB3,1}, {1,0x2D7DB3,0}},
    fg_colour2={{0,0Xae0119,0},{0.5,0xae0119,1}, {1,0xae0119,0}},
    bd_colour1={{0,0X2D7DB3,1},{0.5,0x2D7DB3,1}, {1,0x2D7DB3,1}},
    },        

    {
    --ring 5-1 : file system usage for /home
    name=&quot;fs_used_perc&quot;,
    arg=&quot;/home&quot;,
    max=100,
    xc=398,
    yc=70,
    radius=40,
    thickness=20,
    start_angle=-180,
    end_angle=180,
    sectors=20,
    bg_colour1={{0,0x000000,1},{0.5,0x999999,1}, {1,0x000000,1}},
    fg_colour1={{0,0XFFFF00,0},{0.5,0xFFFF00,1}, {1,0xFFFF00,0}},
    fg_colour2={{0,0Xae0119,0},{0.5,0xae0119,1}, {1,0xae0119,0}},
    bd_colour1={{0,0X00FF00,1},{0.5,0x00FF00,1}, {1,0x00FF00,1}},
    },        

    {
    --ring 5-2 : file system usage for /home
    name=&quot;fs_used_perc&quot;,
    arg=&quot;/media/serenity/&quot;,
    max=100,
    xc=255,
    yc=70,
    radius=36,
    thickness=20,
    start_angle=-180,
    end_angle=180,
    sectors=20,
    bg_colour1={{0,0x000000,1},{0.5,0x999999,1}, {1,0x000000,1}},
    fg_colour1={{0,0XFFFF00,0},{0.5,0xFFFF00,1}, {1,0xFFFF00,0}},
    fg_colour2={{0,0Xae0119,0},{0.5,0xae0119,1}, {1,0xae0119,0}},
    bd_colour1={{0,0X00FF00,1},{0.5,0x00FF00,1}, {1,0x00FF00,1}},
    },        

    {
    --ring 5-3 : file system usage for /home
    name=&quot;fs_used_perc&quot;,
    arg=&quot;/media/dead space/&quot;,
    max=100,
    xc=581,
    yc=70,
    radius=37,
    thickness=20,
    start_angle=-180,
    end_angle=180,
    sectors=20,
    bg_colour1={{0,0x000000,1},{0.5,0x999999,1}, {1,0x000000,1}},
    fg_colour1={{0,0XFFFF00,0},{0.5,0xFFFF00,1}, {1,0xFFFF00,0}},
    fg_colour2={{0,0Xae0119,0},{0.5,0xae0119,1}, {1,0xae0119,0}},
    bd_colour1={{0,0X00FF00,1},{0.5,0x00FF00,1}, {1,0x00FF00,1}},
    },    
    
}
--END OF PARAMETERS HERE

--main function

    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)

    if tonumber(conky_parse(&#039;${updates}&#039;))&gt;3 then
        for i in pairs(rings_settings) do
            draw_ring(rings_settings[i])
        end
    end

    cairo_destroy(cr)

end




function draw_ring(t)

    local function rgba_to_r_g_b_a(tcolour)
        colour,alpha=tcolour[2],tcolour[3]
        return ((colour / 0x10000) % 0x100) / 255., 
            ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
            
            
    local function calc_delta(tcol1,tcol2)
        --calculate deltas P R G B A to table_colour 1

        for x = 1, #tcol1 do
            tcol1[x].dA    = 0
            tcol1[x].dP = 0
             tcol1[x].dR = 0
            tcol1[x].dG = 0
            tcol1[x].dB = 0
            if tcol2~=nil and #tcol1 == #tcol2 then
                local r1,g1,b1,a1 = rgba_to_r_g_b_a(tcol1[x])
                local r2,g2,b2,a2 = rgba_to_r_g_b_a(tcol2[x])
                tcol1[x].dP = (tcol2[x][1]-tcol1[x][1])/t.sectors
                 tcol1[x].dR = (r2-r1)/t.sectors
                tcol1[x].dG = (g2-g1)/t.sectors
                tcol1[x].dB = (b2-b1)/t.sectors
                tcol1[x].dA = (a2-a1)/t.sectors        
                
            end
        end
        
        return tcol1
    end

    --check values
    local function setup(t)
        if t.name==nil and t.arg==nil then 
            print (&quot;No input values ... use parameters &#039;name&#039;&quot; +
                &quot; with &#039;arg&#039; or only parameter &#039;arg&#039; &quot;) 
            return
        end

        if t.max==nil then
            print (&quot;No maximum value defined, use &#039;max&#039;&quot;)
            print (&quot;for name=&quot; .. t.name)
            print (&quot;with arg=&quot; .. t.arg)
            return
        end
        if t.name==nil then t.name=&quot;&quot; end
        if t.arg==nil then t.arg=&quot;&quot; end

        if t.xc==nil then t.xc=conky_window.width/2 end
        if t.yc==nil then t.yc=conky_window.height/2 end
        if t.thickness ==nil then t.thickness = 10 end
        if t.radius ==nil then t.radius =conky_window.width/4 end
        if t.start_angle==nil then t.start_angle =0 end
        if t.end_angle==nil then t.end_angle=360 end
        if t.bg_colour1==nil then 
            t.bg_colour1={{0,0x00ffff,0.1},{0.5,0x00FFFF,0.5},{1,0x00FFFF,0.1}}
        end
        if t.fg_colour1==nil then
            t.fg_colour1={{0,0x00FF00,0.1},{0.5,0x00FF00,1},{1,0x00FF00,0.1}}
        end
        if t.bd_colour1==nil then
            t.bd_colour1={{0,0xFFFF00,0.5},{0.5,0xFFFF00,1},{1,0xFFFF00,0.5}}
        end
        if t.sectors==nil then t.sectors=10 end
        if t.gap_sectors==nil then t.gap_sectors=1 end 
        if t.fill_sector==nil then t.fill_sector=false end
        if t.sectors==1 then t.fill_sector=false end
        if t.border_size==nil then t.border_size=0 end
        if t.cap==nil then t.cap=&quot;p&quot; end
        --some checks
        if t.thickness&gt;t.radius then t.thickness=t.radius*0.1 end
        t.int_radius = t.radius-t.thickness

        --check colors tables 
        for i=1, #t.bg_colour1 do 
            if #t.bg_colour1[i]~=3 then t.bg_colour1[i]={1,0xFFFFFF,0.5} end
        end
        for i=1, #t.fg_colour1 do 
            if #t.fg_colour1[i]~=3 then t.fg_colour1[i]={1,0xFF0000,1} end
        end
        for i=1, #t.bd_colour1 do 
            if #t.bd_colour1[i]~=3 then t.bd_colour1[i]={1,0xFFFF00,1} end
        end
    
        if t.bg_colour2~=nil then
            for i=1, #t.bg_colour2 do 
                if #t.bg_colour2[i]~=3 then t.bg_colour2[i]={1,0xFFFFFF,0.5} end
            end
        end
        if t.fg_colour2~=nil then
            for i=1, #t.fg_colour2 do 
                if #t.fg_colour2[i]~=3 then t.fg_colour2[i]={1,0xFF0000,1} end
            end
        end
        if t.bd_colour2~=nil then
            for i=1, #t.bd_colour2 do 
                if #t.bd_colour2[i]~=3 then t.bd_colour2[i]={1,0xFFFF00,1} end
            end
        end     
        
        if t.start_angle&gt;=t.end_angle then
         local tmp_angle=t.end_angle
         t.end_angle= t.start_angle
         t.start_angle = tmp_angle
         -- print (&quot;inversed angles&quot;)
            if t.end_angle-t.start_angle&gt;360 and t.start_angle&gt;0 then
                t.end_angle=360+t.start_angle
                print (&quot;reduce angles&quot;)
            end
        
            if t.end_angle+t.start_angle&gt;360 and t.start_angle&lt;=0 then
                t.end_angle=360+t.start_angle
                print (&quot;reduce angles&quot;)
            end
        
            if t.int_radius&lt;0 then t.int_radius =0 end
            if t.int_radius&gt;t.radius then
                local tmp_radius=t.radius
                t.radius=t.int_radius
                t.int_radius=tmp_radius
                print (&quot;inversed radius&quot;)
            end
            if t.int_radius==t.radius then
                t.int_radius=0
                print (&quot;int radius set to 0&quot;)
            end 
        end
        
        t.fg_colour1 = calc_delta(t.fg_colour1,t.fg_colour2)
        t.bg_colour1 = calc_delta(t.bg_colour1,t.bg_colour2)
        t.bd_colour1 = calc_delta(t.bd_colour1,t.bd_colour2)
    end
    
    --initialize table
    setup(t)
    --[[grid
    h=conky_window.height
    w=conky_window.width
    cairo_set_source_rgba(cr,1,1,1,1)
    cairo_set_line_width(cr,0.5)
    cairo_move_to(cr,0,t.yc)
    cairo_line_to(cr,w,t.yc)
    cairo_stroke(cr)
    cairo_move_to(cr,t.xc,0)
    cairo_line_to(cr,t.xc,h)
    cairo_stroke(cr)
    cairo_move_to(cr,t.xc,t.yc)
    cairo_line_to(cr,t.xc+200*math.sin(math.pi/4),t.yc-200*math.cos(math.pi/4))
    cairo_stroke(cr)
    cairo_move_to(cr,0,t.yc-t.radius)
    cairo_line_to(cr,w,t.yc-t.radius)
    cairo_stroke(cr)
    cairo_move_to(cr,0,t.yc-t.int_radius)
    cairo_line_to(cr,w,t.yc-t.int_radius)
    cairo_stroke(cr)
    cairo_move_to(cr,0,t.yc-t.gap_sectors)
    cairo_line_to(cr,w,t.yc-t.gap_sectors)
    cairo_stroke(cr)
    cairo_set_source_rgba(cr,1,0,0,0.5)
    cairo_arc(cr,t.xc,t.yc,t.radius,0,2*math.pi)
    cairo_stroke(cr)
    cairo_arc(cr,t.xc,t.yc,t.int_radius,0,2*math.pi)    
    cairo_stroke(cr)    
    cairo_set_source_rgba(cr,0,1,0,1)    
    cairo_move_to(cr,t.xc+t.gap_sectors,t.yc-t.gap_sectors)
    cairo_line_to(cr,t.xc+400*math.sin(math.pi/4),t.yc-400*math.cos(math.pi/4))
    cairo_stroke(cr)
    --END GRID
    ]]
    
    --initialize cairo context
    cairo_save(cr)
    cairo_translate(cr,t.xc,t.yc)
    cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND)
    cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND)

    --get value
    local value = 0
    if t.name ~=&quot;&quot; then
        value = tonumber(conky_parse(string.format(&#039;${%s %s}&#039;, t.name, t.arg)))
    else
        value = tonumber(t.arg)
    end
    if value==nil then value =0 end

    --initialize sectors
    --angle of a sector :
    angleA = ((t.end_angle-t.start_angle)/t.sectors)*math.pi/180
    --value of a sector : 
    valueA = t.max/t.sectors
    --first angle of a sector : 
    lastAngle = t.start_angle*math.pi/180


    local function draw_sector(type_arc,angle0,angle,valpc, idx)
     
        --this function draws a portion of arc
         --type of arc, angle0 = strating angle, angle= angle of sector,
         --valpc = percentage inside the sector, idx = sctor number #
         if type_arc==&quot;bg&quot; then         --background
             if valpc==1 then return end
             tcolor=t.bg_colour1
         elseif type_arc==&quot;fg&quot; then    --foreground
             if valpc==0 then return end
             tcolor=t.fg_colour1
         elseif type_arc==&quot;bd&quot; then    --border
             tcolor=t.bd_colour1
         end 

        --angles equivalents to gap_sector
        local ext_delta=math.atan(t.gap_sectors/(2*t.radius))
        local int_delta=math.atan(t.gap_sectors/(2*t.int_radius))

        --angles of arcs
        local ext_angle=(angle-ext_delta*2)*valpc
        local int_angle=(angle-int_delta*2)*valpc

        --define colours to use for this sector
        if #tcolor==1 then 
            --plain color
            local vR,vG,vB,vA = rgba_to_r_g_b_a(tcolor[1])
            cairo_set_source_rgba(cr,vR+tcolor[1].dR*idx,
                                    vG+tcolor[1].dG*idx,
                                    vB+tcolor[1].dB*idx,
                                    vA+tcolor[1].dA*idx    )
        else
            --radient color
            local pat=cairo_pattern_create_radial(0,0,t.int_radius,0,0,t.radius)
            for i=1, #tcolor do
                local vP,vR,vG,vB,vA = tcolor[i][1], rgba_to_r_g_b_a(tcolor[i])
                cairo_pattern_add_color_stop_rgba (pat, 
                                    vP+tcolor[i].dP*idx,
                                    vR+tcolor[i].dR*idx,
                                    vG+tcolor[i].dG*idx,
                                    vB+tcolor[i].dB*idx,
                                    vA+tcolor[i].dA*idx    )
            end
            cairo_set_source (cr, pat)
            cairo_pattern_destroy(pat)
        end

        --start drawing
         cairo_save(cr)
        --x axis is parrallel to start of sector
        cairo_rotate(cr,angle0-math.pi/2)

        local ri,re = t.int_radius ,t.radius

        --point A 
        local angle_a
    
        if t.cap == &quot;p&quot; then 
            angle_a = int_delta
            if t.inverse_arc and type_arc ~=&quot;bg&quot; then
                angle_a = angle-int_angle-int_delta
            end
            if not(t.inverse_arc) and type_arc ==&quot;bg&quot; then
                angle_a = int_delta+int_angle
            end
        else --t.cap==&quot;r&quot;
            angle_a = ext_delta
            if t.inverse_arc and type_arc~=&quot;bg&quot; then
                angle_a = angle-ext_angle-ext_delta
            end
            if not(t.inverse_arc) and type_arc==&quot;bg&quot; then
                angle_a = ext_delta+ext_angle
            end
        end
        local ax,ay = ri*math.cos(angle_a),ri*math.sin(angle_a)


        --point B
        local angle_b = ext_delta
        if t.cap == &quot;p&quot; then 
            if t.inverse_arc and type_arc ~=&quot;bg&quot; then
                angle_b = angle-ext_angle-ext_delta
            end
            if not(t.inverse_arc) and type_arc==&quot;bg&quot; then
                angle_b = ext_delta+ext_angle
            end
        else
            if t.inverse_arc and type_arc ~=&quot;bg&quot; then
                angle_b = angle-ext_angle-ext_delta
            end
            if not(t.inverse_arc) and type_arc==&quot;bg&quot; then
                angle_b = ext_delta+ext_angle
            end
        end
        local bx,by = re*math.cos(angle_b),re*math.sin(angle_b)

        -- EXTERNAL ARC B --&gt; C
        if t.inverse_arc then
            if type_arc==&quot;bg&quot; then
                b0,b1= ext_delta, angle-ext_delta-ext_angle
            else
                b0,b1= angle-ext_angle-ext_delta, angle-ext_delta
            end
        else
            if type_arc==&quot;bg&quot; then
                b0,b1= ext_delta+ext_angle, angle-ext_delta
            else
                b0,b1= ext_delta, ext_angle+ext_delta
            end
        end
        
        ---POINT D
        local angle_c 
        if t.cap == &quot;p&quot; then 
            angle_d = angle-int_delta
            if t.inverse_arc and type_arc==&quot;bg&quot; then
                angle_d = angle-int_delta-int_angle    
            end
            if not(t.inverse_arc) and type_arc~=&quot;bg&quot; then
                angle_d=int_delta+int_angle
            end
        else
            angle_d = angle-ext_delta
            if t.inverse_arc and type_arc==&quot;bg&quot; then
                angle_d =angle-ext_delta-ext_angle
            end
            if not(t.inverse_arc) and type_arc~=&quot;bg&quot; then
                angle_d = ext_angle+ext_delta
            end
        end
        local dx,dy = ri*math.cos(angle_d),ri*math.sin(angle_d)
        
        -- INTERNAL ARC D --&gt; A
        if t.cap==&quot;p&quot; then    
            if t.inverse_arc then    
                if type_arc==&quot;bg&quot; then
                    d0,d1= angle-int_delta-int_angle,int_delta
                else
                    d0,d1= angle-int_delta, angle- int_angle-int_delta
                end
            else
                if type_arc==&quot;bg&quot; then
                    d0,d1= angle-int_delta, int_delta+int_angle
                else
                    d0,d1= int_delta+int_angle, int_delta
                end
            end
        else
            if t.inverse_arc then    
                if type_arc==&quot;bg&quot; then    
                    d0,d1= angle-ext_delta-ext_angle,ext_delta
                else
                    d0,d1= angle-ext_delta, angle- ext_angle-ext_delta
                end
            else
                if type_arc==&quot;bg&quot; then    
                    d0,d1= angle-ext_delta,ext_delta+ext_angle
                else    
                    d0,d1= ext_angle+ext_delta, ext_delta
                end
            end            
        end
            
        --draw sector
        cairo_move_to(cr,ax,ay)
        cairo_line_to(cr,bx,by)
        cairo_arc(cr,0,0,re,b0,b1)
        cairo_line_to(cr,dx,dy) 
        cairo_arc_negative(cr,0,0,ri,d0,d1)
         cairo_close_path (cr);

        --stroke or fill sector
         if type_arc==&quot;bd&quot; then
             cairo_set_line_width(cr,t.border_size)
             cairo_stroke(cr)
         else
             cairo_fill(cr)
         end

         cairo_restore(cr)

     end
    --draw sectors
    local n0,n1,n2 = 1,t.sectors,1
    if t.inverse_arc then n0,n1,n2 = t.sectors,1,-1 end
    local index = 0
    for i = n0,n1,n2 do 
        index = index +1
        local valueZ=1
        local cstA, cstB = (i-1),i
        if t.inverse_arc then cstA,cstB = (t.sectors-i), (t.sectors-i+1) end
        
        if value&gt;valueA *cstA and value&lt;valueA*cstB then
            if not t.fill_sector then
                valueZ = (value-valueA*cstA)/valueA
            end
        else
            if value&lt;valueA*cstB then valueZ=0 end
        end
        
        local start_angle= lastAngle+(i-1)*angleA
        if t.foreground ~= false then 
            draw_sector(&quot;fg&quot;,start_angle,angleA,valueZ, index)
        end
        if t.background ~= false then 
            draw_sector(&quot;bg&quot;,start_angle,angleA,valueZ, i)
        end
        if t.border_size&gt;0 then draw_sector(&quot;bd&quot;,start_angle,angleA,1, i) end
    end

    cairo_restore(cr)
end


--[[END OF RING-SECTORS WIDGET]]


function axis(ctx,alpha)
    cairo_set_line_width(ctx,1)
    cairo_set_source_rgba(ctx,1,0,0,alpha)
    cairo_move_to(ctx,0,0)
    cairo_line_to(ctx,150,0)
    cairo_stroke(ctx)
    cairo_set_source_rgba(ctx,0,1,0,alpha)
    cairo_move_to(ctx,0,0)
    cairo_line_to(ctx,0,150)
    cairo_stroke(ctx)
end    </code></pre></div><p>je remercie Esgaroth sur le site de Samurize pour l&#039;inspiration<br />ainsi qu&#039;a gimp pour ces outils trés utile XD</p>]]></description>
			<author><![CDATA[dummy@example.com (maestroom)]]></author>
			<pubDate>Thu, 28 Oct 2010 21:12:14 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3817183#p3817183</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3815875#p3815875</link>
			<description><![CDATA[<p>ah j&#039;essaierai tout a l&#039;heure sans, je m&#039;était inspiré de quelqu&#039;un et je l&#039;ai beaucoup modifié donc il est possible qu&#039;il reste des bout de code.</p>]]></description>
			<author><![CDATA[dummy@example.com (TwistedSister)]]></author>
			<pubDate>Thu, 28 Oct 2010 10:39:59 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3815875#p3815875</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3815719#p3815719</link>
			<description><![CDATA[<p>@ TwistedSister:<br />Utilise les balises &lt;code&gt; stp, c&#039;est plus lisible, merci</p><p>Par contre; il me semble que tu as des lignes qui ne servent à rien...!</p><div class="codebox"><pre><code>#!/bin/bash</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (RegisBurin)]]></author>
			<pubDate>Thu, 28 Oct 2010 09:17:35 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3815719#p3815719</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  (3) Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3815637#p3815637</link>
			<description><![CDATA[<p>Salut </p><p><a href="http://yfrog.com/7bcaptureuokp">http://yfrog.com/7bcaptureuokp</a></p><p>Conkyrc</p><div class="codebox"><pre class="vscroll"><code>own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
on_bottom yes
xftfont URW Chancery L:size=12
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
double_buffer yes
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color #4582B5
default_shade_color black
default_outline_color black
alignment top_right
gap_x 8
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no



TEXT
${font Ruritania:pixelsize=30}${color black}Bonjour Rhum1
${font URW Chancery L:pixelsize=14}${color black}Il est : ${time %H:%M:%S}
${color black}Nous sommes le : ${time %A %d %B %Y}
$stippled_hr
$sysname $kernel on $machine
${color black}Version : ${color black}${execi 86400 cat /etc/lsb-release|grep ID|cut -d= -f2} ${execi 86400 cat /etc/lsb-release|grep REL|cut -d= -f2} &quot;${execi 86400 cat /etc/lsb-release|grep NAME|cut -d= -f2}&quot;
$stippled_hr
${color black}Uptime:${color black} $uptime ${color black}- Load:${color black} $loadavg
$stippled_hr
${font Hacjiuza:pixelsize=20}${color black}Processeur: 
${font URW Chancery L:pixelsize=14}${color black}Utilisation Core 1: ${color black}${cpu cpu1}% ${cpubar cpu1}
${color black}Utilisation Core 2: ${color black}${cpu cpu2}% ${cpubar cpu2}
${color black}Utilisation Core 3: ${color black}${cpu cpu3}% ${cpubar cpu3}
${color black}Utilisation Core 4: ${color black}${cpu cpu4}% ${cpubar cpu4}
$stippled_hr
${font Hacjiuza:pixelsize=20}${color black}Espace Disque:
${font URW Chancery L:pixelsize=14}${color black}Root: ${color black}${fs_free /}/${fs_size /} ${color black}${fs_bar /}
${color black}Memoire RAM :${color black} $mem/$memmax - $memperc% ${color black}${membar}
${color black}Utilisation du Swap :${color black} $swap/$swapmax - $swapperc% ${color black}${swapbar}
$stippled_hr
${font Hacjiuza:pixelsize=20}${color black}Reseau : 
${font URW Chancery L:pixelsize=14}${color black}IP Locale ${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \&lt; -f 1}
${color black}Download :${color black} ${downspeed eth0} k/s${color black} ${offset 80}${color black}Upload:${color black} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 8b4b0b ffc11f} ${color black}${upspeedgraph eth0 32,150 ffc11f 8b4b0b}
$stippled_hr
${font Hacjiuza:pixelsize=20}${color black}Rhythmbox
${if_running rhythmbox}${font URW Chancery L:pixelsize=14}${color black}Artiste : ${exec rhythmbox-client --no-start --print-playing-format &quot;%ta&quot;}
${color black}Titre : ${exec rhythmbox-client --no-start --print-playing-format &quot;%tt&quot;}
${color black}Duree : ${exec rhythmbox-client --no-start --print-playing-format &quot;%te / %td&quot;}
${else}
${font URW Chancery L:pixelsize=14}${color black}Rhythmbox n&#039;est pas ouvert 
$endif</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (TwistedSister)]]></author>
			<pubDate>Thu, 28 Oct 2010 08:28:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3815637#p3815637</guid>
		</item>
	</channel>
</rss>
