logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 16-05-2009 07:34:31

Debian33
Membre
Inscription : 08-05-2009

Conky

Conky est un petit moniteur système entièrement paramétrable, qui permet de surveiller à peu près n'importe quoi sur votre pc (température du processeur, mémoire utilisée, place sur le disque dur, processus en cours, etc...)
On trouve facilement sur le net des exemples de configurations, ou les plus courageux peuvent le paramétrer pour avoir uniquement ce qui les intéressent (et si j'ai pu le programmer, vous aussi vous pouvez ! tongue).

A l'usage c'est un outil léger et excellent. smile


Cordialement.
smile

ps : je vous rajoute une petite image, c'est toujours plus parlant :

56493

Dernière modification par Debian33 (16-05-2009 07:40:06)

Hors ligne

#2 16-05-2009 09:13:06

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : Conky

Alors ca je connais big_smile

Un autre screen pour ceux qui ne vont pas jusqu'à la section screenshot wink

090516101330747611.png

Hors ligne

#3 16-05-2009 09:28:18

Debian33
Membre
Inscription : 08-05-2009

Re : Conky

Salut palmito.
Très joli le tien ! smile
Moi j'ai laissé tout noir pour qu'il s'intégre parfaitement sur mon fond d'écran.
Simplicité, efficacité ! tongue

Cordialement.
smile

Hors ligne

#4 16-05-2009 10:50:56

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : Conky

Bah en fait le miens est transparent et c'est mon fond d'écran que l'on voit derrière wink

++

Hors ligne

#5 17-05-2009 10:22:38

n3os
Modérateur
Lieu : /Debian/Home/neos
Distrib. : Sid
Noyau : 2.6.35
(G)UI : e17
Inscription : 14-07-2007

Re : Conky

Hello,

j'ai toujours utilisé conky, pour afficher les températures, sinon pour les config il y en a un max
sur le forum ubuntu

le mien mini 

49fc8784.png

Hors ligne

#6 17-05-2009 10:42:46

Debian33
Membre
Inscription : 08-05-2009

Re : Conky

Bonjour neos.
Sympa aussi le tien ! Merci pour le lien.

Cordialement.
smile

Hors ligne

#7 20-06-2009 14:03:06

Devil505
Membre
Inscription : 31-05-2009

Hors ligne

#8 20-06-2009 15:31:02

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Conky

Salut les costauds !

Bon, j'ai mis conky smile

# aptitude install -t testing conky


version :
conky |    1.7.0-1 | http://ftp.fr.debian.org testing/main Packages

Mais pour le configurer, ballepot ! Et la recherche sur les sites est vraiment hard pour ce sujet, beaucoup en angliche... roll

C'est comment la suite ?

Par exemple, j'aimerai surveiller en permanence :

   la température carte-mère et processeur
   le barregraphe des ressources du processeur utilisées

   dans un conky fond transparent et lettre blanches sur le bureau...
   qui s'y maintiendrait en permanence
   depuis un démarrage automatique à l'allumage...
   dans le coin à droite de l'écran, et non à gauche comme par défaut actuellement...

Trop ?
Meu non, j'suis sûr...;)

Amitié, Joel

Dernière modification par smolski (20-06-2009 15:32:02)


saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#9 20-06-2009 15:45:26

Debian33
Membre
Inscription : 08-05-2009

Re : Conky

Sympa ton conky Devil505. smile

Salut smolski. Regarde à cette adresse, c'est bien expliqué, tout est en français, et il y a des liens très utiles. smile
Sinon tu vas sur le forum Ubuntu (il y a un grand post sur le sujet) , tu copies/colles une config. Conky qui te plaît, et tu l'adaptes ! wink

Cordialement.
smile

Dernière modification par Debian33 (20-06-2009 15:47:15)

Hors ligne

#10 20-06-2009 15:50:03

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Conky

Merci Debian33 !

Vous êtes des frères pour moi...

Et yop, j'y ferai demain au matin, c'est qu'il y en a à lire et penser là-dedans... Et j'ai les boyaux d'la tête ankylosés l'aprem...

Tchibâââ ! lol

saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#11 20-06-2009 19:17:41

martinux_qc
Anar
Lieu : Montréal (Québec)
Distrib. : Debian 11 stable
Noyau : Linux 5.10.0-8-amd64
(G)UI : XFCE 4.16
Inscription : 12-10-2008

Re : Conky

Salut

Il serait bien aussi que les gens qui affichent ici leur conky mettent aussi leur fichier de configuration. Ils pourraient même expliquer certains scripts ou fonctions utilisés. Cela montre des exemples et peut être en même temps avoir des vertus pédagogiques.

"L'éducation vise à former des citoyens pas trop tatas et non pas à envoyer le plus de tatas possible à l'université."
Pierre Foglia (Journaliste à la retraite à La Presse)
Note : au Québec, le mot tata a un sens péjoratif qui sert à désigner une personne un peu idiote ou insignifiante. D'où les expressions familières : Espèce de grand, de gros tata! Être, avoir l'air tata.

Hors ligne

#12 20-06-2009 19:25:28

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Conky

On ne peut dire mieux martin_mtl... +1 tongue

Edit :
Tiens, "piqué" sur le blog de Debian33 :
http://conky.sourceforge.net/screenshots.html

Un lien où c'est déjà fait pour certains... Yop là !

Amitié, Joel

Dernière modification par smolski (20-06-2009 20:28:17)


saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#13 20-06-2009 22:31:48

Debian33
Membre
Inscription : 08-05-2009

Re : Conky

Bonsoir.
Pour tous ceux qui veulent aller encore plus loin avec Conky, voir cet article très complet avec tout ce qu'il faut (options de configuration / variables / scripts additionnels / liens)
C'est du costaud, complet de chez complet, avec ça vous pourrez faire tout ce que vous voulez de votre Conky ! smile

Cordialement.
smile

Dernière modification par Debian33 (20-06-2009 22:32:06)

Hors ligne

#14 21-06-2009 09:08:47

triode
Membre
Distrib. : Version testing (lenny)
Noyau : 2.6.26-1-486
(G)UI : Gnome 2.22.3
Inscription : 06-12-2008

Re : Conky

Bonjour a toutes et a tous
Voici le mien
conky
La partie disk et lecteur de zic a gauche

# set to yes if you want Conky to be forked in the background
background no


cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

own_window_transparent yes
own_window_colour black
# Text alpha when using Xft
xftalpha 0.8

#on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
#Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type   override  # type de fenêtre "maison" (le type desktop convient si on n'a pas d'ombre)
own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager # définition du type

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

# Minimum size of text area
minimum_size 380
maximum_width 380

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

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

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 25
gap_y  40
#alignment top_right
alignment top_left
#alignment bottom_right

# Gap between borders of screen and text

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

# Subtract file system buffers from used memory?
no_buffers yes

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

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description               
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                       
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  battery           (num)           Remaining capasity in ACPI or APM       
#                                    battery. ACPI battery number can be     
#                                    given as argument (default is BAT0).     
#  buffers                           Amount of memory buffered               
#  cached                            Amount of memory cached                 
#  color             (color)         Change drawing color to color           
#  cpu                               CPU usage in percents                   
#  cpubar            (height)        Bar that shows CPU usage, height is     
#                                    bar's height in pixels                   
#  downspeed         net             Download speed in kilobytes             
#  downspeedf        net             Download speed in kilobytes with one     
#                                    decimal                                 
#  exec              shell command   Executes a shell command and displays   
#                                    the output in torsmo. warning: this     
#                                    takes a lot more resources than other   
#                                    variables. I'd recommend coding wanted   
#                                    behaviour in C and posting a patch :-). 
#  execi             interval, shell Same as exec but with specific interval.
#                    command         Interval can't be less than             
#                                    update_interval in configuration.       
#  fs_bar            (height), (fs)  Bar that shows how much space is used on
#                                    a file system. height is the height in   
#                                    pixels. fs is any file on that file     
#                                    system.                                 
#  fs_free           (fs)            Free space on a file system available   
#                                    for users.                               
#  fs_free_perc      (fs)            Free percentage of space on a file       
#                                    system available for users.             
#  fs_size           (fs)            File system size                         
#  fs_used           (fs)            File system used space                   
#  hr                (height)        Horizontal line, height is the height in
#                                    pixels                                   
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
#                                    may be omitted if you have only one I2C 
#                                    device. type is either in (or vol)       
#                                    meaning voltage, fan meaning fan or temp
#                                    meaning temperature. n is number of the 
#                                    sensor. See /sys/bus/i2c/devices/ on     
#                                    your local computer.                     
#  kernel                            Kernel version                           
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1     
#                                    minute, 2 for past 5 minutes and 3 for   
#                                    past 15 minutes.                         
#  machine                           Machine, i686 for example               
#  mails                             Mail count in mail spool. You can use   
#                                    program like fetchmail to get mails from
#                                    some server using your favourite         
#                                    protocol. See also new_mails.           
#  mem                               Amount of memory in use                 
#  membar            (height)        Bar that shows amount of memory in use   
#  memmax                            Total amount of memory                   
#  memperc                           Percentage of memory in use             
#  new_mails                         Unread mail count in mail spool.         
#  nodename                          Hostname                                 
#  outlinecolor      (color)         Change outline color                     
#  pre_exec          shell command   Executes a shell command one time before
#                                    torsmo displays anything and puts output
#                                    as text.                                 
#  processes                         Total processes (sleeping and running)   
#  running_processes                 Running processes (not sleeping),       
#                                    requires Linux 2.6                       
#  shadecolor        (color)         Change shading color                     
#  stippled_hr       (space),        Stippled (dashed) horizontal line       
#                    (height)       
#  swapbar           (height)        Bar that shows amount of swap in use     
#  swap                              Amount of swap in use                   
#  swapmax                           Total amount of swap                     
#  swapperc                          Percentage of swap in use               
#  sysname                           System name, Linux for example           
#  time              (format)        Local time, see man strftime to get more
#                                    information about format                 
#  totaldown         net             Total download, overflows at 4 GB on     
#                                    Linux with 32-bit arch and there doesn't
#                                    seem to be a way to know how many times 
#                                    it has already done that before torsmo   
#                                    has started.                             
#  totalup           net             Total upload, this one too, may overflow
#  updates                           Number of updates (for debugging)       
#  upspeed           net             Upload speed in kilobytes               
#  upspeedf          net             Upload speed in kilobytes with one       
#                                    decimal                                 

#  uptime                            Uptime                                   
#  uptime_short                      Uptime in a shorter format               
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}
#${execi 300 /home/triode/scripts/conky-rss.sh http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss 4 2}         
#Tu as ${color3}${texeci 60 perl ~/scripts/gmail.pl n} ${color}Nouveau(x) Message(s).
#${execi 60 perl ~/scripts/gmail.pl s}
TEXT
${color #ffffff}/Swap       ${color #ffffff}$swap/$swapmax${alignr}  ${color #ffffff}${swapbar 5,115}   
${color #ffffff}/root      ${color #ffffff}${fs_used /}/${fs_size /}${alignr}${color #ffffff}${fs_bar 5,120 /}
${color #ffffff}/home      ${color #ffffff}${fs_used /home}/${fs_size /home}${alignr}${color #ffffff}${fs_bar 5,120 /home}
${color #ffffff}/media    ${color #ffffff}${fs_used /media/windows}/${fs_size /media/windows}${alignr}${color #ffffff}${fs_bar 5,120 /media/windows}

${color slate white}Artiste:   ${color ffffff}${exec cat ~/.quodlibet/current | grep artist | cut -d "=" -f2 }
${color slate white}Titre:      ${color ffffff}${exec cat ~/.quodlibet/current | grep title | cut -d "=" -f2 }${alignr}${color slate white}(${color ffffff}${exec cat ~/.quodlibet/current | grep tracknumber | cut -d "=" -f2 }${color slate white})
${color slate white}Album:   ${color ffffff}${exec cat ~/.quodlibet/current | grep album | cut -d "=" -f2 }
${color slate white}genre:   ${color ffffff}${exec cat ~/.quodlibet/current | grep genre | cut -d "=" -f2 }${color slate white}${alignr}Format: ${color ffffff}${exec cat ~/.quodlibet/current | grep format | cut -d "=" -f2 }


la partie reseau au milieu

alignment top_left
background yes
border_width 1
cpu_avg_samples 2
default_color ffffff
default_outline_color white
default_shade_color white
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
gap_x 500
gap_y 10
maximum_width 430
max_port_monitor_connections 64
max_specials 512
max_user_text 16384
minimum_size 430
net_avg_samples 2
no_buffers yes
out_to_console no
#wm_class_name Conky
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
own_window yes
stippled_borders 2
update_interval 2
uppercase no
use_spacer yes
use_xft yes
xftalpha 0.8
xftfont  Bitstream Vera Sans Mono:size=9
#${color #757891}Port(s)${alignr}#Connections
#${color #757891}Outbound Connection ${alignr} Remote Service/Port$color
TEXT
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 rservice 6}
${tcp_portmon 32768 61000 rhost 7} ${alignr} ${tcp_portmon 32768 61000 rservice 7}
${tcp_portmon 32768 61000 rhost 8} ${alignr} ${tcp_portmon 32768 61000 rservice 8}
${tcp_portmon 32768 61000 rhost 9} ${alignr} ${tcp_portmon 32768 61000 rservice 9}


la partie a droite

# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8
own_window_transparent yes
own_window_colour black
# Text alpha when using Xft
xftalpha 0.8
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type   override  # type de fenêtre "maison" (le type desktop convient si on n'a pas d'ombre)
own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager # définition du type

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

# Minimum size of text area
minimum_size 240
maximum_width 240

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 30
gap_y 30

alignment top_right
#alignment top_left
#alignment bottom_right

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

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no
TEXT
${color #ffffff}$nodename ${alignc}$sysname $kernel ${alignr}
${color #ffffff}Load:${color #ffffff} $loadavg${color #ffffff}  CPU:${cpu}%
${cpubar}
${color #ffffff}Processes:${color #ffffff}$processes  ${color #ffffff}    Running:${color #ffffff} $running_processes
${color #ffffff}NOM              PID    CPU    MEM
${color #ffffff}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #ffffff}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #ffffff}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #ffffff}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #ffffff}RAM Usage:${color #ffffff}$mem/$memmax $memperc%
${color #ffffff}$membar
${color #ffffff}RAM              PID    CPU    MEM
${color #ffffff}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #ffffff}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #ffffff}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #ffffff}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}


la partie droite

# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8
own_window_transparent yes
own_window_colour black
# Text alpha when using Xft
xftalpha 0.8
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type   override  # type de fenêtre "maison" (le type desktop convient si on n'a pas d'ombre)
own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager # définition du type

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

# Minimum size of text area
minimum_size 240
maximum_width 240

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 30
gap_y 30

alignment top_right
#alignment top_left
#alignment bottom_right

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

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no
TEXT
${color #ffffff}$nodename ${alignc}$sysname $kernel ${alignr}
${color #ffffff}Load:${color #ffffff} $loadavg${color #ffffff}  CPU:${cpu}%
${cpubar}
${color #ffffff}Processes:${color #ffffff}$processes  ${color #ffffff}    Running:${color #ffffff} $running_processes
${color #ffffff}NOM              PID    CPU    MEM
${color #ffffff}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #ffffff}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #ffffff}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #ffffff}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #ffffff}RAM Usage:${color #ffffff}$mem/$memmax $memperc%
${color #ffffff}$membar
${color #ffffff}RAM              PID    CPU    MEM
${color #ffffff}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #ffffff}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #ffffff}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #ffffff}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}


Voila en esperant que tout arrive a bon port
Cordialement


Heinrich Hertz ne vit pas l'application de son dispositif et de sa découverte. Il se contenta de noter que « cela n'a aucune espèce d'application. C'est juste une expérience qui permet de prouver que le maître Maxwell avait raison — nous avons simplement ces ondes électromagnétiques mystérieuses que nous ne pouvons voir à l'œil nu. Mais elles sont là. »

Hors ligne

#15 21-06-2009 09:21:18

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Conky

Diable ! Merci de cette présentation à nu triode, c'est maléf... magnifique ! cool

Je me sens conky à mort, là... wink

Amitié et félicitation, Joel

Dernière modification par smolski (21-06-2009 09:24:49)


saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#16 21-06-2009 10:29:11

Bibou
Membre
Distrib. : Wheezy 64 bits
Noyau : 3.2.0-2-amd64
(G)UI : Gnome 3.4.1
Inscription : 16-06-2009

Re : Conky

Voici ma contritution, il est pas fini. J'ai encore des soucis avec les caractères accentués et il manque encore des choses comme l'heure, l'utilisation des 2 coeurs du processeur,... . Quand il seras fini je partagerais mon code. wink

conky_encours.png

Dernière modification par Bibou (21-06-2009 10:36:45)


UltraPortable: Hp 2510p ~ Core 2 duo U7700 ~ 4Go DDR2 | Debian Sid
New pc fixe: Hp p6235 ~ Core 2 Quad Q8300 ~ 6Go DDR3 | Debian Sid

Hors ligne

#17 21-06-2009 15:17:00

Bibou
Membre
Distrib. : Wheezy 64 bits
Noyau : 3.2.0-2-amd64
(G)UI : Gnome 3.4.1
Inscription : 16-06-2009

Re : Conky

Le voila fini, normalement! smile Très simple, il concentre toutes les infos utiles pour moi.

conky_stable.png
conky.png

Fichier .conkyrc

use_xft yes
background no
xftfont DejaVuSans:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window no
own_window_transparent yes
double_buffer yes
minimum_size 200 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 0
border_width 0
default_color 000000
default_shade_color black
default_outline_color black
alignment top_right
gap_x 0
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no

TEXT
${alignc}Debian 5.0 Lenny
${color #000000}${alignc}${time %d/%m/%Y} - ${time %H:%M:%S}

${color #000000}Cpu1:$color ${cpu cpu1}%  -  ${color #000000}Cpu2:$color ${cpu cpu2}%
${color #000000}Ram:$memperc%  -  ${color #000000}Swap:$swapperc%
Wifi: ${wireless_link_qual wlan0}%  -  Batt: ${color}${execi 10 acpi | grep 'Battery' | cut -c29-32}
/home: ${fs_free_perc /home}% de libre

${color #000000}${execi 120 ~/.conky/meteo.sh FRXX0076}${execi 120 ~/.conky/meteo2.sh "Ville"}
${color}Aujourd'hui: ${execi 120 ~/.conky/meteo2.sh "Température aujourd'hui"}  ${font weather:size=30}${voffset -18}${execi 120 ~/.conky/meteo2.sh "Conditions aujourd'hui"}${font}${voffset -11}
Vent: ${execi 120 ~/.conky/meteo2.sh "Vent aujourd'hui"}
Soleil: ${execi 120 ~/.conky/meteo2.sh "Lever du soleil"} - ${execi 120 ~/.conky/meteo2.sh "Coucher du soleil"}
Demain: ${execi 120 ~/.conky/meteo2.sh "Température demain"}  ${font weather:size=30}${voffset -24}${execi 120 ~/.conky/meteo2.sh "Conditions demain"}${font}${voffset -11}


Fichier meteo.sh

#!/bin/bash

# Répertoire de ce script et du XSLT
RUNDIR=~/.conky
# Emplacement du XSLT
XSLT=$RUNDIR/meteo.xslt
# Fichier de destination des informations
DESTFILE=/tmp/conky_meteo.txt
# Emplacement de xsltproc
XSLTCMD=/usr/bin/xsltproc

# Traitement
URL="http://xoap.weather.com/weather/local/$1?cc=*&unit=m&dayf=2"
w3m -dump $URL | $XSLTCMD $XSLT - > $DESTFILE


Fichier meteo2.sh

#!/bin/bash

# Fichier où sont stockées les informations
SRCFILE=/tmp/conky_meteo.txt

# Traitement
RESULTAT=$(grep "$1" $SRCFILE | awk -F " : " '{print $2}')

# Transformation de la condition en lettre qui deviendra une icône
if echo "$1" | grep -i -q 'condition'; then
    if echo "$RESULTAT" | grep -i -q 'partly cloudy'; then
    RESULTAT='c'
  elif echo "$RESULTAT" | grep -i -q 'fair'; then
    RESULTAT='b'
  elif echo "$RESULTAT" | grep -i -q 'sunny'; then
    RESULTAT='D'
  elif echo "$RESULTAT" | grep -i -q 'cloudy'; then
    RESULTAT='d'
  elif echo "$RESULTAT" | grep -E -i -q 'storm|thunder'; then
    RESULTAT='i'
  elif echo "$RESULTAT" | grep -i -q 'snow'; then
    RESULTAT='k'
  elif echo "$RESULTAT" | grep -i -q 'rain'; then
    RESULTAT='h'
  elif echo "$RESULTAT" | grep -i -q 'shower'; then
    RESULTAT='g'
  fi

# Transformation des heures à l'américaine (5:50 AM) en heures à la française (5h50)
elif echo "$1" | grep -i -q 'soleil'; then
  RESULTAT=$(echo "$RESULTAT" | awk '{print $1}' | sed -e s/:/h/g)

  # Transformation des heures PM (9h38 PM) en heures françaises (21h38)
  if echo "$1" | grep -i -q 'coucher'; then
    HEURES=$(echo "$RESULTAT" | awk -F "h" '{print $1}')
    MINUTES=$(echo "$RESULTAT" | awk -F "h" '{print $2}')
    HEURES=$(($HEURES + 12))
    RESULTAT="${HEURES}h${MINUTES}"
  fi

# Transformation de "Ville, Pays" en "Ville"
elif echo "$1" | grep -i -q 'ville'; then
  RESULTAT=$(echo "$RESULTAT" | awk -F "," '{print $1}')

fi

# Affichage du résultat
echo $RESULTAT


Fichier meteo.xslt

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
        <xsl:output method="text" disable-output-escaping="yes"/>
        <xsl:template match="weather">
          <xsl:text>Ville : </xsl:text><xsl:value-of select="/weather/loc/dnam"/>
                <xsl:apply-templates select="cc"/>
                <xsl:apply-templates select="dayf/day[@d='1']"/>
                <xsl:text>
Lever du soleil : </xsl:text><xsl:value-of select="/weather/loc/sunr"/>
    <xsl:text>
Coucher du soleil : </xsl:text><xsl:value-of select="/weather/loc/suns"/>
        </xsl:template>

        <xsl:template match="cc">
<xsl:text>
Température aujourd'hui : </xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/>
<xsl:if test="tmp != flik">
<xsl:text> (</xsl:text>
<xsl:value-of select="flik"/>°<xsl:value-of select="/weather/head/ut"/>
<xsl:text> ressenti)</xsl:text>
</xsl:if>
<xsl:text>
Conditions aujourd'hui : </xsl:text><xsl:value-of select="t"/>
<xsl:text>
Vent aujourd'hui : </xsl:text>
<xsl:choose>
<xsl:when test="wind/s = 'calm'"><xsl:text>0</xsl:text></xsl:when>
<xsl:otherwise><xsl:value-of select="wind/s"/></xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
<xsl:value-of select="/weather/head/us"/>
</xsl:template>

<xsl:template match="dayf/day[@d='1']">
<xsl:text>
Température demain : de </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text> a </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text>
Conditions demain : </xsl:text><xsl:value-of select="part[@p='d']/t"/>
</xsl:template>
</xsl:stylesheet>

Dernière modification par Bibou (21-06-2009 15:21:09)


UltraPortable: Hp 2510p ~ Core 2 duo U7700 ~ 4Go DDR2 | Debian Sid
New pc fixe: Hp p6235 ~ Core 2 Quad Q8300 ~ 6Go DDR3 | Debian Sid

Hors ligne

#18 21-06-2009 15:41:06

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Conky

Tout beau et tout bon Bibou...

Qu'il est bô
qu'il est bon
le conky Bibou !

Fête de la music oblige, hein !

Sinon, dans le bar,il y a ce lien :
http://debian-facile.org/forum/viewtopic.php?id=154

déjà ouvert... aussi ! wink

Tchip !

Edit :
Tchap... Post suivant, y'a pu conky au bar... c'est mieux ! big_smile

Dernière modification par smolski (22-06-2009 09:09:22)


saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#19 22-06-2009 08:41:11

n3os
Modérateur
Lieu : /Debian/Home/neos
Distrib. : Sid
Noyau : 2.6.35
(G)UI : e17
Inscription : 14-07-2007

Re : Conky

Salut,

j'ai supprimé le post de conky au bar, il y avait peu de messages, on continue ici.

le mien horizontal :

4a3f34ac.png

le fichier .conkyrc :

double_buffer yes
update_interval 1
background no

own_window yes
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

use_xft yes
override_utf8_locale yes
#xftfont HandelGotD:style=bold:size=9
xftfont Comic Sans MS:style=Gras:size=10.5
xftalpha 0.8

alignment tm
color2 white
color1 1992d6
color3 e1e1e1

minimum_size 950
maximum_width 950
uppercase yes

gap_x 0
gap_y 0

TEXT

$color3 cpu1 : ${goto 61}$color1${cpu cpu1} ${goto 86}% $color3 - cpu2 : ${goto 173}$color1${cpu cpu2}${goto 197}% ${goto 210}$color3 - Mem : ${goto 273}$color1 $memperc ${goto 302}% ${goto 319}$color3 - core 0 : $color1${goto 402} ${execi 10 sensors | grep 'Core 0' | cut -c15-21}${goto 456} $color3 - core 1 : $color1${goto 550}${execi 10 sensors | grep  'Core 1' | cut -c15-21}  ${goto 602}$color3 - hd : $color1${execi 10 /usr/sbin/hddtemp -n /dev/sda} °C  ${goto 707}$color3 - hd2 : $color1${execi 10 /usr/sbin/hddtemp -n /dev/sdb} °C ${goto 814}$color3 - Gpu : $color1 ${goto 879}${execi 10 nvidia-settings -q gpucoretemp |grep '):' | cut -c 38-39}°C


ou là --> .conkyrc

Donc n'oubliez pas le code et une capture miniature de votre bureau

Hors ligne

#20 24-06-2009 06:52:52

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Conky

Bonjour,

Noté et rectifié dans le post précédent neos ! smile

C'est le boulot là... Et j'aimerai suivre l'évolution des températures aussi...
à suivre donc...

J'aimerai que conky passe dessus les applications lancées...
Ce possible..? Allééééé.... Ouais ? cool

Merci pour vos script conkyrc, c'est mieux que tout pour démarrer la bidouille sur conky ! cool

Amidoué, Joel

Bon, je vous colle le mien actuel... tiré de celui de triode... Ca va bouger grave encore... Tip :

Zé le script là :

    # set to yes if you want Conky to be forked in the background
    background no


    cpu_avg_samples 2
    net_avg_samples 2

    out_to_console no

    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 7x12
    #font 6x10
    #font 7x13
    #font 8x13
    #font 7x12
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

    # Use Xft?
    use_xft yes

    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=9

    own_window_transparent yes
    own_window_colour black
    # Text alpha when using Xft
    xftalpha 0.8

    #on_bottom yes

    # mail spool
    mail_spool $MAIL

    # Update interval in seconds
    update_interval 1
    #Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type   override  # type de fenêtre "maison" (le type desktop convient si on n'a pas d'ombre)
    own_window_hints  undecorated,below,sticky,skip_taskbar,skip_pager # définition du type

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

    # Minimum size of text area
    minimum_size 380
    maximum_width 380

    # Draw shades?
    draw_shades no

    # Draw outlines?
    draw_outline no

    # Draw borders around text
    draw_borders no

    # Stippled borders?
    stippled_borders 10

    # border margins
    border_margin 4

    # border width
    border_width 1

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

    # Text alignment, other possible values are commented
    #alignment top_left
    #minimum_size 10 10
    gap_x 25
    gap_y  40
    alignment top_right
    #alignment top_left
    #alignment bottom_right

    # Gap between borders of screen and text

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

    # Subtract file system buffers from used memory?
    no_buffers yes

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

    # boinc (seti) dir
    # seti_dir /opt/seti

    # Possible variables to be used:
    #
    #      Variable         Arguments                  Description              
    #  acpiacadapter                     ACPI ac adapter state.                  
    #  acpifan                           ACPI fan state                          
    #  acpitemp                          ACPI temperature.                      
    #  adt746xcpu                        CPU temperature from therm_adt746x      
    #  adt746xfan                        Fan speed from therm_adt746x            
    #  battery           (num)           Remaining capasity in ACPI or APM      
    #                                    battery. ACPI battery number can be    
    #                                    given as argument (default is BAT0).    
    #  buffers                           Amount of memory buffered              
    #  cached                            Amount of memory cached                
    #  color             (color)         Change drawing color to color          
    #  cpu                               CPU usage in percents                  
    #  cpubar            (height)        Bar that shows CPU usage, height is    
    #                                    bar's height in pixels                  
    #  downspeed         net             Download speed in kilobytes            
    #  downspeedf        net             Download speed in kilobytes with one    
    #                                    decimal                                
    #  exec              shell command   Executes a shell command and displays  
    #                                    the output in torsmo. warning: this    
    #                                    takes a lot more resources than other  
    #                                    variables. I'd recommend coding wanted  
    #                                    behaviour in C and posting a patch :-).
    #  execi             interval, shell Same as exec but with specific interval.
    #                    command         Interval can't be less than            
    #                                    update_interval in configuration.      
    #  fs_bar            (height), (fs)  Bar that shows how much space is used on
    #                                    a file system. height is the height in  
    #                                    pixels. fs is any file on that file    
    #                                    system.                                
    #  fs_free           (fs)            Free space on a file system available  
    #                                    for users.                              
    #  fs_free_perc      (fs)            Free percentage of space on a file      
    #                                    system available for users.            
    #  fs_size           (fs)            File system size                        
    #  fs_used           (fs)            File system used space                  
    #  hr                (height)        Horizontal line, height is the height in
    #                                    pixels                                  
    #  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev  
    #                                    may be omitted if you have only one I2C
    #                                    device. type is either in (or vol)      
    #                                    meaning voltage, fan meaning fan or temp
    #                                    meaning temperature. n is number of the
    #                                    sensor. See /sys/bus/i2c/devices/ on    
    #                                    your local computer.                    
    #  kernel                            Kernel version                          
    #  loadavg           (1), (2), (3)   System load average, 1 is for past 1    
    #                                    minute, 2 for past 5 minutes and 3 for  
    #                                    past 15 minutes.                        
    #  machine                           Machine, i686 for example              
    #  mails                             Mail count in mail spool. You can use  
    #                                    program like fetchmail to get mails from
    #                                    some server using your favourite        
    #                                    protocol. See also new_mails.          
    #  mem                               Amount of memory in use                
    #  membar            (height)        Bar that shows amount of memory in use  
    #  memmax                            Total amount of memory                  
    #  memperc                           Percentage of memory in use            
    #  new_mails                         Unread mail count in mail spool.        
    #  nodename                          Hostname                                
    #  outlinecolor      (color)         Change outline color                    
    #  pre_exec          shell command   Executes a shell command one time before
    #                                    torsmo displays anything and puts output
    #                                    as text.                                
    #  processes                         Total processes (sleeping and running)  
    #  running_processes                 Running processes (not sleeping),      
    #                                    requires Linux 2.6                      
    #  shadecolor        (color)         Change shading color                    
    #  stippled_hr       (space),        Stippled (dashed) horizontal line      
    #                    (height)      
    #  swapbar           (height)        Bar that shows amount of swap in use    
    #  swap                              Amount of swap in use                  
    #  swapmax                           Total amount of swap                    
    #  swapperc                          Percentage of swap in use              
    #  sysname                           System name, Linux for example          
    #  time              (format)        Local time, see man strftime to get more
    #                                    information about format                
    #  totaldown         net             Total download, overflows at 4 GB on    
    #                                    Linux with 32-bit arch and there doesn't
    #                                    seem to be a way to know how many times
    #                                    it has already done that before torsmo  
    #                                    has started.                            
    #  totalup           net             Total upload, this one too, may overflow
    #  updates                           Number of updates (for debugging)      
    #  upspeed           net             Upload speed in kilobytes              
    #  upspeedf          net             Upload speed in kilobytes with one      
    #                                    decimal                                

    #  uptime                            Uptime                                  
    #  uptime_short                      Uptime in a shorter format              
    #
    #  seti_prog                         Seti@home current progress
    #  seti_progbar      (height)        Seti@home current progress bar
    #  seti_credit                       Seti@hoome total user credit


    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    #${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
    #${font Verdana:size=10}as many times as I choose
    #${font Perry:size=10}Including UTF-8,
    #${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
    # stuff after 'TEXT' will be formatted on screen
    #${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}
    #${execi 300 /home/triode/scripts/conky-rss.sh http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss 4 2}        
    #Tu as ${color3}${texeci 60 perl ~/scripts/gmail.pl n} ${color}Nouveau(x) Message(s).
    #${execi 60 perl ~/scripts/gmail.pl s}
    TEXT
    ${color #ffffff}/Swap       ${color #ffffff}$swap/$swapmax${alignr}  ${color #ffffff}${swapbar 5,115}  
    ${color #ffffff}/root      ${color #ffffff}${fs_used /}/${fs_size /}${alignr}${color #ffffff}${fs_bar 5,120 /}
    ${color #ffffff}/home      ${color #ffffff}${fs_used /home}/${fs_size /home}${alignr}${color #ffffff}${fs_bar 5,120 /home}
    ${color #ffffff}/media    ${color #ffffff}${fs_used /media/windows}/${fs_size /media/windows}${alignr}${color #ffffff}${fs_bar 5,120 /media/windows}

    ${color slate white}Artiste:   ${color ffffff}${exec cat ~/.quodlibet/current | grep artist | cut -d "=" -f2 }
    ${color slate white}Titre:      ${color ffffff}${exec cat ~/.quodlibet/current | grep title | cut -d "=" -f2 }${alignr}${color slate white}(${color ffffff}${exec cat ~/.quodlibet/current | grep tracknumber | cut -d "=" -f2 }${color slate white})
    ${color slate white}Album:   ${color ffffff}${exec cat ~/.quodlibet/current | grep album | cut -d "=" -f2 }
    ${color slate white}genre:   ${color ffffff}${exec cat ~/.quodlibet/current | grep genre | cut -d "=" -f2 }${color slate white}${alignr}Format: ${color ffffff}${exec cat ~/.quodlibet/current | grep format | cut -d "=" -f2 }

    ${color #ffffff}$nodename ${alignc}$sysname $kernel ${alignr}
    ${color #ffffff}Load:${color #ffffff} $loadavg${color #ffffff}  CPU:${cpu}%
    ${cpubar}
    ${color #ffffff}Processes:${color #ffffff}$processes  ${color #ffffff}    Running:${color #ffffff} $running_processes
    ${color #ffffff}NOM              PID    CPU    MEM
    ${color #ffffff}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color #ffffff}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color #ffffff}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color #ffffff}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    ${color #ffffff}RAM Usage:${color #ffffff}$mem/$memmax $memperc%
    ${color #ffffff}$membar
    ${color #ffffff}RAM              PID    CPU    MEM
    ${color #ffffff}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color #ffffff}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color #ffffff}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    ${color #ffffff}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
Système:
Uptime: $uptime - Charge: $loadavg
Fréquence CPU: $freq_dyn_g Maximum:$freq_g
Utilisation Core 1: ${cpu cpu1}% ${cpubar cpu1}
Utilisation Core 2: ${cpu cpu2}% ${cpubar cpu2}
${cpugraph cpu2 32,150 CF0DC5 FFDD00} ${cpugraph cpu1 32,150 55E76B 723FFF}

Réseau (Gigabit - eth0): ${alignr}IP: ${addr eth0}
Descendant: ${downspeed eth0} ko/s${offset 25}Montant:${upspeed eth0} ko/s
${downspeedgraph eth0 32,150 2C4B68 5C9CD9} ${upspeedgraph eth0 32,150 2C4B68 5C9CD9}

Réseau (Gigabit - eth1): ${alignr}IP: ${addr eth1}
Descendant: ${downspeed eth1} ko/s${offset 25}Montant:${upspeed eth1} ko/s
${downspeedgraph eth1 32,150 2C4B68 5C9CD9} ${upspeedgraph eth1 32,150 2C4B68 5C9CD9}


A Tchibâââ ! lol

[img align=D]http://nsm01.casimages.com/img/2009/06/24//090624080306538993944752.png[/img]

Dernière modification par smolski (24-06-2009 07:02:29)


saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#21 04-09-2009 21:39:07

damien
Modo / Rédacteur Wiki
Distrib. : Gentoo & Debian 12
(G)UI : Xfce4
Inscription : 22-09-2008
Site Web

Re : Conky

Voici le mien

119496.jpeg

Et voici le code du fichier .conkyrc

use_xft yes
background no
xftfont DejaVuSans:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
double_buffer yes
minimum_size 280 900
maximum_width 308
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color 2C4B68
alignment top_left
gap_x 200
gap_y 40
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
uppercase no
use_spacer none

TEXT
$nodename linux-$kernel${alignr}${time %T}

Systeme:
Uptime: $uptime - Charge: $loadavg
Frequence CPU: $freq_dyn_g Maximum:$freq_g
Utilisation Core 1: ${cpu cpu1}% ${cpubar cpu1}
Utilisation Core 2: ${cpu cpu2}% ${cpubar cpu2}
${cpugraph cpu2 32,150 2C4B68 5C9CD9} ${cpugraph cpu1 32,150 2C4B68 5C9CD9}
Memoire: $mem/$memmax - $memperc% ${membar}
Swap : $swap/$swapmax - $swapperc% ${swapbar}
Processus: $processes Running: $running_processes

Reseau (Gigabit - eth1): ${alignr}IP: ${addr eth1}
Descendant: ${downspeed eth1} ko/s${offset 25}Montant:${upspeed eth1} ko/s
${downspeedgraph eth1 32,150 2C4B68 5C9CD9} ${upspeedgraph eth1 32,150 2C4B68 5C9CD9}

nVidia Geforce 7950 GT:
Frequences GPU: ${execi 10 nvclock -i | grep "GPU clock" | grep '[0-9][0-9][0-9].[0-9]' -o}MHz / RAM:${execi 300 nvclock -i | grep "Clock" | grep '[0-9][0-9][0-9].[0-9]' -o}MHz
Temperature GPU: ${execi 10 nvclock -T | grep "temperature" | grep '[0-9][0-9]' -o}C

${color}Noms              PID     CPU%   MEM%
${color}Utilisation CPU
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}

${color}Utilisation Memoire
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

Systemes de fichiers:
/ ${fs_used /}/${fs_size /} ${fs_bar /}
/home ${fs_used /home/}/${fs_size /home/} ${fs_bar /home/}
/usr ${fs_used /usr/}/${fs_size /usr/} ${fs_bar /usr/}
/opt ${fs_used /opt/}/${fs_size /opt/} ${fs_bar /opt/}
/var ${fs_used /var/}/${fs_size /var/} ${fs_bar /var/}
sauvegarde ${fs_used /media/sauvegarde/}/${fs_size /media/sauvegarde/} ${fs_bar /media/sauvegarde/}

${if_running amarokapp}
${color}AmaroK${color white}
${alignc}${execi 10 ~/.conky/amarok artist}
${alignc}${execi 10 ~/.conky/amarok title}
${execibar 1 ~/.conky/amarok progress}
${alignc}"${execi 10 ~/.conky/amarok album}"
${alignc}${execi 10 ~/.conky/amarok year} - ${color white}${alignc}${execi 10 ~/.conky/amarok genre}$endif

Quod Libet
${color}Artiste:   ${color ffffff}${exec cat ~/.quodlibet/current | grep artist | cut -d "=" -f2 }
${color}Titre:      ${color ffffff}${exec cat ~/.quodlibet/current | grep title | cut -d "=" -f2 }${alignr}${color}(${color ffffff}${exec cat ~/.quodlibet/current | grep tracknumber | cut -d "=" -f2 }${color})
${color}Album:   ${color ffffff}${exec cat ~/.quodlibet/current | grep album | cut -d "=" -f2 }
${color}genre:   ${color ffffff}${exec cat ~/.quodlibet/current | grep genre | cut -d "=" -f2 }${color}${alignr}Format: ${color ffffff}${exec cat ~/.quodlibet/current | grep format | cut -d "=" -f2 }

$color ${execi 1800 /home/damien/scripts/weather.sh FRXX0274}


Fichier weather.sh

#!/bin/sh

#
# Grab weather data from weather.com and format it according to the given XSLT
# Script written by boojit
# Modified by Hellf[i]re
# The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz

# Usage:
# ${execi 1800 /path/to/weather/weather.sh location}
# Usage Example:
# ${execi 1800 /home/user/weather/weather.sh 03833}

# your Location ID: use http://xml.weather.com/search/search?where=[yourcity] to find it
# U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
LOCID=$1

# s=standard units, m=metric units
UNITS=m

# where this script and the XSLT lives
RUNDIR=/home/damien/scripts/

# there's probably other stuff besides CURL that will work for this, but i haven't
# tried any others.
# you can get curl at http://curl.haxx.se/
CURLCMD=/usr/bin/curl

# get it at http://xmlsoft.org/XSLT/
XSLTCMD=/usr/bin/xsltproc

# you probably don't need t[b][/b]o modify anything below this point....

# CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
CURLURL="http://xml.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS&dayf=2"

# The XSLT to use when translating the response from weather.com
# You can modify this xslt to your liking
XSLT=$RUNDIR/.weather.xslt

#filter (if you want to convert stuff to lower-case or upper case or something)
#FILTER="|gawk '{print(tolower(\$0));}'"


#####
eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER"


fichier .weather.xslt

<!--

This XSLT is used to translate an XML response from the weather.com
 XML API.

 You can format this file to your liking. Two things you may feel
 like doing:

        1) Modify the layout of the fields or static text already defined
        2) Add other fields from the XML response file that aren't referenced in this
           XSLT. You can grab a full list by just doing a:
           wget "http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS"
           (change $LOCID and $UNITS to suit your needs)
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
        <xsl:output method="text" disable-output-escaping="yes"/>
        <xsl:template match="weather">
                <xsl:apply-templates select="cc"/>
                <xsl:apply-templates select="dayf/day[@d='1']"/>
        </xsl:template>


        <xsl:template match="cc">
                <xsl:text>Location: </xsl:text><xsl:value-of select="obst"/>
<xsl:text>:
</xsl:text>
<xsl:text>
  Temperature : </xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/>
<xsl:if test="tmp != flik">
<xsl:text>
  Temperature ressentie : </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/head/ut"/>
</xsl:if>
<xsl:text>
  Conditions : </xsl:text><xsl:value-of select="t"/>
<xsl:text>
  Vent : </xsl:text>
<xsl:choose>
        <xsl:when test="wind/s = 'calm'"><xsl:text>0</xsl:text></xsl:when>
        <xsl:otherwise><xsl:value-of select="wind/s"/></xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/weather/head/us"/>
<xsl:choose>
        <xsl:when test="wind/s = 'calm'"><xsl:text>(0mph)</xsl:text></xsl:when>
        <xsl:otherwise><xsl:text> (</xsl:text><xsl:value-of select="round(wind/s * 0.6214)"/><xsl:text>mph)</xsl:text></xsl:otherwise>
</xsl:choose>
<xsl:text> (</xsl:text><xsl:value-of select="wind/t"/>
<xsl:text>)</xsl:text>
        </xsl:template>

        <xsl:template match="dayf/day[@d='1']">
<xsl:text>
  Demain : </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text>, </xsl:text><xsl:value-of select="part[@p='d']/t"/>

<xsl:text>
  Leve du soleil : </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/loc/sunr"/>
<xsl:text>
  Couche du soleil : </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/loc/suns"/>
    </xsl:template>
</xsl:stylesheet>


signature.jpg

Hors ligne

#22 31-10-2009 18:47:18

llapingachos
Membre
Lieu : Toulouse
Distrib. : Unstable > Testing > Experimental
Noyau : 2.6.31-5.slh.2-sidux-686
(G)UI : Openbox
Inscription : 19-09-2009

Re : Conky

Notez aussi que vous pouvez faire plusieurs conky pour plus de flexibilité. Dans ce cas, chacun aura son fhcier de conf que vous devrez assigner au lancement de conky. Ainsi

conky -c .conky-numero-un


lance le premier conky et utilise le fichier de conf .conky-numero-un.
puis pareil pour les autres... Pour automatiser ça au démarrage, il faudrait un script pour gnome, et dans openbox vous rajoutez dans le fichier autostart.sh
exemple :

(sleep 2s && conky -c fichier-de-conf-1 && conky -c fichier-de-conf-2) &


Par exemple voici mon bureau :
1257011014.png
ici en grand

Voilà les fichiers de conf :
.conkyrc

double_buffer yes
own_window  yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
draw_borders no
border_margin 2
draw_shades no
gap_x 60
gap_y 50
alignment bottom_right
update_interval 1
default_color  DCDCCC
own_window_colour 121212
use_xft yes
override_utf8_locale yes
font Smash :size=30
text_buffer_size 1024

TEXT
${color 666666}CPU
${color 666666}${voffset -20}${cpubar 17}


.conkyrc2

double_buffer yes
own_window  yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
draw_borders no
border_margin 2
draw_shades no
gap_x 60
gap_y 50
alignment bottom_left
update_interval 1
default_color  DCDCCC
own_window_colour 121212
use_xft yes
override_utf8_locale yes
font Smash :size=30   
text_buffer_size 1024
TEXT
${color 666666}MEM
${color 666666}${voffset -20}${membar 17}


.conkyrc3

double_buffer yes       
own_window  yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
draw_borders no
border_margin 2
draw_shades no
gap_x 560
gap_y 42
alignment bottom_left
update_interval 1
default_color  DCDCCC
own_window_colour 121212
use_xft yes
override_utf8_locale yes
font Smash:size=15   
text_buffer_size 1024
TEXT
${color 666666} CPU : ${platform coretemp.0 temp 1} C - ${platform coretemp.1 temp 1} C


.conkyrc4

double_buffer yes       
own_window  yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
draw_borders no
border_margin 2
draw_shades no
gap_x 460
gap_y 110
alignment bottom_left
update_interval 1
default_color  DCDCCC
own_window_colour 121212
use_xft yes
override_utf8_locale yes
font Smash :size=12
text_buffer_size 1024

TEXT
${color 666666} ${exec rhythmbox-client --print-playing}


(remarquez qu'il vous faut installer la police smash pour un bon rendu)

A+

Dernière modification par llapingachos (31-10-2009 18:48:06)


GNU/Linux is user friendly, it's just selective about who its friends are.

Hors ligne

#23 01-11-2009 06:53:55

lol
Membre
Lieu : Madagascar
Distrib. : SID + Experimental
Noyau : 5 ou 6 ça dépend de la machine.
(G)UI : Mate
Inscription : 27-06-2009
Site Web

Re : Conky

Et encore un jeu de mot débile...

Conky ch'tadore !

Il me semble parfois que Dieu, en créant l'homme, ait quelque peu surestimé ses capacités. Oscar Wilde.
A lire: Pourquoi le crossposting doit être signalé

Hors ligne

#24 01-11-2009 07:03:17

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Conky

Ça... j'adore aussi moi !

Tchibâââ ! lol

saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#25 01-11-2009 07:17:27

lol
Membre
Lieu : Madagascar
Distrib. : SID + Experimental
Noyau : 5 ou 6 ça dépend de la machine.
(G)UI : Mate
Inscription : 27-06-2009
Site Web

Re : Conky

Je sais que ce n'est pas l'endroit... Mais, tu dors jamais toi ? wink

Il me semble parfois que Dieu, en créant l'homme, ait quelque peu surestimé ses capacités. Oscar Wilde.
A lire: Pourquoi le crossposting doit être signalé

Hors ligne

Pied de page des forums