Accueil > Informatique, Ubuntu > Conky, un petit programme pour avoir un tableau de bord de votre PC

Conky, un petit programme pour avoir un tableau de bord de votre PC

Ce petit programme hautement configurable vous permet de « monitorer » votre PC.

Site officiel avec des exemples.

Voici le mien
capture.png

Clicker sur l’image pour l’agrandir.

Voici le code source (à adapter suivant votre configuration):

use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
double_buffer yes
no_buffers yes
background yes
##own_window_hints undecorated,below,skip_taskbar
##own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 0
border_width 0
default_color white
default_shade_color black
default_outline_color black
alignment top-right
gap_x 10
gap_y 10
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
##min_port_monitors 0
##min_port_monitor_connections 0

TEXT

${color yellow}Bonjour Michel
${time %A %d %B %Y} - ${time %H:%M:%S}
IP Locale ${addr eth0} - IP Publique ${execi 1800 ~/Perso/monip.sh}
$sysname $kernel sur $machine $freq_g GHz
${color grey}$stippled_hr
${color green}Uptime:$color $uptime ${color white}- Load:$color $loadavg
${color white}CPU Usage:${color white} $cpu% ${cpubar}
${color red}${cpugraph 0000ff 00ff00}
${color white}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${color white}Processes:$color $processes ${color white}Running:$color $running_processes
${color grey}$stippled_hr
${color green}Reseau
${color white}Down ${downspeed eth0} k/s${color white} ${offset 80}Up:${color white} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}
${color grey}$stippled_hr
${color #FFFF00}/root ${fs_used /}/${fs_size /}${alignr}${fs_used_perc /}%
${fs_bar 8 /}
/home ${fs_used /home}/${fs_size /home}${alignr}${fs_used_perc /home}%
${fs_bar 8 /home}
/hdb1 ${fs_used /media/disque2}/${fs_size /media/disque2}${alignr}${fs_used_perc /media/disque2}%
${fs_bar 8 /media/disque2}
${color grey}$stippled_hr
${color green}Process PID %CPU %MEM
${color red} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color white} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color white} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color white} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color white} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color green}Memoire
${color red} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color white} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color white} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color white} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color white} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color grey}$stippled_hr
${color green}Temperature systeme
${color white}M/B: ${exec expr `cat /sys/bus/i2c/devices/0-004c/temp1_input` / 1000} C
${color red}CPU: ${exec expr `cat /sys/bus/i2c/devices/0-004c/temp2_input` / 1000} C
${color grey}$stippled_hr
${color green}Port(s) ouvert(s): ${color black}${tcp_portmon 1 65535 count}
${color white} ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 lservice 5}
${color grey}$stippled_hr

Catégories :Informatique, Ubuntu
  1. Aucun commentaire pour l’instant.
  1. No trackbacks yet.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s

%d blogueurs aiment cette page :