Accueil
Forum
Wiki
Projets
Créer un compte
Groupes
Utilisateurs
Rester connecté
Personnalisation de GNU/Linux
Liste des forums
Conky
conky
Poster un message
Le forum
Liste des forums
Les sujets tendances
Les sujets du jour
Les sujets sans réponses
Poster un message
Sujet
conky
[quote=ljere]voici mon conky pour commencer je vous donne le script pour la météo qui va avec. [url=http://img90.imageshack.us/my.php?image=capturegj9.jpg][img]http://img90.imageshack.us/img90/7973/capturegj9.th.jpg[/img][/url] le conkyrc [code=bash]# temps pour fermer conky en seconde. 0 = toujours actif total_run_times 0 # affiche le texte sur la sortie standard out_to_console no # réglage de la mémoire, pour éviter le clignotement double_buffer yes # Soustraire les mémoires tampons de la mémoire utiliser no_buffers yes text_buffer_size 2048 # taux de rafraichissement de la fenêtre (en secondes) update_interval 1 # nombre d'échantillons à utiliser pour calculer la moyenne d'utilisation cpu_avg_samples 4 net_avg_samples 2 # taille et positon alignment top_right minimum_size 320 5 maximum_width 320 # écart avec le bord x=gauche ou droit y= haut ou bas gap_x 5 gap_y 100 # afficher les ombres draw_shades yes # afficher des contours draw_outline no # contours autour des blocs de texte draw_borders no # largeur du contour border_width 1 # largeur des marges border_margin 4 #pour que conky tourne en arrière plan background no pour les tests background yes # utiliser sa propre fenêtre own_window yes #type de fenêtre : normal(avec le cadre) / override / desktop own_window_type override # normal / override / desktop #pseudo transparence si vous avez des icones sous le conky elle ne seront plus accessible une fois conky activé own_window_transparent yes # Utiliser Xft (polices lissées etc) use_xft yes xftalpha .1 override_utf8_locale yes # force UTF8 #police a utiliser : use_xft doit être a "yes" xftfont Fixed:size=7#OCR A Std:size=6 # Tout le texte en majuscule uppercase no # Ajoute des espaces après certains objets pour éviter de les faire bouger. # Fonctionne uniquement avec les polices Fixes use_spacer right # Couleurs default_color FFFFFF default_shade_color 333333 default_outline_color black color1 e49c16 color2 CA0000 #rouge color6 EEEEEE color7 DDDDDD color8 CCCCCC color9 BBBBBB TEXT ${offset 25}${color}${time %A %d %B %Y} ${offset 23}${color1} ${font Astron Boy Video:style=Bold:pixelsize=30}${time %H:%M:%S}${font}${color} ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=15} Ordinateur ${color2}${hr}${font} ${offset 25}${color1}${execi 86400 cat /etc/lsb-release|grep ID|cut -d= -f2} ${color}${execi 86400 cat /etc/lsb-release|grep REL|cut -d= -f2} ${execi 86400 cat /etc/lsb-release|grep NAME|cut -d= -f2} ${offset 25}${color1}$sysname ${color}$kernel ${color}$machine ${offset 25}${color1}${nodename}${color} fonctionne depuis ${color1}$uptime ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=15} Réseau ${color2}${hr} ${color1}${offset 25}${font}Eth0 ${offset 25}${color1}Lan :${alignr}${offset -25}${color}${addr eth0} ${offset 25}${color1}Wan :${alignr}${offset -33}${color}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1} ${offset 25}${color1}Téléchargement${color}${alignr}${offset -35}${color1}Emission${color} ${offset 25}${color2}${downspeedgraph eth0 16,115 582D10 E08000}${alignr}${offset -35}${upspeedgraph eth0 16,115 582D10 E08000} ${offset 25}${color}${downspeed eth0}ko/s ${totaldown eth0}${alignr}${offset -32}${upspeed eth0}ko/s ${totalup eth0} ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=15} Processeur ${color2}${hr} ${font}${color1}${alignr}${offset -32}Total : ${color}$processes ${color1}En cours :${color}$running_processes ${offset 25}${color1}CPU : ${color}${freq_dyn_g}GHz ${color1}soit : ${color}$cpu%${alignr}${color2}${offset -35}${voffset -12}${cpugraph 16,125 582D10 E08000} ${alignr}${offset -35}${color1}PID %CPU %MEM ${offset 25}${color1}${top name 1}${alignr}${offset -35}${color} ${top pid 1} ${top cpu 1} ${top mem 1} ${offset 25}${color1}${top name 2}${alignr}${offset -35}${color6} ${top pid 2} ${top cpu 2} ${top mem 2} ${offset 25}${color1}${top name 3}${alignr}${offset -35}${color7} ${top pid 3} ${top cpu 3} ${top mem 3} ${offset 25}${color1}${top name 4}${alignr}${offset -35}${color8} ${top pid 4} ${top cpu 4} ${top mem 4} ${offset 25}${color1}${top name 5}${alignr}${offset -35}${color9} ${top pid 5} ${top cpu 5} ${top mem 5} ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=15} Mémoire ${color2}${hr}${font} ${offset 25}${color1}Ram :${alignc}${offset 1}${color2}${membar 5,170} ${color}${alignr}${offset -35}${memperc}% ${offset 25}${color1}Swap :${alignc}${color2}${swapbar 5,170} ${color}${alignr}${offset -35}${swapperc}% ${offset 25}${alignr}${offset -35}${color1}PID %CPU %MEM ${offset 25}${color1}${top_mem name 1}${alignr}${offset -35}${color} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} ${offset 25}${color1}${top_mem name 2}${alignr}${offset -35}${color6} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} ${offset 25}${color1}${top_mem name 3}${alignr}${offset -35}${color7} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} ${offset 25}${color1}${top_mem name 4}${alignr}${offset -35}${color8} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4} ${offset 25}${color1}${top_mem name 5}${alignr}${offset -35}${color9} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5} ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=15} Disques ${color2}${hr}${font} ${offset 25}${color1}/ :${color}${offset 31}${fs_used_perc /}% ${alignr}${offset -35}${color1}[${color}${fs_free /}${color1}/ ${color7}${fs_used /}${color1}/ ${color8}${fs_size /}${color1}] ${offset 25}${color2}${fs_bar 6,260 /} ${offset 25}${color1}/home :${color}${fs_used_perc /home}% ${alignr}${offset -35}${color1}[${color}${fs_free /home}${color1}/ ${color7}${fs_used /home}${color1}/ ${color8}${fs_size /home}${color1}] ${offset 25}${color2}${fs_bar 6,260 /home} ${offset 25}${color1}/stock :${color}${offset 2}${fs_used_perc /home/ljere/stock}% ${alignr}${offset -35}${color1}[${color}${fs_free /home/ljere/stock}${color1}/ ${color7}${fs_used /home/ljere/stock}${color1}/ ${color8}${fs_size /home/ljere/stock}${color1}] ${offset 25}${color2}${fs_bar 6,260 /home/ljere/stock} ${offset 25}${color1}/boot :${color}${offset 7}${fs_used_perc /boot}% ${alignr}${offset -35}${color1}[${color}${fs_free /boot}${color1}/ ${color7}${fs_used /boot}${color1}/ ${color8}${fs_size /boot}${color1}] ${offset 25}${color2}${fs_bar 6,260 /boot} ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=15} Température ${color2}${hr}${font} ${offset 25}${color1}Carte Mère :${alignr}${offset -35}${color}${exec sensors | grep temp1 | awk '{ print $2}'} ${offset 25}${color1}Processeur :${alignr}${offset -35}${color6}${exec sensors | grep temp2 | awk '{ print $2}'} ${offset 25}${color1}sda :${alignr}${offset -35}${color7}+${execi 10 hddtemp -n /dev/sda}.0°C ${offset 25}${color1}sdc :${alignr}${offset -35}${color8}+${execi 10 hddtemp -n /dev/sdc}.0°C ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=15} Météo ${color2}${hr}${font} ${offset 25}${color1}Ville :${alignr}${offset -35}${color}${execi 600 sh /home/ljere/.weather.sh "FRXX0052" | grep Ville | awk '{ print $2}'} ${offset 25}${color1}Conditions :${alignr}${offset -35}${color6}${execi 600 sh /home/ljere/.weather.sh "FRXX0052" | grep Conditions | awk '{ print $2}'}. ${offset 25}${color1}Température :${alignr}${offset -35}${color7}${execi 600 sh /home/ljere/.weather.sh "FRXX0052" | grep Temperature | awk '{ print $2}'}. ${offset 25}${color1}Demain :${alignr}${offset -35}${color8}${execi 600 sh /home/ljere/.weather.sh "FRXX0052" | grep Demain | awk '{ print $2}'}. ${offset 25}${color1}Vent :${alignr}${offset -35}${color9}${execi 600 sh /home/ljere/.weather.sh "FRXX0052" | grep Vent | awk '{ print $2}'}. ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=15} Rhythmbox ${color2}${hr}${font} ${if_running rhythmbox} ${offset 25}${color1}Artiste :${alignr}${offset -35}${color}${exec rhythmbox-client --no-start --print-playing-format "%ta"} ${offset 25}${color1}Album :${alignr}${offset -35}${color6}${exec rhythmbox-client --no-start --print-playing-format "%at"} ${offset 25}${color1}Titre :${alignr}${offset -35}${color7}${exec rhythmbox-client --no-start --print-playing-format "%tt"} ${offset 25}${color1}Durée :${alignr}${offset -35}${color8}${exec rhythmbox-client --no-start --print-playing-format "%te / %td"} ${else} ${offset 25}${color1}Rhythmbox n'est pas ouvert $endif ${color1}${font URW Chancery L:style=Medium Italic:pixelsize=18} Conçu par Ljere ${font}${color2}${hr}[/code][/quote]
Le saviez-vous ? La balise color permet d'afficher votre texte dans toutes les couleurs : [color=#ffdfa8][/color]
Personnalisation de GNU/Linux
Liste des forums
Conky
conky
Poster un message