Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#2301 Le 13/06/2010, à 09:20

Compte anonymisé

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Levi59 a écrit :

@shamanphenix

Et sans le % de "$RANDOM%", est ce que ça marche?

Dans ce cas là je n'ai plus d'erreur en console, mais rien ne s'affiche...

conky -c '/home/shamanphenix/.conky/conkyrc_diaporama' 
Conky: /home/shamanphenix/.conky/conkyrc_diaporama: 23: no such configuration: 'border_margin'
Conky: desktop window (22000a9) is subwindow of root window (101)
Conky: window type - override
Conky: drawing to created window (0x5200001)
Conky: drawing to double buffer

#2302 Le 13/06/2010, à 10:24

Levi59

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

$RANDOM% renvoit une valeur du type NUM% et ensuite tu fait une addition avec ces caractères... Comme c'est pas un chiffre, le script comprend pas!

Pourquoi tu utilise cette formule? (organisation de ton fichier image?)

En plus, à moins que ton diaporama soit fait de valeurs, tu n'afficheras rien ainsi.
Il faut spécifier à conky qu'il s'agit d'images avec la balise du même nom. (A moins bien sûr que tu soit certain que ce que tu utilises fonctionne...)

Hors ligne

#2303 Le 13/06/2010, à 16:48

Compte anonymisé

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Merci de ton aide, je suis parti sur tout autre chose, qui reste d'ailleurs à améliorer. smile

Une toute petite question, messieurs dames : connaissez-vous un script Bash permettant d'obtenir le nombre d'éléments non lus de Google Reader ?

#2304 Le 13/06/2010, à 16:58

JB-home

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

peut-être là
http://aur.archlinux.org/packages.php?ID=29759

où ici
http://newyork.ubuntuforums.org/showthread.php?t=837385&page=32

Hors ligne

#2305 Le 13/06/2010, à 18:21

Compte anonymisé

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Merci, mais c'est bien trop. conkyGoogleReader.py est très complet, et je ne veux que le nombre d'articles non lus.

Sinon, je me casse les dents sur un autre problème : comment limiter la taille des messages récupérés depuis les flux RSS ?
J'en affiche quelques uns, mais c'est beaucoup trop large par rapport à ce que je voudrais :

# Locale, fonts and font sizes
use_xft yes
# xftfont Droid Sans:size=9
xftfont UbuntuTitling-Bold.ttf:size=12
override_utf8_locale yes

# Conky performance
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 2048

# Execute it in its own window
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Borders, margins
draw_borders no
border_margin 1

# Own window color
own_window_colour 393834

# Font colors
default_color B7B2AD
#default_color EFEEED

# Text shadows
draw_shades no

# Header colors
color0 DD3A21

# Minimum dimensions
minimum_size 350 750

# Conky positioning
alignment top_left
gap_x -1
gap_y 60

# Output
TEXT
${image ~/.conky/pictures/frame_left.png -p 0,0 -s 350x750}
${voffset 10}${font Droid Sans:style=Bold:size=12}${color0}${goto 128}À la une${font}${color}

Le Monde :
${rss http://www.lemonde.fr/rss/une.xml 1 item_title 0}
${rss http://www.lemonde.fr/rss/une.xml 1 item_title 1}
${rss http://www.lemonde.fr/rss/une.xml 1 item_title 2}
${rss http://www.lemonde.fr/rss/une.xml 1 item_title 3}
${rss http://www.lemonde.fr/rss/une.xml 1 item_title 4}

Framasoft :
${rss http://framablog.org/index.php/feed/rss2 1 item_title 0}
${rss http://framablog.org/index.php/feed/rss2 1 item_title 1}
${rss http://framablog.org/index.php/feed/rss2 1 item_title 2}
${rss http://framablog.org/index.php/feed/rss2 1 item_title 3}
${rss http://framablog.org/index.php/feed/rss2 1 item_title 4}

April :
${rss http://planete.april.org/rss20.xml 1 item_title 0}
${rss http://planete.april.org/rss20.xml 1 item_title 1}
${rss http://planete.april.org/rss20.xml 1 item_title 2}
${rss http://planete.april.org/rss20.xml 1 item_title 3}
${rss http://planete.april.org/rss20.xml 1 item_title 4}

Da Linux French Page :
${rss http://linuxfr.org/backend/news/rss20.rss 1 item_title 0}
${rss http://linuxfr.org/backend/news/rss20.rss 1 item_title 1}
${rss http://linuxfr.org/backend/news/rss20.rss 1 item_title 2}
${rss http://linuxfr.org/backend/news/rss20.rss 1 item_title 3}
${rss http://linuxfr.org/backend/news/rss20.rss 1 item_title 4}

Planet libre :
${rss http://www.planet-libre.org//feed.php?type=rss 1 item_title 0}
${rss http://www.planet-libre.org//feed.php?type=rss 1 item_title 1}
${rss http://www.planet-libre.org//feed.php?type=rss 1 item_title 2}
${rss http://www.planet-libre.org//feed.php?type=rss 1 item_title 3}
${rss http://www.planet-libre.org//feed.php?type=rss 1 item_title 4}

Planet Ubuntu-FR
${rss http://planet.ubuntu-fr.org/feed/rss2 1 item_title 0}
${rss http://planet.ubuntu-fr.org/feed/rss2 1 item_title 1}
${rss http://planet.ubuntu-fr.org/feed/rss2 1 item_title 2}
${rss http://planet.ubuntu-fr.org/feed/rss2 1 item_title 3}
${rss http://planet.ubuntu-fr.org/feed/rss2 1 item_title 4}

Dernière modification par Compte anonymisé (Le 13/06/2010, à 20:11)

#2306 Le 13/06/2010, à 21:10

Compte anonymisé

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Pour le script, c'est trouvé !
Pour ceux que ça intéresse :

#!/bin/sh
SID=$(wget --output-document=- --post-data 'Email=user@googlemail.com&Passwd=pwd' -q https://www.google.com/accounts/ClientLogin | grep -w SID);
unreadcountxml=$(wget --no-cookies --header "Cookie: $SID" --output-document=- -q http://www.google.com/reader/api/0/unread-count)
unreadcount=$(echo $unreadcountxml | awk 'BEGIN {RS="<object>";FS="count\">";sum=0} ; /reading-list/ {print $2}' | cut -d'<' -f1);
echo "$unreadcount"

Source

#2307 Le 14/06/2010, à 09:37

jschott

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Fenouille84 a écrit :

Salut jschott

Il existe une méthode beaucoup plus simple pour afficher les "choses à faire".
Tu notes toutes tes choses dans un même fichier : $HOME/choses_a_faire
Et ensuite, il te suffit d'afficher ce fichier dans conky :

${exec cat $HOME/choses_a_faire}

Avantages :
  * économise l'utilisation d'un script
  * facilite grandement l'organisation des choses à faire
  * pratique : un simple raccourci clavier pour ouvrir le fichier à éditer et le tour est joué wink

Non de d'là !
Merci Fenouille84 smile
Je simplifie tout de suite !

Hors ligne

#2308 Le 14/06/2010, à 17:24

Compte anonymisé

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Fenouille84 a écrit :

Salut jschott

Il existe une méthode beaucoup plus simple pour afficher les "choses à faire".
Tu notes toutes tes choses dans un même fichier : $HOME/choses_a_faire
Et ensuite, il te suffit d'afficher ce fichier dans conky :

${exec cat $HOME/choses_a_faire}

Avantages :
  * économise l'utilisation d'un script
  * facilite grandement l'organisation des choses à faire
  * pratique : un simple raccourci clavier pour ouvrir le fichier à éditer et le tour est joué wink

Oui, c'est aussi ce que j'ai fais, puis j'ai rajouté un alias dans mon ~/.bashrc :

alias todo="gedit ~/'Ubuntu One'/ToDo.txt"

#2309 Le 14/06/2010, à 18:48

lafayette

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonjour,

Je suis sous Lucid et j'essaye à nouveau la commande scroll de conky, eh bien le scroll ne scroll plus .... La commande suivante affiche bien le texte du fichier mais de manière fixe.
${color a4a4a4}${font cure:pixelsize=8}${scroll 200 1 ${exec cat $HOME/todo.txt}}

J'ai fait l'essai avec un flux rss c'est la même chose.

Qqun aurait une idée?
Merci

Hors ligne

#2310 Le 14/06/2010, à 18:55

gogy

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Salut à tous !

Connaissez-vous une astuce pour limiter le nombre de caractère dans le nom des processus appelé par la fonction ${top name 1} dans conky ?


On n'est pas des manchots quand on sait remplacer une fenêtre !
Intel® Core™2 Duo CPU E6850 @ 3.00GHz × 2 / RAM : 2,0 Gio
Lucid 10.04 / Precise 12.04

Hors ligne

#2311 Le 14/06/2010, à 19:19

chepioq

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

gogy a écrit :

Salut à tous !

Connaissez-vous une astuce pour limiter le nombre de caractère dans le nom des processus appelé par la fonction ${top name 1} dans conky ?

Tu peux utiliser top_name_width dans le setting (avant Text)
par exemple

top_name_width 3

te donneras que les quatres premières lettres (voir ici http://conky.sourceforge.net/config_settings.html

Dernière modification par chepioq (Le 14/06/2010, à 19:21)


Tout est dans tout et réciproquement....

Hors ligne

#2312 Le 14/06/2010, à 22:40

gogy

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Ouah ! Merci chepioq !
Exactement ce que je cherchais. En fait, j'avais encore un chevauchement des noms avec les PID car j'avais mis un offset sur les PID.
J'ai viré l'offset et tout est rentré dans l'ordre big_smile


On n'est pas des manchots quand on sait remplacer une fenêtre !
Intel® Core™2 Duo CPU E6850 @ 3.00GHz × 2 / RAM : 2,0 Gio
Lucid 10.04 / Precise 12.04

Hors ligne

#2313 Le 14/06/2010, à 22:41

ferreol

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

allez je poste mon conky de bureau sur mon usb live persistant:
capturee.th.png
config:

# Configuration de Conky
#
# la liste des variables a été enlevée de ce fichier en faveur
# de la documentation.
# Visitez http://conky.sf.net pour une liste à jour.

# La "zone de texte" est la fenêtre Conky (et non uniquement le texte).

# Mettez yes si vous voulez que Conky soit intégré à l'arrière plan
background yes

# Police de X quand Xft est désactivé, vous pouvez en choisir une avec le programme xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Utiliser Xft?
use_xft yes

# Police de Xft quand Xft est activé
xftfont Radio Space:size=10

# Texte alpha quand Xft est utilisé
xftalpha 0.8

# MPD hôte/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Tout imprimer vers console ?
out_to_console no

# Boîte mail (? : mail spool)
mail_spool $MAIL

# Intervalles de mises à jour en secondes
update_interval 2

# Ceci est le nombre de fois que Conky va se mettre à jour avant de quitter
# Mettre à zéro pour faire tourner en permanence
total_run_times 0

# Créer sa propre fenêtre au lieu d'utiliser le bureau (requis dans Nautilus) ?
own_window yes

# Si own_window est sur yes, vous pouvez utiliser les options normal, desktop ou override
own_window_type normal

# Utiliser le fond transparent avec own_window ?
own_window_transparent yes

# Si own_window_transparent est sur no, vous pouvez changer la couleur de fond ici
own_window_colour hotpink

# Si own_window est sur yes, ces options du gestionnaire de fenêtre peuvent être utilisées
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Utiliser le double buffering (réduit le scintillement, peut ne pas fonctionner avec tout le monde) ?
double_buffer yes

# Taille minimum de la zone de texte
minimum_size 150 100

# Dessiner les ombres ?
draw_shades no

# Dessiner les contours ?
draw_outline no

# Dessiner les bordures autour du texte ?
draw_borders no

# Dessiner les bordures autour des graphes ?
draw_graph_borders no

# Longueur des traits des séparateurs
stippled_borders 10

# Marge entre la bordure et le texte
border_margin 4

# Épaisseur de la bordure
border_width 0

# Couleur par défaut et couleur de la bordure
default_color white
default_shade_color black
default_outline_color black

# Alignement du texte, les autres options possibles sont expliquées (sûrement sur le site web)
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment top_right
#alignment none

# Espace entre les bords d'écran et le texte
# same thing as passing -x at command line (aucune idée de comment traduire ceci)
gap_x 10
gap_y 35

# Soustraire les buffers du système de fichiers de la mémoire utilisée (? :subtract file system buffers from used memory) ?
no_buffers no

# Mettez yes si vous voulez que tout le texte soit en majuscules
uppercase no

# Nombre d'échantillons CPU pour faire la moyenne
# Mettre sur 1 pour désactiver la moyenne
cpu_avg_samples 2

# Nombre d'échantillons réseau pour faire la moyenne
# Mettre sur 1 pour désactiver la moyenne
net_avg_samples 2

# Forcer UTF8 ? À noter que le support UTF8 requiert XFT
override_utf8_locale yes

# Ajouter des espaces pour empêcher les objets de partir n'importe où ? Ceci affecte seulement certains objets
use_spacer none

# Autoriser chaque moniteur de port à suivre au plus tant de connections (si 0 ou not est mis, le nombre par défaut est 256) ?
#max_port_monitor_connections 256

# Nombre maximum d'objets spéciaux, ex : polices, décalages, alignements, etc. Pas bien compris ça moi...
#max_specials 512

# Taille maximum du buffer utilisateur pour le texte, c'est à dire sous la ligne TEXT
#max_user_text 16384

# Intervalle de mise à jour pour le démon du lecteur de musique, ex : mpd, audacious
#music_player_interval 3

# La variable est donnée soit au format $variable soit au format ${variable}. Cette dernière
# permet les caractères justes après la variable et doit être utilisée dans les
# trucs du réseau à cause d'un argument.

# Ce qui est placé après 'TEXT' apparaîtra à l'écran.

TEXT
${color #979797}${sysname}
${color #979797}${font :size=20}${kernel}
${color #979797}${font StyleBats:size=20}o  ${color #979797}${font} Uptime: ${color #979797}${uptime}
${color #979797}${font StyleBats:size=20}A  ${color #979797}${font} CPU: ${color #979797}${cpu cpu1}%  ${freq_g cpu} GHz CPU2:${cpu cpu2}%  ${freq_g cpu2}
${color #979797}${font StyleBats:size=20}D  ${color #979797}${font} Used: ${color #979797}$mem  Free :$memfree
${color #979797}${font StyleBats:size=20}j  ${font} Disk: ${color #979797}${fs_free /}/${fs_size /}
${color #979797}${font StyleBats:size=20}T  ${color #979797}${font} T°:${acpitemp}°C Hd T°: ${hddtemp}°C
${color #979797}${font StyleBats:size=20}4  ${color #979797}${font} Lan: ${color #979797}${addr wlan0}${color}${if_existing /proc/net/route wlan0}   Wan: ${execi 3600 wget www.whatismyip.com/automation/n09230945.asp -O - -q} ${else} Arg, déconnecté yikes ${endif}
${color #979797}${font StyleBats:size=20}5  ${color #979797}${font} Down:  ${totaldown wlan0}    down: ${downspeed wlan0} k/s
${color #979797}${font StyleBats:size=20}5  ${color #979797}${font} Up:  ${totalup wlan0}    down: ${upspeed eth0} k/s
${upspeedgraph eth0 15} ${alignr}${upspeedgraph eth0 15}
${downspeedgraph wlan0 15} ${alignr}${upspeedgraph wlan0 15}















${alignr}${offset -32}${color #727272}PID %CPU %MEM

${alignr}${offset -32}${color #727272}${top name 1}${color #979797} ${top pid 1} ${top cpu 1} ${top mem 1}
${alignr}${offset -32}${color #727272}${top name 2}${color #979797} ${top pid 2} ${top cpu 2} ${top mem 2}
${alignr}${offset -32}${color #727272}${top name 3}${color #979797} ${top pid 3} ${top cpu 3} ${top mem 3}
${alignr}${offset -32}${color #727272}${top name 4}${color #979797} ${top pid 4} ${top cpu 4} ${top mem 4}
${alignr}${offset -32}${color #727272}${top name 5}${color #979797} ${top pid 5} ${top cpu 5} ${top mem 5}

${alignr}${offset -32}${color #727272} METZ Temp°: ${execi 300 /home/ubuntu/weather.sh "EUR|FR|FR015|Metz"}

Hors ligne

#2314 Le 15/06/2010, à 11:05

Scriptor

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Salut,

Honnetement,je ne les ai pas tous regarde, mais je suis tombe sur celui de ferreol, que je trouve assez sympa.

Perso j'utilise aussi conky, mais plus spécifiquement conky-colors, il serait donc inutile de poster le mien.


Je sais que je ne saurais jamais tout.
Config
Ubuntu 10.04 64bits T5500

Hors ligne

#2315 Le 15/06/2010, à 18:53

Zarvox

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Cela fait déjà quelques fois que je poste sur ce forum et je ne vous est pas encore montré mon conky.

Voilà oubli réparé :
Ow6DJ.jpg

Il est simple mais fonctionnel smile

conkyrc :

# Total number of times for Conky to update before quitting. 0 = forever 
total_run_times 0

# Print text to stdout
out_to_console no

# Buffer management, avoid blinking
double_buffer yes
no_buffers yes
text_buffer_size 2048

# refresh rate
update_interval 1

# samples for rate average
cpu_avg_samples 4
net_avg_samples 2

# size and posiiton
alignment bottom_right
minimum_size 320 5
maximum_width 320
gap_x 10
gap_y 10

# shading and framming
draw_shades yes
draw_outline no
draw_borders no
border_width 1
#border_margin 4

# should Conky fork in the background
background yes

# window type
own_window yes
own_window_argb_visual yes
own_window_type normal # normal / override / desktop
own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes

#font management
use_xft yes
xftalpha .1
override_utf8_locale yes # force UTF8

# font face
xftfont URW Gothic L:size=9
uppercase no

# Adds spaces to keep things from moving about.
# Works only with fixed width fonts
use_spacer right

# Colors
default_color FFFFFF
default_shade_color 333333
default_outline_color black

color1 A2ADAB
color2 34514D
color3 EEEEEE
color4 DDDDDD
color5 CCCCCC
color6 BBBBBB



TEXT
${color1}${font URW Chancery L:size=18}Ordinateur ${color2}${hr}${font}

${offset 20}${color}${execi 86400 cat /etc/lsb-release|grep ID|cut -d= -f2} ${color1}${execi 86400 cat /etc/lsb-release|grep REL|cut -d= -f2}${color} "${color1}${execi 86400 cat /etc/lsb-release|grep NAME|cut -d= -f2}${color}"
${offset 20}${color}$sysname ${color1}$kernel ${color}on ${color1}$machine
${offset 20}${color1}${nodename}${color} fonctionne depuis ${color1}$uptime${color}

${color1}${font URW Chancery L:size=18}Réseau ${color2}${hr}${font}

${offset 20}${color1}${color1}lan: ${color}${addr eth0}    ${color1}${alignr}${offset -20}wan:${color}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}

${offset 20}${color1}Réception :${alignr}${offset -20}Emission :
${offset 20}${color}${downspeed eth0} ${color3}ko/s${color}${totaldown eth0}${alignr}${offset -20}${color1}${color}${color}${upspeed eth0} ${color3}ko/s${color}  ${color}${totalup eth0}
${offset 20}${color2}${downspeedgraph eth0 16,130 582D10 A2ADAB}${alignr}${offset -20}${upspeedgraph eth0 16,130 582D10 A2ADAB}

${color1}${font URW Chancery L:size=18}Processeur ${color2}${hr}${font}

${alignr}${offset -20}${color1}Process : ${color}$processes   ${color1}Running : ${color}$running_processes${color}

${offset 20}${color1}CPU : ${color}${freq_g} G Hz ${color1}soit : ${color} ${cpu cpu1}%${alignr}${offset -20}${voffset -10}${color2}${cpugraph 20,128 582D10 A2ADAB}
${alignr}${offset -20}${color1}PID %CPU %MEM
${offset 20}${color1}${top name 1}${alignr}${offset -20}${color} ${top pid 1} ${top cpu 1} ${top mem 1}
${offset 20}${color1}${top name 2}${alignr}${offset -20}${color3} ${top pid 2} ${top cpu 2} ${top mem 2}
${offset 20}${color1}${top name 3}${alignr}${offset -20}${color4} ${top pid 3} ${top cpu 3} ${top mem 3}
${offset 20}${color1}${top name 4}${alignr}${offset -20}${color5} ${top pid 4} ${top cpu 4} ${top mem 4}
${offset 20}${color1}${top name 5}${alignr}${offset -20}${color6} ${top pid 5} ${top cpu 5} ${top mem 5}

${color1}${font URW Chancery L:size=18}Mémoire ${color2}${hr}${font}

${offset 20}${color1}RAM : ${color}${memperc} % ${alignr}${color1}[${color}$mem${color1} / ${color3}$memfree${color1} / ${color4}$memmax${color1}]
${offset 20}${color2}${membar}
${offset 20}${color1}SWAP : ${color}${memperc} % ${alignr}${color1}[${color}$swap${color1} / ${color3}$swapfree${color1} / ${color4}$swapmax${color1}]
${offset 20}${color2}${swapbar}
${alignr}${offset -32}${color1}PID %CPU %MEM
${offset 20}${color1}${top_mem name 1}${alignr}${offset -20}${color} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${offset 20}${color1}${top_mem name 2}${alignr}${offset -20}${color3} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${offset 20}${color1}${top_mem name 3}${alignr}${offset -20}${color4} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${offset 20}${color1}${top_mem name 4}${alignr}${offset -20}${color5} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${offset 20}${color1}${top_mem name 5}${alignr}${offset -20}${color6} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}

${color1}${font URW Chancery L:size=18}Disques ${color2}${hr}${font}

${offset 20}${color2}/${color1}     : ${color}${fs_used_perc /} % ${alignr}${color1}[${color}${fs_used /}${color1}/  ${color3}${fs_free /}${color1}/ ${color4}${fs_size /}${color1}]
${offset 20}${color2}${fs_bar 4 /}

${color1}${font URW Chancery L:size=18}Température et ventilateurs ${color2}${hr}${font}

${offset 20}${color1}CM  : ${color}${exec sensors | grep temp1 | cut -c15-16 | sed '/^$/d'}°C${offset 25}${color1}CPU : ${color}${exec sensors | grep temp2 | cut -c15-16 | sed '/^$/d'}°C${offset 25}${color1}GPU : ${color}${nvidia temp}°C
${offset 20}${voffset 10}${color1}Ventilateur : ${color}${exec sensors | grep fan1 | awk '{ print $2}'} RPM${offset 25}${color1}Disque dur  : ${alignc}${color}${hddtemp /dev/sda}°C${color}

${color2}${hr}

.conkyrc2

# Total number of times for Conky to update before quitting. 0 = forever
total_run_times 0

# Print text to stdout
out_to_console no

# Buffer management, avoid blinking
double_buffer yes
no_buffers yes
text_buffer_size 2048

# refresh rate
update_interval 1

# samples for rate average
cpu_avg_samples 4
net_avg_samples 2

# size and posiiton
alignment bottom_left
minimum_size 320 5
maximum_width 320
gap_x 80
gap_y 100

# shading and framming
draw_shades yes
draw_outline no
draw_borders no
border_width 1
#border_margin 4

# should Conky fork in the background
background yes

# window type
own_window yes
own_window_argb_visual yes
own_window_type normal # normal / override / desktop
own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes

#font management
use_xft yes
xftalpha .1
override_utf8_locale yes # force UTF8

# font face
xftfont URW Gothic L:size=9
uppercase no

# Adds spaces to keep things from moving about.
# Works only with fixed width fonts
use_spacer right

# Colors
default_color FFFFFF
default_shade_color 333333
default_outline_color black

color1 A2ADAB
color2 34514D
color3 CCCCCC
color4 999999
color5 666666
color6 333333



TEXT
${color1}${font URW Chancery L:size=18}Météo ${color2}${hr}
${color}${alignc}Saint-mard
${voffset -30}${execi 600 sh ~/conky_weather/weather_script.sh}
${offset 20}${color}${font conkyweather:size=35}${execi 600  sed -n '4p' ~/conky_weather/weather1}${font} ${voffset -20}${color1}${execi 600 sed -n '1p' /home/stef/conky_weather/weather1| fold -s -w30}


${offset 20}${font conkyweather:size=35}${color}${execi 600  sed -n '5p' ~/conky_weather/weather1}${font} ${voffset -30}${color1}Aujourd'hui - ${execi 600 date --date="-1 days ago" '+%d/%m/%Y'}${color}
${offset 70}${execi 600 sed -n '2p' ~/conky_weather/weather1| fold -w21}
${offset 20}${font conkyweather:size=35}${color}${execi 600  sed -n '6p' ~/conky_weather/weather1}${font} ${voffset -30}${color1}Demain - ${execi 600 date --date="-2 days ago" '+%d/%m/%Y'}${color}
${offset 70}${execi 600 sed -n '3p' ~/conky_weather/weather1| fold -w21}

${color1}${font URW Chancery L:size=18}Rhythmbox ${color2}${hr}${font}

${if_running rhythmbox}
${offset 20}${color1}Artiste : ${exec rhythmbox-client --no-start --print-playing-format "%ta"}
${offset 20}${color1}Album : ${exec rhythmbox-client --no-start --print-playing-format "%at"}
${offset 20}${color1}Titre : ${exec rhythmbox-client --no-start --print-playing-format "%tt"}
${offset 20}${color1}Durée : ${exec rhythmbox-client --no-start --print-playing-format "%te / %td"}
${else}
${offset 20}${color1}Rhythmbox n'est pas ouvert
$endif
${color2}${hr}

La plupart des scripts affichant la météo dans conky utilise les infos en provenance du site weather.com mais celui-ci ne connaissait pas ma ville. J'ai finalement trouvé un script utilisant le flux rss du site accuweather.com qui lui connait beaucoup plus de ville.

weather_script.sh

#!/bin/bash
curl "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|BE|BE007|SAINT-MARD">/home/stef/conky_weather/weather
sed -i 's/&/\n/g' /home/stef/conky_weather/weather
sed -i 's/>/\n/g' /home/stef/conky_weather/weather
sed -i 's/\//\n/g' /home/stef/conky_weather/weather
sed -i 's/</\n/g' /home/stef/conky_weather/weather
egrep -i 'high:|Currently:' /home/stef/conky_weather/weather>/home/stef/conky_weather/weather1
grep -i _31x31.gif /home/stef/conky_weather/weather>>/home/stef/conky_weather/weather1 
sed -i 's/_/\n/g' /home/stef/conky_weather/weather1
sed -i "/.gif/d" /home/stef/conky_weather/weather1
a=`sed -n '4p' /home/stef/conky_weather/weather1`
if test "$a" = "01"
then sed -i '4s/01/a/g' /home/stef/conky_weather/weather1
elif test "$a" = "02"
then sed -i '4s/02/b/g' /home/stef/conky_weather/weather1
elif test "$a" = "03"
then sed -i '4s/03/c/g' /home/stef/conky_weather/weather1
elif test "$a" = "04"
then sed -i '4s/04/d/g' /home/stef/conky_weather/weather1
elif test "$a" = "05"
then sed -i '4s/05/c/g' /home/stef/conky_weather/weather1
elif test "$a" = "06"
then sed -i '4s/06/d/g' /home/stef/conky_weather/weather1
elif test "$a" = "07"
then sed -i '4s/07/e/g' /home/stef/conky_weather/weather1
elif test "$a" = "08"
then sed -i '4s/08/f/g' /home/stef/conky_weather/weather1
elif test "$a" = "11"
then sed -i '4s/11/0/g' /home/stef/conky_weather/weather1
elif test "$a" = "12"
then sed -i '4s/12/h/g' /home/stef/conky_weather/weather1
elif test "$a" = "13"
then sed -i '4s/13/g/g' /home/stef/conky_weather/weather1
elif test "$a" = "14"
then sed -i '4s/14/g/g' /home/stef/conky_weather/weather1
elif test "$a" = "15"
then sed -i '4s/15/n/g' /home/stef/conky_weather/weather1
elif test "$a" = "16"
then sed -i '4s/16/k/g' /home/stef/conky_weather/weather1
elif test "$a" = "17"
then sed -i '4s/17/k/g' /home/stef/conky_weather/weather1
elif test "$a" = "18"
then sed -i '4s/18/j/g' /home/stef/conky_weather/weather1
elif test "$a" = "19"
then sed -i '4s/19/p/g' /home/stef/conky_weather/weather1
elif test "$a" = "20"
then sed -i '4s/20/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "21"
then sed -i '4s/21/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "22"
then sed -i '4s/22/q/g' /home/stef/conky_weather/weather1
elif test "$a" = "23"
then sed -i '4s/23/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "24"
then sed -i '4s/24/r/g' /home/stef/conky_weather/weather1
elif test "$a" = "25"
then sed -i '4s/25/w/g' /home/stef/conky_weather/weather1
elif test "$a" = "26"
then sed -i '4s/26/w/g' /home/stef/conky_weather/weather1
elif test "$a" = "29"
then sed -i '4s/29/x/g' /home/stef/conky_weather/weather1
elif test "$a" = "30"
then sed -i '4s/30/5/g' /home/stef/conky_weather/weather1
elif test "$a" = "31"
then sed -i '4s/31/r/g' /home/stef/conky_weather/weather1
elif test "$a" = "32"
then sed -i '4s/32/6/g' /home/stef/conky_weather/weather1
elif test "$a" = "33"
then sed -i '4s/33/A/g' /home/stef/conky_weather/weather1
elif test "$a" = "34"
then sed -i '4s/34/B/g' /home/stef/conky_weather/weather1
elif test "$a" = "35"
then sed -i '4s/35/C/g' /home/stef/conky_weather/weather1
elif test "$a" = "36"
then sed -i '4s/36/D/g' /home/stef/conky_weather/weather1
elif test "$a" = "37"
then sed -i '4s/37/B/g' /home/stef/conky_weather/weather1
elif test "$a" = "38"
then sed -i '4s/38/C/g' /home/stef/conky_weather/weather1
elif test "$a" = "39"
then sed -i '4s/39/G/g' /home/stef/conky_weather/weather1
elif test "$a" = "40"
then sed -i '4s/40/G/g' /home/stef/conky_weather/weather1
elif test "$a" = "41"
then sed -i '4s/41/K/g' /home/stef/conky_weather/weather1
elif test "$a" = "42"
then sed -i '4s/42/K/g' /home/stef/conky_weather/weather1
elif test "$a" = "43"
then sed -i '4s/43/O/g' /home/stef/conky_weather/weather1
elif test "$a" = "44"
then sed -i '4s/44/O/C/g' /home/stef/conky_weather/weather1
fi;
a=`sed -n '5p' /home/stef/conky_weather/weather1`
if test "$a" = "01"
then sed -i '5s/01/a/g' /home/stef/conky_weather/weather1
elif test "$a" = "02"
then sed -i '5s/02/b/g' /home/stef/conky_weather/weather1
elif test "$a" = "03"
then sed -i '5s/03/c/g' /home/stef/conky_weather/weather1
elif test "$a" = "04"
then sed -i '5s/04/d/g' /home/stef/conky_weather/weather1
elif test "$a" = "05"
then sed -i '5s/05/c/g' /home/stef/conky_weather/weather1
elif test "$a" = "06"
then sed -i '5s/06/d/g' /home/stef/conky_weather/weather1
elif test "$a" = "07"
then sed -i '5s/07/e/g' /home/stef/conky_weather/weather1
elif test "$a" = "08"
then sed -i '5s/08/f/g' /home/stef/conky_weather/weather1
elif test "$a" = "11"
then sed -i '5s/11/0/g' /home/stef/conky_weather/weather1
elif test "$a" = "12"
then sed -i '5s/12/h/g' /home/stef/conky_weather/weather1
elif test "$a" = "13"
then sed -i '5s/13/g/g' /home/stef/conky_weather/weather1
elif test "$a" = "14"
then sed -i '5s/14/g/g' /home/stef/conky_weather/weather1
elif test "$a" = "15"
then sed -i '5s/15/n/g' /home/stef/conky_weather/weather1
elif test "$a" = "16"
then sed -i '5s/16/k/g' /home/stef/conky_weather/weather1
elif test "$a" = "17"
then sed -i '5s/17/k/g' /home/stef/conky_weather/weather1
elif test "$a" = "18"
then sed -i '5s/18/j/g' /home/stef/conky_weather/weather1
elif test "$a" = "19"
then sed -i '5s/19/p/g' /home/stef/conky_weather/weather1
elif test "$a" = "20"
then sed -i '5s/20/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "21"
then sed -i '5s/21/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "22"
then sed -i '5s/22/q/g' /home/stef/conky_weather/weather1
elif test "$a" = "23"
then sed -i '5s/23/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "24"
then sed -i '5s/24/r/g' /home/stef/conky_weather/weather1
elif test "$a" = "25"
then sed -i '5s/25/w/g' /home/stef/conky_weather/weather1
elif test "$a" = "26"
then sed -i '5s/26/w/g' /home/stef/conky_weather/weather1
elif test "$a" = "29"
then sed -i '5s/29/x/g' /home/stef/conky_weather/weather1
elif test "$a" = "30"
then sed -i '5s/30/5/g' /home/stef/conky_weather/weather1
elif test "$a" = "31"
then sed -i '5s/31/r/g' /home/stef/conky_weather/weather1
elif test "$a" = "32"
then sed -i '5s/32/6/g' /home/stef/conky_weather/weather1
elif test "$a" = "33"
then sed -i '5s/33/A/g' /home/stef/conky_weather/weather1
elif test "$a" = "34"
then sed -i '5s/34/B/g' /home/stef/conky_weather/weather1
elif test "$a" = "35"
then sed -i '5s/35/C/g' /home/stef/conky_weather/weather1
elif test "$a" = "36"
then sed -i '5s/36/D/g' /home/stef/conky_weather/weather1
elif test "$a" = "37"
then sed -i '5s/37/B/g' /home/stef/conky_weather/weather1
elif test "$a" = "38"
then sed -i '5s/38/C/g' /home/stef/conky_weather/weather1
elif test "$a" = "39"
then sed -i '5s/39/G/g' /home/stef/conky_weather/weather1
elif test "$a" = "40"
then sed -i '5s/40/G/g' /home/stef/conky_weather/weather1
elif test "$a" = "41"
then sed -i '5s/41/K/g' /home/stef/conky_weather/weather1
elif test "$a" = "42"
then sed -i '5s/42/K/g' /home/stef/conky_weather/weather1
elif test "$a" = "43"
then sed -i '5s/43/O/g' /home/stef/conky_weather/weather1
elif test "$a" = "44"
then sed -i '5s/44/O/C/g' /home/stef/conky_weather/weather1
fi;
a=`sed -n '6p' /home/stef/conky_weather/weather1`
if test "$a" = "01"
then sed -i '6s/01/a/g' /home/stef/conky_weather/weather1
elif test "$a" = "02"
then sed -i '6s/02/b/g' /home/stef/conky_weather/weather1
elif test "$a" = "03"
then sed -i '6s/03/c/g' /home/stef/conky_weather/weather1
elif test "$a" = "04"
then sed -i '6s/04/d/g' /home/stef/conky_weather/weather1
elif test "$a" = "05"
then sed -i '6s/05/c/g' /home/stef/conky_weather/weather1
elif test "$a" = "06"
then sed -i '6s/06/d/g' /home/stef/conky_weather/weather1
elif test "$a" = "07"
then sed -i '6s/07/e/g' /home/stef/conky_weather/weather1
elif test "$a" = "08"
then sed -i '6s/08/f/g' /home/stef/conky_weather/weather1
elif test "$a" = "11"
then sed -i '6s/11/0/g' /home/stef/conky_weather/weather1
elif test "$a" = "12"
then sed -i '6s/12/h/g' /home/stef/conky_weather/weather1
elif test "$a" = "13"
then sed -i '6s/13/g/g' /home/stef/conky_weather/weather1
elif test "$a" = "14"
then sed -i '6s/14/g/g' /home/stef/conky_weather/weather1
elif test "$a" = "15"
then sed -i '6s/15/n/g' /home/stef/conky_weather/weather1
elif test "$a" = "16"
then sed -i '6s/16/k/g' /home/stef/conky_weather/weather1
elif test "$a" = "17"
then sed -i '6s/17/k/g' /home/stef/conky_weather/weather1
elif test "$a" = "18"
then sed -i '6s/18/j/g' /home/stef/conky_weather/weather1
elif test "$a" = "19"
then sed -i '6s/19/p/g' /home/stef/conky_weather/weather1
elif test "$a" = "20"
then sed -i '6s/20/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "21"
then sed -i '6s/21/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "22"
then sed -i '6s/22/q/g' /home/stef/conky_weather/weather1
elif test "$a" = "23"
then sed -i '6s/23/o/g' /home/stef/conky_weather/weather1
elif test "$a" = "24"
then sed -i '6s/24/r/g' /home/stef/conky_weather/weather1
elif test "$a" = "25"
then sed -i '6s/25/w/g' /home/stef/conky_weather/weather1
elif test "$a" = "26"
then sed -i '6s/26/w/g' /home/stef/conky_weather/weather1
elif test "$a" = "29"
then sed -i '6s/29/x/g' /home/stef/conky_weather/weather1
elif test "$a" = "30"
then sed -i '6s/30/5/g' /home/stef/conky_weather/weather1
elif test "$a" = "31"
then sed -i '6s/31/r/g' /home/stef/conky_weather/weather1
elif test "$a" = "32"
then sed -i '6s/32/6/g' /home/stef/conky_weather/weather1
elif test "$a" = "33"
then sed -i '6s/33/A/g' /home/stef/conky_weather/weather1
elif test "$a" = "34"
then sed -i '6s/34/B/g' /home/stef/conky_weather/weather1
elif test "$a" = "35"
then sed -i '6s/35/C/g' /home/stef/conky_weather/weather1
elif test "$a" = "36"
then sed -i '6s/36/D/g' /home/stef/conky_weather/weather1
elif test "$a" = "37"
then sed -i '6s/37/B/g' /home/stef/conky_weather/weather1
elif test "$a" = "38"
then sed -i '6s/38/C/g' /home/stef/conky_weather/weather1
elif test "$a" = "39"
then sed -i '6s/39/G/g' /home/stef/conky_weather/weather1
elif test "$a" = "40"
then sed -i '6s/40/G/g' /home/stef/conky_weather/weather1
elif test "$a" = "41"
then sed -i '6s/41/K/g' /home/stef/conky_weather/weather1
elif test "$a" = "42"
then sed -i '6s/42/K/g' /home/stef/conky_weather/weather1
elif test "$a" = "43"
then sed -i '6s/43/O/g' /home/stef/conky_weather/weather1
elif test "$a" = "44"
then sed -i '6s/44/O/C/g' /home/stef/conky_weather/weather1
fi;

A la maison : PC Core 2 Duo 3.3 Ghz - Ubuntu 10.4 et MacBook Pro Core Duo 1,83 Ghz dual boot Mac OS X - Ubuntu 10.4.
Au boulot : PC "noname" - Ubuntu 10.4

Hors ligne

#2316 Le 15/06/2010, à 23:15

wlourf

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Un conky, sur openbox, inspiré du bureau à Leyna (post 2271), ça n'affiche que du texte mais avec quelques effets flous, dégradé, focus ... faut agrandir l'image pour s'en rendre compte:

1276637776.png

Le script Lua générique est ici http://forum.ubuntu-fr.org/viewtopic.php?pid=3540506#p3540506
Je peux poster la config pour ce conky si besoin !

Edit : wall

Dernière modification par wlourf (Le 15/06/2010, à 23:37)

Hors ligne

#2317 Le 16/06/2010, à 17:36

soza971

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

ferreol a écrit :

allez je poste mon conky de bureau sur mon usb live persistant:
http://img813.imageshack.us/img813/7715/capturee.th.png

salut je pourrais avoir la partie code ton clock dans tint2 plz?


Asus U80V Obuntu 10.04 64bits

Hors ligne

#2318 Le 16/06/2010, à 17:52

gogy

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Comment on lance 2 instances avec un .conkyrc et un .conkyrc2 ?
Comment tu fait appeler ton script "weather_script.sh" ? -> [edit] Ca, j'ai vu ! [/edit]

(Suis un vrai noob en conky hmm)

Dernière modification par gogy (Le 16/06/2010, à 17:56)


On n'est pas des manchots quand on sait remplacer une fenêtre !
Intel® Core™2 Duo CPU E6850 @ 3.00GHz × 2 / RAM : 2,0 Gio
Lucid 10.04 / Precise 12.04

Hors ligne

#2319 Le 16/06/2010, à 18:28

chepioq

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

gogy a écrit :

Comment on lance 2 instances avec un .conkyrc et un .conkyrc2 ?
Comment tu fait appeler ton script "weather_script.sh" ? -> [edit] Ca, j'ai vu ! [/edit]

(Suis un vrai noob en conky hmm)

Tu crée un script bash comme ceci:

#!/bin/bash

conky -c /chemin de ton .conkyrc &
sleep 5
conky -c /chemin de ton .conkyrc2 &

Le sleep 5 est facultatif, personnellement je préfère que mes conky se lance les uns après les autres..
Tu rend ce script exécutable et le tour est joué


Tout est dans tout et réciproquement....

Hors ligne

#2320 Le 16/06/2010, à 18:35

gogy

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Cool ! Merci chepioq !


On n'est pas des manchots quand on sait remplacer une fenêtre !
Intel® Core™2 Duo CPU E6850 @ 3.00GHz × 2 / RAM : 2,0 Gio
Lucid 10.04 / Precise 12.04

Hors ligne

#2321 Le 16/06/2010, à 21:40

adama88

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonsoir,
J'ai installé le conky de Zarvox et l'ai lancé. Seulement le deuxième concernant la météo, aucune donnée du lieu ne s'affiche. Pourtant je suis allé sur le site pour récupérer le lien adequat à mon lieu, mais nada, aucune donnée ne s'affiche.
Voici les deux fichiers concernant mes paramètres personnels :

# Total number of times for Conky to update before quitting. 0 = forever
total_run_times 0

# Print text to stdout
out_to_console no

# Buffer management, avoid blinking
double_buffer yes
no_buffers yes
text_buffer_size 2048

# refresh rate
update_interval 1

# samples for rate average
cpu_avg_samples 4
net_avg_samples 2

# size and posiiton
alignment bottom_left
minimum_size 320 5
maximum_width 320
gap_x 80
gap_y 100

# shading and framming
draw_shades yes
draw_outline no
draw_borders no
border_width 1
#border_margin 4

# should Conky fork in the background
background yes

# window type
own_window yes
own_window_argb_visual yes
own_window_type normal # normal / override / desktop
own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes

#font management
use_xft yes
xftalpha .1
override_utf8_locale yes # force UTF8

# font face
xftfont URW Gothic L:size=9
uppercase no

# Adds spaces to keep things from moving about.
# Works only with fixed width fonts
use_spacer right

# Colors
default_color FFFFFF
default_shade_color 333333
default_outline_color black

color1 A2ADAB
color2 34514D
color3 CCCCCC
color4 999999
color5 666666
color6 333333



TEXT
${color1}${font URW Chancery L:size=18}Météo ${color2}${hr}
${color}${alignc}Pithiviers
${voffset -30}${execi 600 sh ~/conky_weather/weather_script.sh}
${offset 20}${color}${font conkyweather:size=35}${execi 600  sed -n '4p' ~/conky_weather/weather1}${font} ${voffset -20}${color1}${execi 600 sed -n '1p' /home/adama88/conky_weather/weather1| fold -s -w30}


${offset 20}${font conkyweather:size=35}${color}${execi 600  sed -n '5p' ~/conky_weather/weather1}${font} ${voffset -30}${color1}Aujourd'hui - ${execi 600 date --date="-1 days ago" '+%d/%m/%Y'}${color}
${offset 70}${execi 600 sed -n '2p' ~/conky_weather/weather1| fold -w21}
${offset 20}${font conkyweather:size=35}${color}${execi 600  sed -n '6p' ~/conky_weather/weather1}${font} ${voffset -30}${color1}Demain - ${execi 600 date --date="-2 days ago" '+%d/%m/%Y'}${color}
${offset 70}${execi 600 sed -n '3p' ~/conky_weather/weather1| fold -w21}

${color1}${font URW Chancery L:size=18}Rhythmbox ${color2}${hr}${font}

${if_running rhythmbox}
${offset 20}${color1}Artiste : ${exec rhythmbox-client --no-start --print-playing-format "%ta"}
${offset 20}${color1}Album : ${exec rhythmbox-client --no-start --print-playing-format "%at"}
${offset 20}${color1}Titre : ${exec rhythmbox-client --no-start --print-playing-format "%tt"}
${offset 20}${color1}Durée : ${exec rhythmbox-client --no-start --print-playing-format "%te / %td"}
${else}
${offset 20}${color1}Rhythmbox n'est pas ouvert
$endif
${color2}${hr}
#!/bin/bash
curl "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|FR|FR007|PITHIVIERS">/home/adama88/conky_weather/weather
sed -i 's/&/\n/g' /home/adama88/conky_weather/weather
sed -i 's/>/\n/g' /home/adama88/conky_weather/weather
sed -i 's/\//\n/g' /home/adama88/conky_weather/weather
sed -i 's/</\n/g' /home/adama88/conky_weather/weather
egrep -i 'high:|Currently:' /home/adama88/conky_weather/weather>/home/adama88/conky_weather/weather1
grep -i _31x31.gif /home/adama88/conky_weather/weather>>/home/adama88/conky_weather/weather1 
sed -i 's/_/\n/g' /home/adama88/conky_weather/weather1
sed -i "/.gif/d" /home/adama88/conky_weather/weather1
a=`sed -n '4p' /home/adama88/conky_weather/weather1`
if test "$a" = "01"
then sed -i '4s/01/a/g' /home/adama88/conky_weather/weather1
elif test "$a" = "02"
then sed -i '4s/02/b/g' /home/adama88/conky_weather/weather1
elif test "$a" = "03"
then sed -i '4s/03/c/g' /home/adama88/conky_weather/weather1
elif test "$a" = "04"
then sed -i '4s/04/d/g' /home/adama88/conky_weather/weather1
elif test "$a" = "05"
then sed -i '4s/05/c/g' /home/adama88/conky_weather/weather1
elif test "$a" = "06"
then sed -i '4s/06/d/g' /home/adama88/conky_weather/weather1
elif test "$a" = "07"
then sed -i '4s/07/e/g' /home/adama88/conky_weather/weather1
elif test "$a" = "08"
then sed -i '4s/08/f/g' /home/adama88/conky_weather/weather1
elif test "$a" = "11"
then sed -i '4s/11/0/g' /home/adama88/conky_weather/weather1
elif test "$a" = "12"
then sed -i '4s/12/h/g' /home/adama88/conky_weather/weather1
elif test "$a" = "13"
then sed -i '4s/13/g/g' /home/adama88/conky_weather/weather1
elif test "$a" = "14"
then sed -i '4s/14/g/g' /home/adama88/conky_weather/weather1
elif test "$a" = "15"
then sed -i '4s/15/n/g' /home/adama88/conky_weather/weather1
elif test "$a" = "16"
then sed -i '4s/16/k/g' /home/adama88/conky_weather/weather1
elif test "$a" = "17"
then sed -i '4s/17/k/g' /home/adama88/conky_weather/weather1
elif test "$a" = "18"
then sed -i '4s/18/j/g' /home/adama88/conky_weather/weather1
elif test "$a" = "19"
then sed -i '4s/19/p/g' /home/adama88/conky_weather/weather1
elif test "$a" = "20"
then sed -i '4s/20/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "21"
then sed -i '4s/21/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "22"
then sed -i '4s/22/q/g' /home/adama88/conky_weather/weather1
elif test "$a" = "23"
then sed -i '4s/23/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "24"
then sed -i '4s/24/r/g' /home/adama88/conky_weather/weather1
elif test "$a" = "25"
then sed -i '4s/25/w/g' /home/adama88/conky_weather/weather1
elif test "$a" = "26"
then sed -i '4s/26/w/g' /home/adama88/conky_weather/weather1
elif test "$a" = "29"
then sed -i '4s/29/x/g' /home/adama88/conky_weather/weather1
elif test "$a" = "30"
then sed -i '4s/30/5/g' /home/adama88/conky_weather/weather1
elif test "$a" = "31"
then sed -i '4s/31/r/g' /home/adama88/conky_weather/weather1
elif test "$a" = "32"
then sed -i '4s/32/6/g' /home/adama88/conky_weather/weather1
elif test "$a" = "33"
then sed -i '4s/33/A/g' /home/adama88/conky_weather/weather1
elif test "$a" = "34"
then sed -i '4s/34/B/g' /home/adama88/conky_weather/weather1
elif test "$a" = "35"
then sed -i '4s/35/C/g' /home/adama88/conky_weather/weather1
elif test "$a" = "36"
then sed -i '4s/36/D/g' /home/adama88/conky_weather/weather1
elif test "$a" = "37"
then sed -i '4s/37/B/g' /home/adama88/conky_weather/weather1
elif test "$a" = "38"
then sed -i '4s/38/C/g' /home/adama88/conky_weather/weather1
elif test "$a" = "39"
then sed -i '4s/39/G/g' /home/adama88/conky_weather/weather1
elif test "$a" = "40"
then sed -i '4s/40/G/g' /home/adama88/conky_weather/weather1
elif test "$a" = "41"
then sed -i '4s/41/K/g' /home/adama88/conky_weather/weather1
elif test "$a" = "42"
then sed -i '4s/42/K/g' /home/adama88/conky_weather/weather1
elif test "$a" = "43"
then sed -i '4s/43/O/g' /home/adama88/conky_weather/weather1
elif test "$a" = "44"
then sed -i '4s/44/O/C/g' /home/adama88/conky_weather/weather1
fi;
a=`sed -n '5p' /home/adama88/conky_weather/weather1`
if test "$a" = "01"
then sed -i '5s/01/a/g' /home/adama88/conky_weather/weather1
elif test "$a" = "02"
then sed -i '5s/02/b/g' /home/adama88/conky_weather/weather1
elif test "$a" = "03"
then sed -i '5s/03/c/g' /home/adama88/conky_weather/weather1
elif test "$a" = "04"
then sed -i '5s/04/d/g' /home/adama88/conky_weather/weather1
elif test "$a" = "05"
then sed -i '5s/05/c/g' /home/adama88/conky_weather/weather1
elif test "$a" = "06"
then sed -i '5s/06/d/g' /home/adama88/conky_weather/weather1
elif test "$a" = "07"
then sed -i '5s/07/e/g' /home/adama88/conky_weather/weather1
elif test "$a" = "08"
then sed -i '5s/08/f/g' /home/adama88/conky_weather/weather1
elif test "$a" = "11"
then sed -i '5s/11/0/g' /home/adama88/conky_weather/weather1
elif test "$a" = "12"
then sed -i '5s/12/h/g' /home/adama88/conky_weather/weather1
elif test "$a" = "13"
then sed -i '5s/13/g/g' /home/adama88/conky_weather/weather1
elif test "$a" = "14"
then sed -i '5s/14/g/g' /home/adama88/conky_weather/weather1
elif test "$a" = "15"
then sed -i '5s/15/n/g' /home/adama88/conky_weather/weather1
elif test "$a" = "16"
then sed -i '5s/16/k/g' /home/adama88/conky_weather/weather1
elif test "$a" = "17"
then sed -i '5s/17/k/g' /home/adama88/conky_weather/weather1
elif test "$a" = "18"
then sed -i '5s/18/j/g' /home/adama88/conky_weather/weather1
elif test "$a" = "19"
then sed -i '5s/19/p/g' /home/adama88/conky_weather/weather1
elif test "$a" = "20"
then sed -i '5s/20/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "21"
then sed -i '5s/21/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "22"
then sed -i '5s/22/q/g' /home/adama88/conky_weather/weather1
elif test "$a" = "23"
then sed -i '5s/23/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "24"
then sed -i '5s/24/r/g' /home/adama88/conky_weather/weather1
elif test "$a" = "25"
then sed -i '5s/25/w/g' /home/adama88/conky_weather/weather1
elif test "$a" = "26"
then sed -i '5s/26/w/g' /home/adama88/conky_weather/weather1
elif test "$a" = "29"
then sed -i '5s/29/x/g' /home/adama88/conky_weather/weather1
elif test "$a" = "30"
then sed -i '5s/30/5/g' /home/adama88/conky_weather/weather1
elif test "$a" = "31"
then sed -i '5s/31/r/g' /home/adama88/conky_weather/weather1
elif test "$a" = "32"
then sed -i '5s/32/6/g' /home/adama88/conky_weather/weather1
elif test "$a" = "33"
then sed -i '5s/33/A/g' /home/adama88/conky_weather/weather1
elif test "$a" = "34"
then sed -i '5s/34/B/g' /home/adama88/conky_weather/weather1
elif test "$a" = "35"
then sed -i '5s/35/C/g' /home/adama88/conky_weather/weather1
elif test "$a" = "36"
then sed -i '5s/36/D/g' /home/adama88/conky_weather/weather1
elif test "$a" = "37"
then sed -i '5s/37/B/g' /home/adama88/conky_weather/weather1
elif test "$a" = "38"
then sed -i '5s/38/C/g' /home/adama88/conky_weather/weather1
elif test "$a" = "39"
then sed -i '5s/39/G/g' /home/adama88/conky_weather/weather1
elif test "$a" = "40"
then sed -i '5s/40/G/g' /home/adama88/conky_weather/weather1
elif test "$a" = "41"
then sed -i '5s/41/K/g' /home/adama88/conky_weather/weather1
elif test "$a" = "42"
then sed -i '5s/42/K/g' /home/adama88/conky_weather/weather1
elif test "$a" = "43"
then sed -i '5s/43/O/g' /home/adama88/conky_weather/weather1
elif test "$a" = "44"
then sed -i '5s/44/O/C/g' /home/adama88/conky_weather/weather1
fi;
a=`sed -n '6p' /home/adama88/conky_weather/weather1`
if test "$a" = "01"
then sed -i '6s/01/a/g' /home/adama88/conky_weather/weather1
elif test "$a" = "02"
then sed -i '6s/02/b/g' /home/adama88/conky_weather/weather1
elif test "$a" = "03"
then sed -i '6s/03/c/g' /home/adama88/conky_weather/weather1
elif test "$a" = "04"
then sed -i '6s/04/d/g' /home/adama88/conky_weather/weather1
elif test "$a" = "05"
then sed -i '6s/05/c/g' /home/adama88/conky_weather/weather1
elif test "$a" = "06"
then sed -i '6s/06/d/g' /home/adama88/conky_weather/weather1
elif test "$a" = "07"
then sed -i '6s/07/e/g' /home/adama88/conky_weather/weather1
elif test "$a" = "08"
then sed -i '6s/08/f/g' /home/adama88/conky_weather/weather1
elif test "$a" = "11"
then sed -i '6s/11/0/g' /home/adama88/conky_weather/weather1
elif test "$a" = "12"
then sed -i '6s/12/h/g' /home/adama88/conky_weather/weather1
elif test "$a" = "13"
then sed -i '6s/13/g/g' /home/adama88/conky_weather/weather1
elif test "$a" = "14"
then sed -i '6s/14/g/g' /home/adama88/conky_weather/weather1
elif test "$a" = "15"
then sed -i '6s/15/n/g' /home/adama88/conky_weather/weather1
elif test "$a" = "16"
then sed -i '6s/16/k/g' /home/adama88/conky_weather/weather1
elif test "$a" = "17"
then sed -i '6s/17/k/g' /home/adama88/conky_weather/weather1
elif test "$a" = "18"
then sed -i '6s/18/j/g' /home/adama88/conky_weather/weather1
elif test "$a" = "19"
then sed -i '6s/19/p/g' /home/adama88/conky_weather/weather1
elif test "$a" = "20"
then sed -i '6s/20/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "21"
then sed -i '6s/21/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "22"
then sed -i '6s/22/q/g' /home/adama88/conky_weather/weather1
elif test "$a" = "23"
then sed -i '6s/23/o/g' /home/adama88/conky_weather/weather1
elif test "$a" = "24"
then sed -i '6s/24/r/g' /home/adama88/conky_weather/weather1
elif test "$a" = "25"
then sed -i '6s/25/w/g' /home/adama88/conky_weather/weather1
elif test "$a" = "26"
then sed -i '6s/26/w/g' /home/adama88/conky_weather/weather1
elif test "$a" = "29"
then sed -i '6s/29/x/g' /home/adama88/conky_weather/weather1
elif test "$a" = "30"
then sed -i '6s/30/5/g' /home/adama88/conky_weather/weather1
elif test "$a" = "31"
then sed -i '6s/31/r/g' /home/adama88/conky_weather/weather1
elif test "$a" = "32"
then sed -i '6s/32/6/g' /home/adama88/conky_weather/weather1
elif test "$a" = "33"
then sed -i '6s/33/A/g' /home/adama88/conky_weather/weather1
elif test "$a" = "34"
then sed -i '6s/34/B/g' /home/adama88/conky_weather/weather1
elif test "$a" = "35"
then sed -i '6s/35/C/g' /home/adama88/conky_weather/weather1
elif test "$a" = "36"
then sed -i '6s/36/D/g' /home/adama88/conky_weather/weather1
elif test "$a" = "37"
then sed -i '6s/37/B/g' /home/adama88/conky_weather/weather1
elif test "$a" = "38"
then sed -i '6s/38/C/g' /home/adama88/conky_weather/weather1
elif test "$a" = "39"
then sed -i '6s/39/G/g' /home/adama88/conky_weather/weather1
elif test "$a" = "40"
then sed -i '6s/40/G/g' /home/adama88/conky_weather/weather1
elif test "$a" = "41"
then sed -i '6s/41/K/g' /home/adama88/conky_weather/weather1
elif test "$a" = "42"
then sed -i '6s/42/K/g' /home/adama88/conky_weather/weather1
elif test "$a" = "43"
then sed -i '6s/43/O/g' /home/adama88/conky_weather/weather1
elif test "$a" = "44"
then sed -i '6s/44/O/C/g' /home/adama88/conky_weather/weather1
fi;

Quelqu'un a-t-il une idée d'où peut provenir le problème ? Je viens d'y passer la soirée et rien n'y fait. Je suis débutant en la matière.


Ubuntu 23.10 - Windows 11 famille
Lenovo Y520-15IKBN - Intel® Core™ i5-7300HQ × 4 - Intel® UHD 630  + NVIDIA GeForce GTX 1050
32 Go RAM - Nvme 1To + HDD 1to (DD d'origine)

Hors ligne

#2322 Le 16/06/2010, à 22:17

sam7

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

Zarvox a écrit :

Cela fait déjà quelques fois que je poste sur ce forum et je ne vous est pas encore montré mon conky.

Voilà oubli réparé :
http://s3.postimage.org/Ow6DJ.jpg

Il est simple mais fonctionnel smile

j'aime bien, ainsi que ton fond d'écran ... un lien svp merci ?


sam7 @ sweetux.org = "Faire connaître & promouvoir la culture libre"
& @ gafam.fr = "Faire connaître & promouvoir les alternatives aux GAFAMs"

Hors ligne

#2323 Le 17/06/2010, à 05:29

chepioq

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

@adama45
Quant tu lances ton conky en console, as tu des messages d'erreurs?


Tout est dans tout et réciproquement....

Hors ligne

#2324 Le 17/06/2010, à 06:59

soza971

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

salut à tous voici mon nouveau thème (openbox)

201006170753291600x900s.th.png

Uploaded with ImageShack.us

Dernière modification par soza971 (Le 17/06/2010, à 07:01)


Asus U80V Obuntu 10.04 64bits

Hors ligne

#2325 Le 17/06/2010, à 08:16

Fafanuclear

Re : (3) Conky : Postez vos conkyrc ou certaines parties intéressantes

soza971 a écrit :

salut à tous voici mon nouveau thème (openbox)

http://img294.imageshack.us/img294/8255 … 00s.th.png

Uploaded with ImageShack.us

Salut Soza971,

Très joli thème. Pourrais-tu mettre à disposition la partie de code utilisée pour intégrer un terminal dans le conky? Merci d'avance.

Hors ligne