<?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=99471&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=99471</link>
		<description><![CDATA[Les sujets les plus récents dans Conky : Postez vos conkyrc ou certaines parties intéressantes.]]></description>
		<lastBuildDate>Fri, 09 Jan 2009 23:33:43 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2341145#p2341145</link>
			<description><![CDATA[<p>Bon, ça commence à beuguer sévère, là.</p><p>Je ferme ce sujet. Créez-en un autre (même titre, avec (2) à la fin), et on mettra le lien sur ce message.</p><p>Ça continue donc ici :<br /><a href="./viewtopic.php?pid=2347951">http://forum.ubuntu-fr.org/viewtopic.php?pid=2347951</a></p>]]></description>
			<author><![CDATA[dummy@example.com (xabilon)]]></author>
			<pubDate>Fri, 09 Jan 2009 23:33:43 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2341145#p2341145</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2340332#p2340332</link>
			<description><![CDATA[<p>Essaye plutot ce script pour le démarrage... sleep est une commande qui met le programme en pause le temps indiqué ensuite (dans le script, sleep 10 veut dire attendre 10 secondes)</p><div class="codebox"><pre><code>#!/bin/bash
killall conky &amp;
killall cid &amp;
sleep 10 
sh /home/USER/info/conky/.conky/image.sh &amp;
conky -c /home/USER/info/conky/.conkyrcrss &amp;
conky -c /home/USER/info/conky/.conkyrcbase &amp;
conky -c /home/USER/info/conky/.conkyrcmeteo &amp;
/usr/bin/cid -c  /home/USER/info/conky/cid.conf &amp;
conky -c /home/USER/info/conky/.conkyrcamarok &amp;
conky -c /home/USER/info/conky/.conkyrcimage &amp;
exit</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Levi59)]]></author>
			<pubDate>Fri, 09 Jan 2009 17:16:37 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2340332#p2340332</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2339993#p2339993</link>
			<description><![CDATA[<p>Bonjour, </p><p>Voici mon bureau :<br /><a href="http://pix.nofrag.com/5/5/8/41720066a1cbb9ca59a27b5fd0ceb.html"><span class="postimg"><img src="http://pix.nofrag.com/5/5/8/41720066a1cbb9ca59a27b5fd0cebtt.jpg" alt="41720066a1cbb9ca59a27b5fd0cebtt.jpg" /></span></a></p><p>Et pour ceux qui voudraient l&#039;utiliser ou s&#039;en inspirer, voici tous les fichiers (ça va être un peu long !)</p><p>Le script de lancement : <br /><strong>/home/user/conky/conky.sh</strong></p><div class="codebox"><pre><code>#!/bin/bash
killall conky&amp;
killall cid&amp;
sleep 1 &amp;&amp; sh /home/USER/info/conky/.conky/image.sh&amp;
sleep 2 &amp;&amp; conky -c /home/USER/info/conky/.conkyrcrss&amp;
sleep 3 &amp;&amp; conky -c /home/USER/info/conky/.conkyrcbase&amp;
sleep 4 &amp;&amp; conky -c /home/USER/info/conky/.conkyrcmeteo&amp;
sleep 5 &amp;&amp; /usr/bin/cid -c  /home/USER/info/conky/cid.conf&amp;
sleep 6 &amp;&amp; conky -c /home/USER/info/conky/.conkyrcamarok&amp;
sleep 7 &amp;&amp; conky -c /home/USER/info/conky/.conkyrcimage&amp;
exit</code></pre></div><p><em>J&#039;ai toujours eu un peu de mal avec la synthaxe de la commande sleep dans un script bash... Suis preneur de toutes remarques...<br />D&#039;ailleurs, quand je mets ce sript en &quot;lancement au démarrage de la session&quot;, ça ne se lance pas ^^</em></p><p><span class="bbu">On y va avec les fichiers .conkyrc :</span></p><br /><p><strong>/home/user/conky/.conkyrcbase</strong> (c&#039;est le conky système à droite)</p><div class="codebox"><pre class="vscroll"><code>background no
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_xft yes
xftfont DejaVuSans:size=8
xftalpha 0.8
update_interval 1
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_shade_color2 black
default_outline_color2 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 yes
use_spacer no
own_window_type override

#titres des parties
color1 1A192A

#titres des indicateurs
color2 302D5A

#valeurs des indicateurs
color3 07051A

#graphiques barres contour et valeur
color4 595776

#graphiques contours
color7 ed0028

#graphiques CPU et internet courbe contour et valeur
color6 000000

#barres de séparation
color7 BFBBF2

#texte d&#039;intro
color8 040220

#mails
color9 000000

TEXT
${color8}Bonjour fabi
${color8}Nous sommes le ${time %A %d %B %Y}
                        ${font style=Bold:size=16}${time %H:%M:%S}${font style=CleanCut:size=8}
${color7}$hr
${color8}${execi 300 python ~/info/conky/.conky/gmail.py}
${color7}$hr
${color8}$nodename - $sysname $kernel on $machine
${color2}Uptime:$color3 $uptime
${color2}Chargeur:$color3 ${execi 100 acpi -a | grep &#039;AC Ad&#039; | cut -c17-27}${color3} $color2 ${execi 10 acpi | grep &#039;Battery&#039; | cut -c29-31} ${color3}${execi 10 acpi | grep &#039;Battery&#039; | cut -c35-43}
${color2}CPU Utilisé :${color3} $cpu% ${color4}${cpubar}
${color6}${cpugraph}
${color2}Mémoire RAM : ${color3}$memperc% ${color4}${membar}    #$mem/$memmax - 
${color2}Utilisation du Swap : ${color3}$swapperc% ${color4 color5}${swapbar}   # $swap/$swapmax - 
${color7}$hr
${color1}Processus : $color3 $processes   ${color2}En cours : $color3 $running_processes
   ${color2} PID     %CPU  %MEM  NAME
   ${color3}${top pid 1}  ${top cpu 1}  ${top mem 1}  ${top name 1}
   ${top pid 2}  ${top cpu 2}  ${top mem 2}  ${top name 2}
   ${top pid 3}  ${top cpu 3}  ${top mem 3}  ${top name 3}
   ${top pid 4}  ${top cpu 4}  ${top mem 4}  ${top name 4}
   ${top pid 5}  ${top cpu 5}  ${top mem 5}  ${top name 5}
${color7}$hr
${color1}Reseau : 
    ${color2}Signal WIFI : ${color3}${wireless_link_qual wlan0}%
    ${color2}IP locale : ${color3}${addr wlan0}            
    ${color2}IP publique : ${color3}${execi 1800 /home/USER/info/conky/.conky/scriptip.sh}
         ${color2}Reçu :${color3} ${totaldown wlan0}                ${color2}      Envoyé :${color3} ${totalup wlan0}
    ${color6}${downspeedgraph wlan0 32,150}      ${color6}${upspeedgraph wlan0 32,150}
            ${color2}Download :${color3} ${downspeed wlan0} ko/s                        ${color2}Upload:${color3} ${upspeed wlan0} ko/s
${color7}$hr #$color7$stippled_hr
${color1}Espace Disque:
     ${color2}/                 ${color3}  ${fs_free_perc /} % libres sur 34 Go
     ${color2}/ptitdur     ${color3}  ${fs_free_perc /ptitdur} % libres sur 36 Go
     ${color2}/musique   ${color3} ${fs_free_perc /media/musique} % libres sur 914 Go
${color7}$hr
${color1}Températures :
     ${color2}CPU1 : $color3 ${execi 10 sensors | grep &#039;Core 0&#039; | cut -c15-16}°C
     ${color2}CPU2 : $color3 ${execi 10 sensors | grep &#039;Core 1&#039; | cut -c15-16}°C
     ${color2}GPU :  $color3 ${execi 10 nvidia-settings -q GPUcoretemp | grep NOM-DE-L&#039;ORDINATEUR-PAR-EXEMPLE-moi-desktop | cut -c46-47}°C
     ${color2}M/B :  $color3 ${execi 10 sensors | grep &#039;temp1&#039; | cut -c15-16}°C
$color7$hr
${color1}Port(s) ouvert(s) : ${color3}${tcp_portmon 1 65535 count} ${alignr}${color2}Entrant : ${color3}${tcp_portmon 1 32767 count}${color2} | Sortant : ${color3}${tcp_portmon 32768 61000 count} 
  ${color3}${execi 60 ~/info/conky/.conky/ports.sh 1}${tcp_portmon 1 65535 rhost 0} ${alignr}${tcp_portmon 1 65535 lservice 0} 
  ${tcp_portmon 1 65535 rhost 1} ${alignr}${tcp_portmon 1 65535 lservice 1} 
  ${tcp_portmon 1 65535 rhost 2} ${alignr}${tcp_portmon 1 65535 lservice 2} 
  ${tcp_portmon 1 65535 rhost 3} ${alignr}${tcp_portmon 1 65535 lservice 3} 
  ${tcp_portmon 1 65535 rhost 4} ${alignr}${tcp_portmon 1 65535 lservice 4} 
  ${tcp_portmon 1 65535 rhost 5} ${alignr}${tcp_portmon 1 65535 lservice 5} 
  ${tcp_portmon 1 65535 rhost 6} ${alignr}${tcp_portmon 1 65535 lservice 6} 
  ${tcp_portmon 1 65535 rhost 7} ${alignr}${tcp_portmon 1 65535 lservice 7} 
  ${tcp_portmon 1 65535 rhost 8} ${alignr}${tcp_portmon 1 65535 lservice 8} 
  ${tcp_portmon 1 65535 rhost 9} ${alignr}${tcp_portmon 1 65535 lservice 9} 
  ${tcp_portmon 1 65535 rhost 10} ${alignr}${tcp_portmon 1 65535 lservice 10} 
${color7}$hr</code></pre></div><p>La météo (en bas au milieu) :<br /><strong>/home/USER/conky/.conkyrcmeteo</strong></p><div class="codebox"><pre class="vscroll"><code>background no
use_xft yes
xftfont Sans:size=9
xftalpha 0.8
update_interval 1.0
double_buffer yes

minimum_size 300 0
maximum_width 280

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes

stippled_borders 8
border_margin 4
border_width 1

default_color white
default_shade_color black
default_outline_color white

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

alignment bottom_middle
gap_x 10
gap_y -147

no_buffers yes
uppercase no
override_utf8_locale yes
use_spacer right

## conky peut enregistrer jusqu&#039;à 9 codes couleurs... mieux vaut mettre les codes Html des couleurs bien visible comme ça plutôt que dans le corps de &quot;TEXT&quot;, plus facile à changer
color1 696fcd
color2 6892C6
color3 989de8
color4 78BF39
color5 CC0000
color6 8BAEE8

text_buffer_size 1024

TEXT
${offset -5}${color3}                      ${font StyleBats:style=CleanCut:size=14}q ${font Terminus:style=Bold:size=11}Météo ${offset 5}${color3}${font StyleBats:style=CleanCut:size=14}q${color3}
${voffset 5}${goto 10}${font ConkyWeather:size=35}${execi 1800 conkyForecast --location=REXX0002 --datatype=WF}${font}
${color1}${voffset 5}${goto 16}${font Sans:style=Bold:pixelsize=10}${execi 1800 conkyForecast --location=REXX0002 --datatype=LT --hideunits}/ ${execi 1800 conkyForecast --location=REXX0002 --datatype=HT --hideunits}${font}
${color3}${voffset 10}${goto 10}${font ConkyWindNESW:size=35}${execi 1800 conkyForecast --location=REXX0002 --datatype=BS}${font}
${color1}${voffset 5}${goto 10}${font Sans:style=Bold:pixelsize=10}${execi 1800 conkyForecast --location=REXX0002 --datatype=WS} - ${execi 1800 conkyForecast --location=REXX0002 --datatype=WD -L fr}${font}
${color1}${voffset -130}${font Sans:style=Bold:pixelsize=10}${execi 1800 conkyForecast --location=REXX0002 --template=/home/USER/info/conky/conkyForecast.template}${font}${color3}
${voffset -75}${goto 10}${font ConkyWeather:size=32}${execi 1800 conkyForecast --location=REXX0002 --datatype=WF --startday=1 --endday=4 --spaces=3}${font}
${voffset 25}${color3}${font Sans:size=7}${alignr 20}Dernière mise à jour :  ${execi 1800 conkyForecast --location=REXX0002 --datatype=LU}${font}</code></pre></div><p>Pour faire fonctionner la météo, ne pas oublier le conkyForecast.template : lire la doc ubuntu sur conky-forecast</p><p>Toujours pour la météo, j&#039;aime bien avoir la photo satellite du coin (Océan Indien dans mon cas). Pour ça, il y a d&#039;abord un script qui va télécharger la photo satellite la plus récente : <br /><strong>/home/USER/conky/.conky/image.sh</strong>&#160; (à noter que la commande convert dans ce script doit être installée de base)</p><div class="codebox"><pre><code>#! /bin/bash
cd /home/USER/info/conky/.conky/images

#### téléchargement (si image récente), et copie
#wget -m -nd http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MET7_IR115Color-WIndianOcean.jpg
#cp EUMETSAT_MET7_IR115Color-WIndianOcean.jpg /home/USER/info/conky/.conky/images/imagetemp.jpg

wget -m -nd http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MTP_IR115Color-WIndianOcean.jpg
cp EUMETSAT_MTP_IR115Color-WIndianOcean.jpg /home/USER/info/conky/.conky/images/imagetemp.jpg

###ajustement de l&#039;image : recadrage et suppression de la bande inférieure
convert imagetemp.jpg -resize 70% imagetemp2.jpg
convert imagetemp2.jpg -crop 323x323+80+85 image.jpg
exit</code></pre></div><p>Ensuite, un conky pour l&#039;afficher, grace à la commande &#039;display&#039;, qui est livrée avec le paquet &#039;imagemagick&#039;<br /><strong>/home/USER/info/.conkyrcimage</strong></p><div class="codebox"><pre class="vscroll"><code>background no

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window yes
own_window_type normal
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
own_window_title conky_images

#font
use_xft yes
xftfont DejaVu Sans Mono:size=8
xftalpha 0.8

#borders
draw_borders no
border_margin 3
border_width 3
draw_outline no
default_outline_color 777777

#shades
draw_shades no

#position
gap_x 800
gap_y 550
alignment center

#behaviour
update_interval 5
out_to_console no


#colour
default_color  e6e6e6
#default_shade_color 359748
own_window_colour black

#to prevent window from moving
use_spacer no
#minimum_size 323 319
minimum_size 290 290
#maximum_width 754
maximum_width 354

draw_graph_borders no

TEXT
${execi 20 sleep 1 &amp;&amp; display -window conky_images -geometry 323x323 -backdrop /home/USER/info/conky/.conky/images/image.jpg}</code></pre></div><p>Voici maintenant pour la musique, Amarok<br /><strong>/home/USER/info/.conkyrcamarok</strong></p><div class="codebox"><pre class="vscroll"><code>background        no
update_interval        0.5
double_buffer        yes

use_xft            yes
override_utf8_locale
xftfont            DejaVuSans:size=8
xftalpha        0.8

own_window        yes
own_window_transparent    yes
own_window_type        override
own_window_hints    undecorated,below,sticky,skip_taskbar,skip_pager
#on_bottom        yes

minimum_size        280 5
draw_shades        no
draw_outline        no
draw_borders        no
draw_graph_borders    no
stippled_borders    0
border_margin        3
border_width        0

default_color        white
default_shade_color    black
default_outline_color    black
color1 17174C
color2 4F4B8D
alignment top_middle
gap_x            6
gap_y            48

no_buffers        yes

TEXT
                        
${if_running amarokapp}
${alignc}${color1}--- AmaroK ---${color1}










${alignc}${execi 10 /home/USER/info/conky/.conky/amarok playing}
${alignc}${if_empty /home/USER/info/conky/.conky/amarok album}&quot;${execi 10 /home/USER/info/conky/.conky/amarok album}&quot; ${endif}${if_empty /home/USER/info/conky/.conky/amarok year}- ${execi 10 /home/USER/info/conky/.conky/amarok year} ${endif}${if_empty /home/USER/info/conky/.conky/amarok genre}- ${execi 10 /home/USER/info/conky/.conky/amarok genre}${endif}
${color1}${execi 1 /home/USER/info/conky/.conky/amarok current}${alignr}${execi 1 /home/USER/info/conky/.conky/amarok total}
${color1}${execibar 1 /home/USER/info/conky/.conky/amarok progress}${else}$endif</code></pre></div><p>Cerise sur le gateau,<strong> la pochette de l&#039;album en cours de lecture</strong> qui s&#039;affiche sur le bureau, grace à l&#039;excellent CID (Conky Image Display), site http://cid.freezee.org/ (merci à l&#039;auteur pour ce projet)<br />Après avoir installé CID (paquets ubuntu disponibles, merci!!) et mis le fichier de configuration cid.conf dans /home/USER/conky, tout fonctionne sans problème.</p><br /><p><strong>Pour les flux RSS :</strong> (à noter que j&#039;ai des problèmes avec certains flux RSS, qui m&#039;obligent à utiliser plusieurs modes de récupération des flux)<br /><strong>/home/user/conky/.conkyrcrss</strong></p><div class="codebox"><pre class="vscroll"><code>alignment bottom_left
cpu_avg_samples 4
out_to_console no
use_xft yes
override_utf8_locale yes
uppercase no
xftfont Arial:size=8
own_window yes
own_window_type override
own_window_transparent yes
background yes
update_interval 60
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 10
border_width 1
gap_x 12
gap_y 36
use_spacer none
minimum_size 340
maximum_width 300
default_color 000000
#titres
color1 443a7b
#items
color2 000001

TEXT
${color1}${font Sans:style=Bold:pixelsize=10}Clicanoo
${color2}${font}${rss http://www.clicanoo.com/actu_rss.php 1 item_titles 10}

${color1}${font Sans:style=Bold:pixelsize=10}Témoignages
${color2}${font}${rss http://www.temoignages.re/backend.php3 1 item_titles 10}

${color1}${font Sans:style=Bold:pixelsize=10}Libération
${color2}${font}${execi 300 /home/USER/conky/.conky/rss/rss.sh http://www.liberation.fr/rss/laune 5 1}

${color1}${font Sans:style=Bold:pixelsize=10}Le Monde - Technologies
${color2}${font}${rss http://www.lemonde.fr/rss/sequence/0,2-651865,1-0,0.xml 1 item_titles 5}

${color1}${font Sans:style=Bold:pixelsize=10}Le Monde - Planète
${color2}${font}${rss http://www.lemonde.fr/rss/sequence/0,2-3244,1-0,0.xml 1 item_titles 5}

${color1}${font Sans:style=Bold:pixelsize=10}Ciel et espace
${color2}${font}${rss http://www.cieletespace.fr/rss.xml 1 item_titles 5}

${color1}${font Sans:style=Bold:pixelsize=10}Planet ubuntu
${color2}${font}${rss http://planet.ubuntu-fr.org/feed/rss2  1 item_titles 5}

${color1}${font Sans:style=Bold:pixelsize=10}Clubic
${color2}${font}${rss http://www.clubic.com/xml/news.xml 1 item_titles 5}</code></pre></div><p>Ce conkyrc_rss appelle donc un script que voici : <br /><strong>/home/USER/conky/.conky/rss/rss/sh</strong></p><div class="codebox"><pre><code># Usage Example       
#        ${execi 300 /home/youruser/scripts/conky-rss.sh http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss 4 2}

#RSS Setup - Don&#039;t change unless you want these values hard-coded!
uri=$1                            #URI of RSS Feed
lines=$2                        #Number of headlines
titlenum=$3                        #Number of extra titles

#Script start
#Require a uri, as a minimum
if [[ &quot;$uri&quot; == &quot;&quot; ]]; then
    echo &quot;No URI specified, cannot continue!&quot; &gt;&amp;2
    echo &quot;Please read script for more information&quot; &gt;&amp;2
else
    #Set defaults if none specified
    if [[ $lines == &quot;&quot; ]]; then lines=10 ; fi
    if [[ $titlenum == &quot;&quot; ]]; then titlenum=2 ; fi

    #The actual work
    curl -s --connect-timeout 30 $uri |\
#    iconv -f iso-8859-1 -t utf8 |\
    sed -e &#039;s/&lt;\/title&gt;/\n/g&#039; |\
    grep -o &#039;&lt;title&gt;.*&#039; |\
    sed -e &#039;s/&lt;title&gt;//&#039; |\
    head -n $(($lines + $titlenum)) |\
    tail -n $(($lines))
fi</code></pre></div><p>-------------<br />Reste les petits scripts pour faire fonctionner tout ça. Je les ai tous mis dans le répertoire /home/USER/conky/.conky (ne me demandez pas pourquoi...)</p><p>D&#039;abord le script qui va récupérer les infos de mon compte gmail :<br /><strong>/home/USER/conky/.conky.gmail.py</strong></p><div class="codebox"><pre class="vscroll"><code>import os
import string

#Enter your username and password below within double quotes
# eg. username=&quot;username&quot; and password=&quot;password&quot;
username=&quot;votre-identifiant-gmail-sans-le-@gmail.com&quot;
password=&quot;votre mot de passe - oui, on connait mieux en sécurité, mais bon ce n&#039;est qu&#039;un compte mail...&quot;

ttext=&quot;&quot;
title=&quot;&quot;
ntext=[]
nam=[]
mtext=[]
mes=[]
sum=[]
ema=[]
nom=&quot;&quot;
tot=0
rtot=0
com=&quot;wget -O - https://&quot;+username+&quot;:&quot;+password+&quot;@mail.google.com/mail/feed/atom --no-check-certificate&quot;
      
temp=os.popen(com)
msg=temp.read()
index = string.find(msg,&quot;&lt;title&gt;&quot;)
index2=string.find(msg,&quot;&lt;/title&gt;&quot;)  
title=msg[index+25:index2]
index=index2
index=string.find(msg,&quot;&lt;fullcount&gt;&quot;)
index2=string.find(msg,&quot;&lt;/fullcount&gt;&quot;)
fc=msg[index+11:index2]
if(int(fc)&gt;20):tot=20
else: tot=(int(fc))
rtot=tot

if (int(fc)==1):
   print &quot;Il y a &quot;+fc+&quot; nouveau message\n&quot;
elif rtot==0:
   print &quot;Il n&#039;y a pas de nouveau message.\n&quot;
elif rtot&gt;1:
   print &quot;Il y a &quot;+fc+&quot; nouveaux messages\n&quot;
else:
   print &quot;ERROR!!!&quot;
index=index2
i=-1
x=0
while index != -1:
   i=i+1
   index=string.find(msg,&quot;&lt;title&gt;&quot;,index)
   index2=string.find(msg,&quot;&lt;/title&gt;&quot;,index)
   if(i&lt;tot):
      mes.append(msg[index+7:index2])
   index=index2
   index=string.find(msg,&quot;&lt;summary&gt;&quot;,index)
   index2=string.find(msg,&quot;&lt;/summary&gt;&quot;,index)
   if(i&lt;tot):
      sum.append(msg[index+9:index2])
   index=index2
   index=string.find(msg,&quot;&lt;name&gt;&quot;,index)
   index2=string.find(msg,&quot;&lt;/name&gt;&quot;,index)
   if(i&lt;tot):
      nam.append(msg[index+6:index2])
   index=index2
   index=string.find(msg,&quot;&lt;email&gt;&quot;,index)
   index2=string.find(msg,&quot;&lt;/email&gt;&quot;,index)
   if(i&lt;tot):
      ema.append(msg[index+7:index2])
   index=index2
   if(index !=-1):
      if(i&lt;tot):
         if(len(nam[i])&gt;=15):
            nam[i]=nam[i][:12]+&quot;...&quot;
         if(len(mes[i])&gt;=30):
            mes[i]=mes[i][:27]+&quot;...&quot;
	 if(i&lt;5):
	    print nam[i]+&quot; -- &quot;+mes[i];</code></pre></div><p>Le script qui permet de faire tourner le conkyrcamarok :<br /><strong>/home/USER/conky/.conky/amarok</strong></p><div class="codebox"><pre><code>#!/bin/bash
# amaroK info display script by eirc &lt;eirc.eirc@gmail.com&gt;

case &quot;$1&quot; in

# Now Playing Info
playing) dcop amarok player nowPlaying ;;
artist) dcop amarok player artist ;;
title)  dcop amarok player title ;;
album)  dcop amarok player album ;;
year)   dcop amarok player year ;;
genre)  dcop amarok player genre ;;
current) dcop amarok player currentTime ;;
total) dcop amarok player totalTime ;;


progress)
    curr=`dcop amarok player trackCurrentTime`
    tot=`dcop amarok player trackTotalTime`
    if (( $tot )); then
        expr $curr \* 100  / $tot
    fi
    ;;

esac</code></pre></div><p>Pour connaître son ip : <br /><strong>/home/USER/conky/.conky/scriptip.sh</strong></p><div class="codebox"><pre><code>#!/bin/bash
# voir ip derriere routeur
cd $HOME/info/conky/.conky/
wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\&lt; -f 1 &gt; ip
cat ip</code></pre></div><p>Pour afficher les ports ouverts en cours<br /><strong>/home/USER/conky/.conky/ports.sh</strong></p><div class="codebox"><pre><code>#!/bin/bash
if [ ! $1 ]; then
 echo -e &quot;Aucun port n&#039;est ouvert en ce moment!&quot;
fi</code></pre></div><p>C&#039;est tout pour les scripts, ouf !</p><p><strong>Le fond d&#039;écran est travaillé avec The Gimp</strong>, notamment pour ajouter les fonds blancs sous les conky (simple rectangle blanc avec flou gaussien sur un calque transparent) et pour incruster les &quot;ubuntu en bas à droite (là, un masque de calque est nécessaire pour le texte &#039;ubuntu&#039;). </p><p>Voila ! Merci qui ? Merci conky ;-)<br />à+ / fabitux</p>]]></description>
			<author><![CDATA[dummy@example.com (fabitux)]]></author>
			<pubDate>Fri, 09 Jan 2009 15:07:28 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2339993#p2339993</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2333565#p2333565</link>
			<description><![CDATA[<p>J&#039;ai ajouté dans la dernière révision des boutons &quot;reset&quot; comme le demandait mathieuI pour tous les champs numériques. </p><p>Le téléchargement des pochettes est intégré à 50% à amarok, et j&#039;ai ajouté une option spécifique au SVN dans le fichier/panneau de conf pour ceux qui désirent la dernière révision de cid sans pour autant activer les fonctionnalités encore instables ^^</p><p>Après je ne peux pas non plus garantir que la svn ne comporte aucun bug ^^</p><p>[edit]<br />Ajout d&#039;une gestion des crashs (à voir si ça fonctionne ou pas ^^)<br />Cachage des configurations des options &quot;testing&quot; dans le panneau de conf pour ceux qui ne lance pas cid en testing</p><p>[edit2]<br />Ajout des traductions manquantes.<br />Refonte du panneau de configuration.</p><p>P.S. Si y&#039;a des warning à la compilation, c&#039;est plus ou moins normal <img src="http://forum.ubuntu-fr.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> Ne vous en faites pas.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jackass059)]]></author>
			<pubDate>Tue, 06 Jan 2009 23:58:00 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2333565#p2333565</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2330976#p2330976</link>
			<description><![CDATA[<p>As-tu essayer de faire une recherche dans le dossier /sys avec comme mot clé &quot;temp[123]_input&quot; ?<br />Ca devrait te renvoyer leurs emplacement, ensuite, tu n&#039;as plus qu&#039;à vérifier les correspondances avec la commande &quot;sensors&quot; (cf doc à lm-sensors).</p><p>Pour les valeurs du script, je pense que ce sont les miennes (je devrais d&#039;ailleurs commenter le script...). Il te faut donc adapter avec celle que tu penses les meilleurs:</p><div class="codebox"><pre><code>temp1)
temp=`cat /sys/devices/pci0000:00/0000:00:1f.3/i2c-adapter/i2c-0/0-002d/temp1_input`
curr=`expr $temp - 15000`   #Je retranche les valeurs les plus petites (un peu en dessous de la température au démarrage) pour éviter que la barre  soit en permanence à plus de 75%
    if (( $curr )); then
    expr $curr / 500         #Je retranche la valeur maximale qui ne sera jamais atteinte (du moins je l&#039;espère ^^&#039;).Ici 500=temp max (soit 65°) - temp min (retranchée précédemment, soit 15°) *10
    fi
;;</code></pre></div><p>Voila!</p><p>Si tu as également repris le script couleurbarre, il faut mettre les mêmes fichiers temps</p><p>Edit j&#039;ai corrigé une petite erreur</p>]]></description>
			<author><![CDATA[dummy@example.com (Levi59)]]></author>
			<pubDate>Tue, 06 Jan 2009 07:55:27 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2330976#p2330976</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2330864#p2330864</link>
			<description><![CDATA[<p>en faite pour les température il faut que j&#039;adapte ce scritp</p><p>le problème c&#039;est que je n&#039;ai pas les même répertoire</p><div class="quotebox"><blockquote><div><p>xav@boutiknline:/sys/devices/pci0000:00/0000:00:1f.3$ ls<br />broken_parity_status&#160; enable&#160; &#160; &#160; msi_bus&#160; &#160; resource4&#160; &#160; &#160; &#160; &#160;uevent<br />class&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;irq&#160; &#160; &#160; &#160; &#160;power&#160; &#160; &#160; subsystem&#160; &#160; &#160; &#160; &#160;vendor<br />config&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; local_cpus&#160; resource&#160; &#160;subsystem_device<br />device&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; modalias&#160; &#160; resource0&#160; subsystem_vendor<br />xav@boutiknline:/sys/devices/pci0000:00/0000:00:1f.3$</p></div></blockquote></div><div class="quotebox"><blockquote><div><p>#!/bin/bash</p><p>case &quot;$1&quot; in</p><p># Now Playing Info<br />current) exec expr `cat /sys/devices/pci0000:00/0000:00:1f.3/i2c-adapter/i2c-0/0-002d/temp2_input` \/ 1000 ;;<br />total) exec expr `cat /sys/devices/pci0000:00/0000:00:1f.3/i2c-adapter/i2c-0/0-002d/temp2_max` \/ 1000 ;;</p><br /><p>temp2)<br />temp=`cat /sys/devices/pci0000:00/0000:00:1f.3/i2c-adapter/i2c-0/0-002d/temp2_input`<br />curr=`expr $temp - 20000`<br />&#160; &#160; if (( $curr )); then<br />&#160; &#160; expr&#160; $curr / 450<br />&#160; &#160; fi<br />;;</p><p>temp1)<br />temp=`cat /sys/devices/pci0000:00/0000:00:1f.3/i2c-adapter/i2c-0/0-002d/temp1_input`<br />curr=`expr $temp - 15000`<br />&#160; &#160; if (( $curr )); then<br />&#160; &#160; expr $curr / 500<br />&#160; &#160; fi<br />;;</p><p>temp3)<br />temp=`cat /sys/devices/pci0000:00/0000:00:1f.3/i2c-adapter/i2c-0/0-002d/temp3_input`<br />curr=`expr $temp - 15000`<br />&#160; &#160; if (( $curr )); then<br />&#160; &#160; expr $curr / 1120<br />&#160; &#160; fi</p><br /><p>esac</p></div></blockquote></div><p>Comment je dois l&#039;adapter ?</p>]]></description>
			<author><![CDATA[dummy@example.com (x@v)]]></author>
			<pubDate>Tue, 06 Jan 2009 02:21:47 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2330864#p2330864</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2330640#p2330640</link>
			<description><![CDATA[<p>j&#039;ai une coquille:<br />il ne m&#039;affiche que l&#039;ip, mais le reste ne fonctionne pas...<br />[img][/img]</p><div class="quotebox"><blockquote><div><p>background&#160; &#160; &#160; &#160; no<br />update_interval&#160; &#160; &#160; &#160; 1.0<br />double_buffer&#160; &#160; &#160; &#160; yes</p><p>use_xft&#160; &#160; &#160; &#160; &#160; &#160; yes<br />override_utf8_locale<br />xftfont&#160; &#160; &#160; &#160; &#160; &#160; Sans:size=8<br />xftalpha&#160; &#160; &#160; &#160; 0.8</p><p>own_window&#160; &#160; &#160; &#160; yes<br />own_window_transparent&#160; &#160; yes<br />#own_window_type&#160; &#160; &#160; &#160; override<br />own_window_hints&#160; &#160; undecorated,below,sticky,skip_taskbar,skip_pager<br />#on_bottom&#160; &#160; &#160; &#160; yes</p><p>minimum_size&#160; &#160; &#160; &#160; 280 5<br />draw_shades&#160; &#160; &#160; &#160; no<br />draw_outline&#160; &#160; &#160; &#160; no<br />draw_borders&#160; &#160; &#160; &#160; no<br />draw_graph_borders&#160; &#160; yes<br />stippled_borders&#160; &#160; 0<br />border_margin&#160; &#160; &#160; &#160; 3<br />border_width&#160; &#160; &#160; &#160; 0</p><p>default_color&#160; &#160; &#160; &#160; white<br />default_shade_color&#160; &#160; black<br />default_outline_color&#160; &#160; black</p><p>alignment bottom_right<br />gap_x&#160; &#160; &#160; &#160; &#160; &#160; 6<br />gap_y&#160; &#160; &#160; &#160; &#160; &#160; 48</p><p>no_buffers&#160; &#160; &#160; &#160; yes</p><br /><p>#${stippled_hr }<br />#<br />#${color #e49c16}${alignc}Port(s) ouvert(s)&#160; ${color red}${tcp_portmon 1 65535 count}<br />#${color white} ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 lservice 0}<br />#${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 lservice 1}<br />#${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 lservice 2}<br />#${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 lservice 3}<br />#${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 lservice 4}<br />#${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 lservice 5}<br />#${endif}</p><br /><p>TEXT<br />$stippled_hr</p><p>${color #e49c16}Réseau : <br />&#160; &#160; ${color #FFFFFF}IP Locale : ${addr wlan0}<br />&#160; &#160; ${color #FFFFFF}IP Publique : ${exec expr `cat $HOME/.conky/ip`}<br />${color #e49c16}Download :${color white} ${downspeed wlan0} k/s${color white} ${offset 80}${color #e49c16}Upload:${color white} ${upspeed wlan0} k/s<br />${color #FFFFFF}${downspeedgraph wlan0 32,135 8b4b0b ffc11f}&#160; ${color #FFFFFF}${upspeedgraph wlan0 32,135 ffc11f 8b4b0b}<br />${color #e49c16}Qualitée du signal: ${color white}${wireless_link_qual wlan0} % </p><br /><p>$stippled_hr</p><p>${color #e49c16}Processus$alignr${color}${color #D50004}(%)&#160; PID&#160; &#160; CPU&#160; &#160; MEM ${color}<br />${color #FFFFFF}${top name 1} $alignr${top pid 1} ${top cpu 1} ${top mem 1}<br />${color #CACACA}${top name 2} $alignr${top pid 2} ${top cpu 2} ${top mem 2}<br />${color #A2A2A2}${top name 3} $alignr${top pid 3} ${top cpu 3} ${top mem 3}<br />${color #787878}${top name 4} $alignr${top pid 4} ${top cpu 4} ${top mem 4}</p><p>${color #e49c16}Mémoire$alignr${color}${color #D50004}(%)&#160; PID&#160; &#160; MEM&#160; &#160; CPU ${color}<br />${color #FFFFFF}${top_mem name 1} $alignr${top_mem pid 1} ${top_mem mem 1} ${top_mem cpu 1}<br />${color #CACACA}${top_mem name 2} $alignr${top_mem pid 2} ${top_mem mem 2} ${top_mem cpu 2}<br />${color #A2A2A2}${top_mem name 3} $alignr${top_mem pid 3} ${top_mem mem 3} ${top_mem cpu 3}<br />${color #787878}${top_mem name 4} $alignr${top_mem pid 4} ${top_mem mem 4} ${top_mem cpu 4}</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (x@v)]]></author>
			<pubDate>Mon, 05 Jan 2009 23:08:39 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2330640#p2330640</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2330105#p2330105</link>
			<description><![CDATA[<p>Eh oui, les mauvaises versions de fichier de conf peuvent faire bugguer <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /> <br />J&#039;avais essayé de maintenir la compatibilité, mais bon, si faut ajouter des conditions pour chaque version ça deviendrait ingérable.</p><p>Sinon, ceux qui seraient pas encore passer à la svn, ou qui veulent la version stable, y&#039;a un petit script qui s&#039;occupe de tout à votre place <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Une doc pour le svn : <br />http://cid.freezee.org/?q=node/18</p><p>et pour les autres, il vous suffit de télécharger le script, de le rendre executable, de l&#039;executer et de répondre à la question qu&#039;il vous pose.</p><p>il se trouve <a href="http://cid.freezee.org/pub/download.sh">ici</a></p><p>[edit]<br />Voilà, le téléchargement des pochettes manquantes est intégré en version d&#039;évaluation. Ça ne fonctionne qu&#039;avec rhythmbox parce que amarok me renvoie toujours une uri de fichier à afficher <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /><br />Pour l&#039;instant je stocke l&#039;image dans tmp, c&#039;est en attendant vos retour sur la pertinence des téléchargements ^^</p>]]></description>
			<author><![CDATA[dummy@example.com (Jackass059)]]></author>
			<pubDate>Mon, 05 Jan 2009 20:28:51 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2330105#p2330105</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327955#p2327955</link>
			<description><![CDATA[<p>bien vu ça marche . Je n&#039;avais pas du tout pensé à ça comme j&#039;ai réinstallé complétement ubuntu il y a quelques jours, j&#039;ai cependant copier .config <br />Merci beaucoup</p>]]></description>
			<author><![CDATA[dummy@example.com (brizou)]]></author>
			<pubDate>Sun, 04 Jan 2009 22:57:04 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327955#p2327955</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327944#p2327944</link>
			<description><![CDATA[<p>peut-être que tu utilisais cid avant et que ton fichier de configuration est incompatible ...<br />déplaces-le pour voir <img src="http://forum.ubuntu-fr.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Кຼزດ)]]></author>
			<pubDate>Sun, 04 Jan 2009 22:47:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327944#p2327944</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327938#p2327938</link>
			<description><![CDATA[<p>Voilà le resultat </p><div class="codebox"><pre><code>clement@clement-desktop:~$ cid -d
info    :  (cid-config.c:cid_read_config:198)  
  ** INFO: Reading file : /home/clement/.config/cid.conf

warning :  (cid.c:cid_intercept_signal:87)  
  
** (cid:29632): WARNING **: Attention : cid has crashed (sig 11).
It will be restarted now.

info    :  (cid-config.c:cid_read_config:198)  
  ** INFO: Reading file : /home/clement/.config/cid.conf

Segmentation fault</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (brizou)]]></author>
			<pubDate>Sun, 04 Jan 2009 22:45:34 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327938#p2327938</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327921#p2327921</link>
			<description><![CDATA[<p>Salut Asky ! Ca fait plaisir de te voir là, j&#039;ai vu ton conky, balaise ! <img src="http://forum.ubuntu-fr.org/img/smilies/cool.png" width="15" height="15" alt="cool" /><br />Si j&#039;ai des questions je saurai à qui m&#039;adresser... <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Slystone)]]></author>
			<pubDate>Sun, 04 Jan 2009 22:36:49 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327921#p2327921</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327920#p2327920</link>
			<description><![CDATA[<p>En effet, c&#039;est dommage ^^°</p><p>Tu pourrais le lancer avec l&#039;option -d pour avoir un peu plus de détails ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Jackass059)]]></author>
			<pubDate>Sun, 04 Jan 2009 22:36:04 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327920#p2327920</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327870#p2327870</link>
			<description><![CDATA[<p>tiens c&#039;est dommage je viens de l&#039;installer mais quand je le lance j&#039;ai ça </p><div class="codebox"><pre><code>clement@clement-desktop:~$ cid
warning :  (cid.c:cid_intercept_signal:87)  
  
** (cid:28695): WARNING **: Attention : cid has crashed (sig 11).
It will be restarted now.

Segmentation fault</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (brizou)]]></author>
			<pubDate>Sun, 04 Jan 2009 22:18:20 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327870#p2327870</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Conky : Postez vos conkyrc ou certaines parties intéressantes]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327481#p2327481</link>
			<description><![CDATA[<p>C&#039;est normal, c&#039;est pour ça que cette option est pas activée par défaut.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jackass059)]]></author>
			<pubDate>Sun, 04 Jan 2009 20:10:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=2327481#p2327481</guid>
		</item>
	</channel>
</rss>
