<?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=1034741&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1034741</link>
		<description><![CDATA[Les sujets les plus récents dans [pb démarrage, aide script!]Mon petit conky, idée, aides.....]]></description>
		<lastBuildDate>Mon, 12 Nov 2012 17:01:06 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11488461#p11488461</link>
			<description><![CDATA[<p>pardon, c&#039;est <a href="http://paste.ubuntu.com">paste.ubuntu.com</a> !</p><p>Quand tu l&#039;as fait, donne nous l&#039;url qui te sera restituté ;-) Merci d&#039;avance</p>]]></description>
			<author><![CDATA[dummy@example.com (PengouinPdt)]]></author>
			<pubDate>Mon, 12 Nov 2012 17:01:06 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11488461#p11488461</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11488131#p11488131</link>
			<description><![CDATA[<p>@PengouinPdt<br />Je veut bien mais donne moi un lien car je ne connais pas &quot;pastebien&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (maan)]]></author>
			<pubDate>Mon, 12 Nov 2012 16:21:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11488131#p11488131</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11487671#p11487671</link>
			<description><![CDATA[<p>@maan: tu veux bien mettre, stp, sur <a href="http://paste.ubuntu.com">paste.ubuntu.com</a> ton fichier de config lua ? merci d&#039;avance.</p>]]></description>
			<author><![CDATA[dummy@example.com (PengouinPdt)]]></author>
			<pubDate>Mon, 12 Nov 2012 15:37:40 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11487671#p11487671</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11487611#p11487611</link>
			<description><![CDATA[<p>Merci PengouinPdt, à force de persuasion j&#039;avais reussi <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>en fait c&#039;est le name et arg que je renseignait mal, mais j&#039;ai fini par comprendre et mettre ce qu&#039;il fallait <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Du coup j&#039;ai même rajouter les ventilo et tout tourne impecc, merci voici mon conky final </p><p><a href="http://pix.toile-libre.org/?img=1352734420.png"><span class="postimg"><img src="http://pix.toile-libre.org/upload/img/1352734420.png" alt="1352734420.png" /></span></a></p><p>Mais merci de ton aide <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (maan)]]></author>
			<pubDate>Mon, 12 Nov 2012 15:34:31 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11487611#p11487611</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11487131#p11487131</link>
			<description><![CDATA[<p>Essayez de rajoutez cela dans votre script lua : </p><div class="codebox"><pre><code>{
        name=&#039;hwmon&#039;,
        arg=&#039;0 temp 1&#039;,
        max=50,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xff3300,
        fg_alpha=0.8,
        x=200, y=400,
        radius=45,
        thickness=4,
        start_angle=-90,
        end_angle=90
    },</code></pre></div><p>Sert à gérer le CPU0, CPU1, et le capteur de carte-mère... fonctionne avec <a href="http://doc.ubuntu-fr.org/lm-sensors">lm-sensors</a>, il faut modifier les valeurs des variables &#039;name&#039; et &#039;arg&#039; en conséquence de vos résultats</p><p>Pour le capteur GPU, tout dépend de votre carte graphique...</p><p>PS : Moi aussi, je cherche à comprendre comment cela fonctionne. J&#039;ai un problème avec le capteur de température de disque dur, soit hddtemp... si je paramètre mon script lua, avec, j&#039;ai l&#039;affichage qui joue les guirlandes...</p>]]></description>
			<author><![CDATA[dummy@example.com (PengouinPdt)]]></author>
			<pubDate>Mon, 12 Nov 2012 14:43:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11487131#p11487131</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11381131#p11381131</link>
			<description><![CDATA[<p>Salut Sylvain, <br />c&#039;est marrant mon aussi je viens de découvrir les conkys et nous avons les même idéés .....<br />Je suis parti du même conky que toi, je suis passer par les mêmes étape que toi , j&#039;ai aussi rajouter la météo mais d&#039;une autre manière, <br />et je voudrait rajouter tout comme toi&#160; <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />Ça fait 3 jours que le délire m&#039;a pris&#160; <img src="http://forum.ubuntu-fr.org/img/smilies/roll.png" width="15" height="15" alt="roll" /><br />je te met une photo de mon écran</p><p><a href="http://pix.toile-libre.org/?img=1351984430.png"><span class="postimg"><img src="http://pix.toile-libre.org/upload/img/1351984430.png" alt="1351984430.png" /></span></a></p><p>Le miens démarre très bien, donc si tu veut les fichiers pour vérifier les différences et tester pas de problème, <br />Car je suis loin de savoir faire un script&#160; <img src="http://forum.ubuntu-fr.org/img/smilies/roll.png" width="15" height="15" alt="roll" />:rolleyes:<br />As-tu réussi à intégrer les température CPU, GPU, et autres, car moi je coince un ptit peu dés que je rentre des lignes trouver sur le net, <br />ça fait stopper net le conky&#160; ......</p>]]></description>
			<author><![CDATA[dummy@example.com (maan)]]></author>
			<pubDate>Sat, 03 Nov 2012 23:18:57 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11381131#p11381131</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10774431#p10774431</link>
			<description><![CDATA[<p>aprés encore pas mal d&#039;essais c&#039;est </p><div class="codebox"><pre><code>${execpi  </code></pre></div><p>j&#039;ai donc essayé de passé sans le template</p><p>mais avec la ligne</p><div class="codebox"><pre><code>${execi 600 conkyForecast --location=FRRA0400 --datatype=WI -p 100,550 -s 113x113} </code></pre></div><p>mon terminal m&#039;affiche une erreur d&#039;option p et s inconnue</p><p>et si je met seulement : </p><div class="codebox"><pre><code>${execi 600 conkyForecast --location=FRRA0400 --datatype=WI }</code></pre></div><p>il ne m&#039;affiche pas l&#039;image du temp, mais le racourcis vers le png</p><p>par contre&#160; avec execi pas de soucis le conky se lance bien au démarrage</p><p>donc comment réécrire mon verem.template dans mon conkyrc correctement?</p>]]></description>
			<author><![CDATA[dummy@example.com (Sylvain_07)]]></author>
			<pubDate>Sat, 15 Sep 2012 18:00:17 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10774431#p10774431</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10764401#p10764401</link>
			<description><![CDATA[<p>je commence à progressé : je crois que j&#039;ai trouvé la ligne qui provoque le problème : </p><p>aprés plusieurs test si je suprime la ligne en question de mon . conkyrc&#160; conky démarre trés bien, si je rajoute la ligne j&#039;ai du mal o le lancé : <br />il s&#039;agir de la ligne : </p><div class="codebox"><pre><code>${execpi 600 conkyForecast --location=FRRA0400 --template=~/.vreme.template}</code></pre></div><p>.vreme.template : </p><div class="codebox"><pre><code>${image [--datatype=WI] -p 100,550 -s 113x113} 
${image [--datatype=WI --startday=1] -p 20,650 -s 43x43}
${image [--datatype=WI --startday=2] -p 65,650 -s 43x43}
${image [--datatype=WI --startday=3] -p 113,650 -s 43x43}
${image [--datatype=WI --startday=4] -p 158,650 -s 43x43}  
${image [--datatype=WI --startday=5] -p 200,650 -s 43x43}  </code></pre></div><p>le problème est par là. avez vous une idée ??</p>]]></description>
			<author><![CDATA[dummy@example.com (Sylvain_07)]]></author>
			<pubDate>Fri, 14 Sep 2012 19:46:43 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10764401#p10764401</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10763871#p10763871</link>
			<description><![CDATA[<p>Lorsque je lance conky depuis un treminal j&#039;ai : </p><div class="codebox"><pre><code>sylvain-sa@Sylvain-SA:~$ conky
Conky: forked to background, pid is 4338
sylvain-sa@Sylvain-SA:~$ 
Conky: desktop window (e00095) is subwindow of root window (298)
Conky: window type - normal
Conky: drawing to created window (0x4600001)
Conky: drawing to double buffer</code></pre></div><p><img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> et soit il démarre ( une fois sur 10 ) soit il ne démarre pas 9 fois sur 10</p><p>par contre dans la me session une fois qu&#039;il a démarrer une fois je peut terminer le processus et le relancé autant que je veux il redémarre a chaque fois.</p><p>si je me loge et me déloge au bout d&#039;un moment il démarre seul</p>]]></description>
			<author><![CDATA[dummy@example.com (Sylvain_07)]]></author>
			<pubDate>Fri, 14 Sep 2012 19:05:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10763871#p10763871</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10762371#p10762371</link>
			<description><![CDATA[<p>J&#039;ai un soucis avec mon conky depuis que j&#039;ai rajouté la météo : <br />j&#039;ai du mal à le lancé au démarrage ou dans un terminal : il se lance une fois sur 10.</p><p>j&#039;ai essayé de modifier ma commande de démarrage :&#160; conky - d&#160; &#160;ou conky -p 30 ça ne change rien</p><p>j&#039;ai essayé d&#039;utilisé un fichier de démarage .sh :&#160; avec le script . sh avec 30 seconde de décallage : <br />lorsque l&#039;ordinateur démarre dans le moniteur système je voit : <br />le processus de mon script, au bout des 30 seconde je voit le processus conky 2 seconde et il disparaît et plus rien...</p><p>j&#039;ai essayer de configurer le double buffer dans le xorg pas de changement</p><p>mon fichier .conkyrc</p><div class="codebox"><pre class="vscroll"><code> # Conky settings #
background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 300 1000
maximum_width 1000

alignment tr
gap_x 35
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load  #
lua_load ~/.conky/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT

${color 00B03B}${font eufm10:size=30}Sylvain
${font eufm10:size=20}Ubuntu 12.04 LTS
Precise Pangolin



${voffset -70}${color F6FE01}${font eufm10:size=30}${alignr}${time %A}${font}${voffset 36}${alignr 120}${color 01FE44}${font caviar dreams:bold:size=50}${time %e}${font}
${goto 120}${color FFFFFF}${voffset 5}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color 820C0C}${hr}

${color F6FE01}${goto 30}${voffset 35}${cpu cpu0}%${color 75B8FB}${font caviar dreams:bold:size=10}${goto 90}${cpu cpu1}%${color FA2626}${goto 150}${cpu cpu2}%${color 47FE47}${goto 210}${cpu cpu3}%${color FEB200}${goto 270}${cpu cpu4}%
${color 00B03B}${font caviar dreams:size=8}${goto 30}${voffset -5}CPU
${color 00B03B}${goto 25}${voffset 30}RAM${goto 55}${memperc}%${goto 135}Dwn${goto 165}${downspeed eth0}
${color FA0000}${goto 20}Swap${goto 55}${swapperc}%${goto 135}Up${goto 165}${upspeed eth0}


${voffset 30}${font Helvetica LT Std :style=Condensed:size=60}${color 434343}${goto 40}${time %H}${goto 140}${color 434343}${time %M}${font Helvetica LT Std :size=15:style=condensed}${color 808080}${goto 225}${time %S}
${voffset 70}${color whitesmoke}${font Helvetica LT Std :size=8}${goto 20}${time %A},${time %e} ${time %B} ${time %G}
${voffset -60}${goto 22}${font Helvetica LT Std :size=8}${color 909090}${execi 600 conkyForecast --location=FRRA0400 --datatype=CN --refetch}
#${voffset 8}${font Helvetica LT Std :size=10}${color 707070}${goto 24}Бургас
${font Helvetica LT Std :size=8}${color whitesmoke}${goto 24}${execi 1800 conkyForecast --location=FRRA0400 --datatype=CT}${voffset -10}${goto 200}${font Helvetica LT Std :size=25}${color d4d4d4}${execi 1800 conkyForecast --location=FRRA0400 -u
--datatype=HT}

${voffset 40}${font Helvetica LT Std :size=8}${color white}${goto 25}${execi 600 conkyForecast --location=FRRA0400 --datatype=HT -u --startday=1}/${color 707070}${execi 600 conkyForecast --location=FRRA0400 --datatype=LT -u --startday=1}${font Helvetica LT Std :size=8}${color white}${goto 70}${execi 600 conkyForecast --location=FRRA0400 --datatype=HT -u --startday=2}/${color 707070}${execi 600 conkyForecast --location=FRRA0400 --datatype=LT -u --startday=2}${font Helvetica LT Std :size=8}${color white}${goto 115}${execi 600 conkyForecast --location=FRRA0400 --datatype=HT -u --startday=3}/${color 707070}${execi 600 conkyForecast --location=FRRA0400 --datatype=LT -u --startday=3}${font Helvetica LT Std :size=8}${color white}${goto 160}${execi 600 conkyForecast --location=FRRA0400 --datatype=HT -u --startday=4}/${color 707070}${execi 600 conkyForecast --location=FRRA0400 --datatype=LT -u --startday=4}${font Helvetica LT Std :size=8}${color white}${goto 205}${execi 600 conkyForecast --location=FRRA0400 --datatype=HT -u --startday=5}/${color 707070}${execi 600 conkyForecast --location=FRRA0400 --datatype=LT -u --startday=5}
${font Helvetica LT Std :size=8}${color 707070}${goto 25}${execi 600 conkyForecast --location=FRRA0400 --datatype=DW --shortweekday --startday=1}${font Helvetica LT Std :size=8}${color 707070}${goto 70}${execi 600 conkyForecast --location=FRRA0400 --datatype=DW --shortweekday --startday=2}${font Helvetica LT Std :size=8}${color 707070}${goto 115}${execi 600 conkyForecast --location=FRRA0400 --datatype=DW --shortweekday --startday=3}${font Helvetica LT Std :size=8}${color 707070}${goto 160}${execi 600 conkyForecast --location=FRRA0400 --datatype=DW --shortweekday --startday=4}${font Helvetica LT Std :size=8}${color 707070}${goto 205}${execi 600 conkyForecast --location=FRRA0400 --datatype=DW --shortweekday --startday=5}


${image ~/.images/base.png -p 12,500 -s 238x140}
${image ~/.images/base.png -p 12,650 -s 238x70}
${image ~/.images/flip_bg.png -p 30,460 -s 100x110}
${image ~/.images/flip_bg.png -p 130,460 -s 100x110}
${execpi 600 conkyForecast --location=FRRA0400 --template=~/.vreme.template}


${color FFFFFF}${font caviar dreams:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font caviar dreams:size=8}Processes: ${processes}
${color FFFFFF}${font caviar dreams:size=8}Running: ${running_processes}


${color 00B03B}${font caviar dreams:size=8}${alignr}${nodename}
${color 00B03B}${font caviar dreams:size=8}${alignr}${pre_exec cat /etc/issue.net}  $machine
${color 00B03B}${font caviar dreams:size=8}${alignr}Kernel: ${kernel}</code></pre></div><p>mon fichier de démarrage .sh</p><div class="codebox"><pre><code>#! /bin/bash

sleep 40
conky -d
exit</code></pre></div><p>mon fichier&#160; .conkyForecast.config</p><div class="codebox"><pre><code>CACHE_FOLDERPATH = /tmp/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %d/%m/%Y
LOCALE =fr
XOAP_PARTNER_ID =
XOAP_LICENCE_KEY =
MAXIMUM_DAYS_FORECAST = 7
BASE_XOAP_URL = http://xml.weather.com/weather/local/&lt;LOCATION&gt;?cc=*&amp;dayf=10&amp;link=xoap&amp;prod=xoap&amp;par=&lt;XOAP_PARTNER_ID&gt;&amp;key=&lt;XOAP_LICENCE_KEY&gt;&amp;unit=m</code></pre></div><p>mon fichier : .vreme.template</p><div class="codebox"><pre><code>${image [--datatype=WI] -p 100,550 -s 113x113} 
${image [--datatype=WI --startday=1] -p 20,650 -s 43x43}
${image [--datatype=WI --startday=2] -p 65,650 -s 43x43}
${image [--datatype=WI --startday=3] -p 113,650 -s 43x43}
${image [--datatype=WI --startday=4] -p 158,650 -s 43x43}  
${image [--datatype=WI --startday=5] -p 200,650 -s 43x43}  </code></pre></div><p>Mon fichier /.conky/clock_rings.lua</p><div class="codebox"><pre class="vscroll"><code>--[[
Clock Rings by Linux Mint (2011) reEdited by despot77

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

IMPORTANT: if you are using the &#039;cpu&#039; function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn&#039;t happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num&gt;5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num&gt;3; conversely if you update Conky every 0.5s, you should use update_num&gt;10. ALSO, if you change your Conky, is it best to use &quot;killall conky; conky&quot; to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
    
Changelog:
+ v1.0 -- Original release (30.09.2009)
   v1.1p -- Jpope edit londonali1010 (05.10.2009)
*v Mint-lua -- reEdit despot77 (18.02.2011)
]]

settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- &quot;name&quot; is the type of stat to display; you can choose from &#039;cpu&#039;, &#039;memperc&#039;, &#039;fs_used_perc&#039;, &#039;battery_used_perc&#039;.
        name=&#039;time&#039;,
        -- &quot;arg&quot; is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, &#039;cpu0&#039; would be the argument. If you would not use an argument in the Conky variable, use &#039;&#039;.
        arg=&#039;%I.%M&#039;,
        -- &quot;max&quot; is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- &quot;bg_colour&quot; is the colour of the base ring.
        bg_colour=0xffffff,
        -- &quot;bg_alpha&quot; is the alpha value of the base ring.
        bg_alpha=0.1,
        -- &quot;fg_colour&quot; is the colour of the indicator part of the ring.
        fg_colour=0x339900,
        -- &quot;fg_alpha&quot; is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        -- &quot;x&quot; and &quot;y&quot; are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=80, y=200,
        -- &quot;radius&quot; is the radius of the ring.
        radius=50,
        -- &quot;thickness&quot; is the thickness of the ring, centred around the radius.
        thickness=5,
        -- &quot;start_angle&quot; is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        -- &quot;end_angle&quot; is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
        end_angle=360
    },
    {
        name=&#039;time&#039;,
        arg=&#039;%M.%S&#039;,
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x339900,
        fg_alpha=0.4,
        x=80, y=200,
        radius=56,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name=&#039;time&#039;,
        arg=&#039;%S&#039;,
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x339900,
        fg_alpha=0.6,
        x=80, y=200,
        radius=62,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name=&#039;time&#039;,
        arg=&#039;%d&#039;,
        max=31,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x339900,
        fg_alpha=0.8,
        x=80, y=200,
        radius=70,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name=&#039;time&#039;,
        arg=&#039;%m&#039;,
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x339900,
        fg_alpha=1,
        x=80, y=200,
        radius=76,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name=&#039;cpu&#039;,
        arg=&#039;cpu0&#039;,
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x339900,
        fg_alpha=0.8,
        x=30, y=335,
        radius=25,
        thickness=5,
        start_angle=-180,
        end_angle=90
    },
{
        name=&#039;cpu&#039;,
        arg=&#039;cpu1&#039;,
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x75B8FB,
        fg_alpha=0.8,
        x=90, y=335,
        radius=25,
        thickness=5,
        start_angle=-180,
        end_angle=90
    },
{
        name=&#039;cpu&#039;,
        arg=&#039;cpu2&#039;,
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xFA2626,
        fg_alpha=0.8,
        x=150, y=335,
        radius=25,
        thickness=5,
        start_angle=-180,
        end_angle=90
    },
{
        name=&#039;cpu&#039;,
        arg=&#039;cpu3&#039;,
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x47FE47,
        fg_alpha=0.8,
        x=210, y=335,
        radius=25,
        thickness=5,
        start_angle=-180,
        end_angle=90
    },
{
        name=&#039;cpu&#039;,
        arg=&#039;cpu4&#039;,
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xFEB200,
        fg_alpha=0.8,
        x=270, y=335,
        radius=25,
        thickness=5,
        start_angle=-180,
        end_angle=90
    },
    {
        name=&#039;memperc&#039;,
        arg=&#039;&#039;,
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x339900,
        fg_alpha=0.8,
        x=60, y=420,
        radius=50,
        thickness=4,
        start_angle=-90,
        end_angle=90
    },
    {
        name=&#039;swapperc&#039;,
        arg=&#039;&#039;,
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xff3300,
        fg_alpha=0.8,
        x=60, y=420,
        radius=45,
        thickness=4,
        start_angle=-90,
        end_angle=90
    },
        {
        name=&#039;downspeedf&#039;,
        arg=&#039;eth0&#039;,
        max=300,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x339900,
        fg_alpha=0.8,
        x=170, y=420,
        radius=50,
        thickness=4,
        start_angle=-90,
        end_angle=90
    },
        {
        name=&#039;upspeedf&#039;,
        arg=&#039;eth0&#039;,
        max=50,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xff3300,
        fg_alpha=0.8,
        x=170, y=420,
        radius=45,
        thickness=4,
        start_angle=-90,
        end_angle=90
    },
}

-- Use these settings to define the origin and extent of your clock.

clock_r=65

-- &quot;clock_x&quot; and &quot;clock_y&quot; are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=80
clock_y=200

show_seconds=true

require &#039;cairo&#039;

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
    
    local xc,yc,ring_r,ring_w,sa,ea=pt[&#039;x&#039;],pt[&#039;y&#039;],pt[&#039;radius&#039;],pt[&#039;thickness&#039;],pt[&#039;start_angle&#039;],pt[&#039;end_angle&#039;]
    local bgc, bga, fgc, fga=pt[&#039;bg_colour&#039;], pt[&#039;bg_alpha&#039;], pt[&#039;fg_colour&#039;], pt[&#039;fg_alpha&#039;]

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
    
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)        
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
    
    secs=os.date(&quot;%S&quot;)    
    mins=os.date(&quot;%M&quot;)
    hours=os.date(&quot;%I&quot;)
        
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
        
    -- Draw hour hand
    
    xh=xc+0.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xh,yh)
    
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    cairo_stroke(cr)
    
    -- Draw minute hand
    
    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xm,ym)
    
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
    
    -- Draw seconds hand
    
    if show_seconds then
        xs=xc+clock_r*math.sin(secs_arc)
        ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)
    
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=&#039;&#039;
        local value=0
        
        str=string.format(&#039;${%s %s}&#039;,pt[&#039;name&#039;],pt[&#039;arg&#039;])
        str=conky_parse(str)
        
        value=tonumber(str)
        pct=value/pt[&#039;max&#039;]
        
        draw_ring(cr,pct,pt)
    end
    
    -- Check that Conky has been running for at least 5s

    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 cr=cairo_create(cs)    
    
    local updates=conky_parse(&#039;${updates}&#039;)
    update_num=tonumber(updates)
    
    if update_num&gt;5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
    
    draw_clock_hands(cr,clock_x,clock_y)
end</code></pre></div><p>pour la météo je me suis servi ici : <br /><a href="http://guideubuntu.com/2011/09/conky-horlogemeteo-comme-htc.html#comment-12">http://guideubuntu.com/2011/09/conky-ho … comment-12</a> : <br />en plus du paquet conky de la blogithèque : <br />j&#039;ai installé conky-HTC : paquet debian<br />et j&#039;ai télécharger l&#039;archive conky HTC ((.fonts, .images, .conkyForecast.config, .conkyrc, .conky_start and .vreme.template)<br />. font et . image je n&#039;ai rien touché<br /> .conkyForecast.config j&#039;ai juste modifier la locale en fr<br />.conky_start : j&#039;ai commencé à essayé de l&#039;utilisé ( je l&#039;avais laissé de coté au début) quand j&#039;au vu que ça ne marché pas au démarrage , j&#039;ai essayer de modifier les paramètres sans résultats<br />.vreme.template&#160; : j&#039;ai modifier la position des objets<br /> .conkyrc : j&#039;ai fusioner celui de HTC avec mon acien conky&#160; ( copier coller de la partie texte de HTC à la suite de mon conky d&#039;origine, et j&#039;ai modifier les position des objet pour alligner tout ça, j&#039;ai aussi modifier modifier mon indicateur local.</p>]]></description>
			<author><![CDATA[dummy@example.com (Sylvain_07)]]></author>
			<pubDate>Fri, 14 Sep 2012 16:56:48 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10762371#p10762371</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10737931#p10737931</link>
			<description><![CDATA[<p>Voici L&#039;évolution de mon Pti conky qui commence à bien grandir :</p><p><a href="http://pix.toile-libre.org/?img=1347487265.png"><span class="postimg"><img src="http://pix.toile-libre.org/upload/thumb/1347487265.png" alt="1347487265.png" /></span></a></p><p>je me suis servit en plus de Conky HTC ( Horloge météo)</p><p><a href="http://guideubuntu.com/2011/09/conky-horlogemeteo-comme-htc.html#comment-12">http://guideubuntu.com/2011/09/conky-ho … comment-12</a></p><p><img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> si vous avez un truc pas trop compliqué pour que je face 2 petits indicateurs de température et je suis au poil.</p>]]></description>
			<author><![CDATA[dummy@example.com (Sylvain_07)]]></author>
			<pubDate>Wed, 12 Sep 2012 22:09:07 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10737931#p10737931</guid>
		</item>
		<item>
			<title><![CDATA[[pb démarrage, aide script!]Mon petit conky, idée, aides....]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10709431#p10709431</link>
			<description><![CDATA[<p>Bonjour à tous,</p><p>voilà je travaille sur mon petit conky <br />voici à quoi il ressemble pour le moment : </p><p><a href="http://pix.toile-libre.org/?img=1347306316.png"><span class="postimg"><img src="http://pix.toile-libre.org/upload/thumb/1347306316.png" alt="1347306316.png" /></span></a></p><p>Il me plait déjà bien mais j&#039;aimerai l&#039;améliorer : <br />rajouter la météo, <br />température CPU et GPU</p><p>jusque là je n&#039;a pas trop de mérite : <br />voici ce que j&#039;ai fait : <br />-j&#039;ai instalé conky par défaut depuis les paquets</p><p>1)comme le orange ne ma plaisait pas et que je n&#039;avais pas encore dompté la chose:&#160; j&#039;ai commencé par parcourir les image de conky sur le net et je suis tombé sur le conky de Mit : le même que celui d&#039;ubuntu sauf en vert : je ne pouvait réver mieux : j&#039;ai téléchargé,<br />et j&#039;ai remplacé le .conkyrc et le clock_ring.lua par les fichiers de Mint<br />et hop je me suis retrouvé avec un conky tout vert</p><p>2) j&#039;ai commencé à étudier le .conkyrc et lire un peu de doc sur le net sur le sujet<br />j&#039;ai galérer a trouvé ce qu&#039;il falait que je mette pour qu&#039;ils s&#039;affiche en fondu sur le bureau mais pas devant les fenètres.<br />ce qui m&#039;a permis de lire plusieurs fois la doc</p><p>3) une fois réussit la couleur me plaisé mais pas l&#039;organisation alors j&#039;ai continué mes essais : <br />rajout de text : mon nom avec la version histoire de voir ce qui se passé, puis j&#039;ai testé les polices, tailles de police...<br />puis une fois que j&#039;avais mon texte en haut plus rien ne colé en dessous</p><p>4) il a fallu que je familiarise avec les goto, offset vofset pour remettre tous ça dans l&#039;état d&#039;origine</p><p>5) une fois que j&#039;avais compris j&#039;ai eu envie de personnaliser un peu plus tout ça : et j&#039;ai vite compris que l&#039;orloge et les compteurs n&#039;était pas dans le .conkyrc je suis donc allé jeté un coup d&#039;oeil dans le clock_ring.lua : le nom et pas trop compliqué clik ring c&#039;est l&#039;orloge<br />et là j&#039;ai compris comment celà se passé et j&#039;ai commencé à repositionner un aprés les autres les compteur ou je voulais, modifiant au passage les angles de rotation des compteur, j&#039;ai rajouter les quatre coeur en plus du compteur général (j&#039;ai juste refait un copie du code du CPU général en remplaçant cpu0 par cpu1 ....<br />puis comme j&#039;avais bien compris comment ça marchait aprés 2 ou 3 test : tailles position.. j&#039;ai regroupé la rame&#160; la swap ensemble sous forme de demis cercle en arc en ciel, idem pour le débit montant et descendant et j&#039;ai suprimé ce qui ne m&#039;interessé pas : compteur d&#039;espace de la partition système.</p><p>6) une fois que j&#039;avais placé l&#039;orloge et mes compteur bien là ou je voulait<br />je suis retourné sous le conkyrc et je l&#039;ai travaillé pour remtre les indication comme il faut en fonction de mes compteur</p><p>évidement si quelqu&#039;un est intéressé je peut lui envoyer mes 2 fichiers sans soucis.</p><p>maintenant que j&#039;ai fait celà&#160; :<br />Il me plait déjà bien mais j&#039;aimerai l&#039;améliorer : <br />rajouter la météo, <br />température CPU et GPU</p><p>donc je prend tout les idée</p><p><img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Sylvain_07)]]></author>
			<pubDate>Mon, 10 Sep 2012 20:07:30 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10709431#p10709431</guid>
		</item>
	</channel>
</rss>
