<?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=1019251&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / --Conky-- Conditions -> Colorisations]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1019251</link>
		<description><![CDATA[Les sujets les plus récents dans --Conky-- Conditions -> Colorisations.]]></description>
		<lastBuildDate>Thu, 20 Sep 2012 23:26:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  --Conky-- Conditions -> Colorisations]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10833941#p10833941</link>
			<description><![CDATA[<p>Bonjour,<br />Un exemple d&#039;une des lignes sur mon conky qui change la couleur en fonction de la température du disque</p><p>${color #0077ff}Samsung 250Gb:${if_match ${hddtemp /dev/sda}&lt;=30}${color green}${hddtemp /dev/sda}$else${if_match ${hddtemp /dev/sda}&lt;=33}${color orange}${hddtemp /dev/sda}$else${color red}${hddtemp /dev/sda}$endif$endif°C${color Yellow}${alignr}${diskiograph /dev/sda 13,135 00FF00 FF0000}</p><p>Donc a mon avis suivant en ligne de commande ce que te donne comme réponse battery APM0</p><p>${color #0077ff}Samsung 250Gb:${if_match ${battery APM0}&lt;=10}${color green}${battery_bar}$else${if_match ${battery APM0}&lt;=25}${color orange}${battery_bar}$else${color red}${battery_bar}$endif$endif°</p>]]></description>
			<author><![CDATA[dummy@example.com (wansprl)]]></author>
			<pubDate>Thu, 20 Sep 2012 23:26:02 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10833941#p10833941</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  --Conky-- Conditions -> Colorisations]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10708901#p10708901</link>
			<description><![CDATA[<p><img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> sujet très intéressant, je travaille moi aussi sur Conky en ce moment.</p><p>je ne suis pas très doué en programmation, mais à mon avis : <br />1) il manque des elseif<br />2) les if...; else if...; elseif..., esle... doivent être dans la même instruction : </p><p>c&#039;est à dire dans le même ${if.......elseif......elseif.....else....}<br />enfin c&#039;est une idée</p><p>sinon a tu essayer de lancé conky dans un terminal et de voir ce qu&#039;il t&#039;affiche</p><p>sinon passer par un fichier dirrectement en C genre le ring.lua pour définir tous ça ce ne serait pas plus simple?</p>]]></description>
			<author><![CDATA[dummy@example.com (Sylvain_07)]]></author>
			<pubDate>Mon, 10 Sep 2012 19:15:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10708901#p10708901</guid>
		</item>
		<item>
			<title><![CDATA[--Conky-- Conditions -> Colorisations]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10522461#p10522461</link>
			<description><![CDATA[<p>Bonsoir à tous <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Voila, je suis en train de programmer mon conky, et je bute sur un petit problème.<br />Le but, c&#039;est que cette barre change de couleur en fonction de l&#039;etat de la batterie,<br />élevé, faible, bas, en charge.<br />Cette barre m&#039;affiche le niveau de batterie, mais le problème, c&#039;est qu&#039;une fois<br />à l&#039;essai, la barre reste rouge... Si quelqu&#039;un à une idée...</p><p>Ma Condition:</p><div class="codebox"><pre><code>${if_match ${battery APM0} &lt; 10}${color2}${battery_bar}${color}${else}
${if_match ${battery APM0} &gt; 25}${color4}${battery_bar}${color}${else}
${if_match ${battery} == charging **%}${color5}${battery_bar}${color}${else}
${color3}${battery_bar}${color}${endif}${endif}${endif}</code></pre></div><p>Le conkyrc complet, pour les codes couleurs:</p><div class="codebox"><pre class="vscroll"><code>#avoid flicker
double_buffer yes
default_bar_size 80

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 

#borders
draw_borders no
border_margin 1

#shades
draw_shades no

#position
gap_x 6
gap_y 6
alignment top_left

#behaviour
update_interval 1

#colour 9f907d
default_color  D3D7C5

#default_shade_color 000000
#own_window_colour 3d352a
own_window_colour 000000

#font
use_xft yes
xftfont bauhaus:pixelsize=11

#to prevent window from moving
use_spacer no
#minimu_size defaut 1262 0${color}
minimum_size 1262 0
maximum_width 250

color1 9f907d
color2 red
color3 yellow
color4 green
color5 lightblue

TEXT
${color1}Informations Système${color}
${nodename} ${color1}--${color} ${user_names}
${kernel} ${color1}--${color} ${uptime_short}
Cpu: ${cpu}%  ${cpugraph 9,80 AEA08E 9F907D} 
Mem: $memperc% ${membar 6,80}

${if_match ${battery APM0} &lt; 10}${color2}${battery_bar}${color}${else}
${if_match ${battery APM0} &gt; 25}${color4}${battery_bar}${color}${else}
${if_match ${battery} == charging **%}${color5}${battery_bar}${color}${else}
${color3}${battery_bar}${color}${endif}${endif}${endif}

${battery_bar} ${color1}--${color} ${battery_time} ${color1}--${color} ${exec cat /sys/class/backlight/*/brightness}/255L

${color1}Connections Reseaux${color}
SSID: ${wireless_essid ra0} ${color1}--${color} ${addr ra0}
SIGNAL: ${wireless_link_bar 6,80 ra0}
DOWN: ${totaldown ra0} ${color1}-${color} ${font}${downspeed ra0}/s
UP: ${totalup ra0} ${color1}-${color} ${font}${upspeed ra0}/s

${color1}Météo${color}
${color1}${execi 300 ~/.conky/meteo.sh BEXX0435:1}${execi 300 ~/.conky/meteo2.sh &quot;Ville&quot;}${color}
Aujourd&#039;hui: ${execi 300 ~/.conky/meteo2.sh &quot;Température aujourd&#039;hui&quot;}  
${font weather:size=40}${voffset -30}${offset 165}${execi 300 ~/.conky/meteo2.sh &quot;Conditions aujourd&#039;hui&quot;}${font}${voffset -16}
Vent : ${execi 300 ~/.conky/meteo2.sh &quot;Vent aujourd&#039;hui&quot;}
Lever du soleil: ${execi 300 ~/.conky/meteo2.sh &quot;Lever du soleil&quot;}
Coucher du soleil: ${execi 300 ~/.conky/meteo2.sh &quot;Coucher du soleil&quot;}
Demain: ${execi 300 ~/.conky/meteo2.sh &quot;Température demain&quot;}
${font weather:size=30}${voffset -30}${offset 165}${execi 300 ~/.conky/meteo2.sh &quot;Conditions demain&quot;}${font}

${color1}${execi 300 ~/.conky/meteoB.sh SPXX0754}${execi 300 ~/.conky/meteo2B.sh &quot;Ville&quot;}${color}
Aujourd&#039;hui: ${execi 300 ~/.conky/meteo2B.sh &quot;Température aujourd&#039;hui&quot;}  
${font weather:size=40}${voffset -30}${offset 165}${execi 300 ~/.conky/meteo2B.sh &quot;Conditions aujourd&#039;hui&quot;}${font}${voffset -16}
Vent : ${execi 300 ~/.conky/meteo2B.sh &quot;Vent aujourd&#039;hui&quot;}
Lever du soleil: ${execi 300 ~/.conky/meteo2B.sh &quot;Lever du soleil&quot;}
Coucher du soleil: ${execi 300 ~/.conky/meteo2B.sh &quot;Coucher du soleil&quot;}
Demain: ${execi 300 ~/.conky/meteo2B.sh &quot;Température demain&quot;}
${font weather:size=30}${voffset -30}${offset 165}${execi 300 ~/.conky/meteo2B.sh &quot;Conditions demain&quot;}${font}</code></pre></div><p>Si quelqu&#039;un sait m&#039;éclairer...<br />Bonne nuit à tous ;-)</p>]]></description>
			<author><![CDATA[dummy@example.com (BINEJE)]]></author>
			<pubDate>Sun, 26 Aug 2012 11:44:17 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10522461#p10522461</guid>
		</item>
	</channel>
</rss>
