Voici ma modeste contribution:
Il s'agit de l'adaptation d'un script que j'ai trouve je ne sais plus ou. Je pense que la partie interessante est l'utilisation de la variable if_mounted qui permet de n'afficher les information relatives a un point de montage que si celui-ci est monte.
Je n'ai pas pu mettre d'informations de temperatures, car pour une raison que j'ignore, lm_sensors n'arrive pas a trouver les capteurs de mon processeur (un Pentium D)...
background yes
font 7x13
use_xft no
mpd_host 130.118.44.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
double_buffer yes
minimum_size 280 5
draw_shades yes
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 black
alignment top_right
maximum_width 308
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
# stuff after 'TEXT' will be formatted on screen
TEXT
${color #5b6dad}$nodename
${color #5b6dad}Fedora 8 ${alignr}kernel $kernel
${color #5b6dad}Uptime:${color #7f8ed3} $uptime ${alignr}${time %T}
${color #5b6dad}Load:${color #7f8ed3} $loadavg
${color orange}SYSTEM ${hr 2}${color }
${color #5b6dad} Pentium D: Core1:${color #7f8ed3} ${freq_dyn_g 1} ${color #5b6dad} Core2:${color #7f8ed3} ${freq_dyn_g 2}
${color #000000}${cpugraph cpu1 32,309 000000 7f8ed3}
${color #000000}${cpugraph cpu2 32,309 000000 7f8ed3}
${color #5b6dad} RAM Usage:${color #7f8ed3} $mem/$memmax - $memperc% ${membar}
${color #5b6dad} Swap Usage:${color #7f8ed3} $swap/$swapmax - $swapperc% ${swapbar}
${color #5b6dad} Processes:${color #7f8ed3} $processes ${alignr}${color #5b6dad}Running:${color #7f8ed3} $running_processes
${color orange}NETWORKING ${hr 2}${color }
${color #5b6dad}Down:${color #7f8ed3} ${downspeed eth0} k/s${color #5b6dad}${offset 80}Up:${color #7f8ed3} ${upspeed eth0} k/s
${color #000000}${downspeedgraph eth0 32,150 000000 7f8ed3} ${color #000000}${upspeedgraph eth0 32,150 000000 7f8ed3}
${color #5b6dad}Address: ${color #7f8ed3}${addr eth0}
${color #5b6dad}TCP Connections: ${color #7f8ed3}${tcp_portmon 1 65535 count}
${color orange}FILE SYSTEMS ${hr 2}${color }
${color #5b6dad}/ ${color #7f8ed3}${fs_used /}/${fs_size /} ${color #7f8ed3}${fs_bar /}
${color #5b6dad}/home ${color #7f8ed3}${fs_used /home}/${fs_size /home} ${color #7f8ed3}${fs_bar /home}
${color #5b6dad}/var ${color #7f8ed3}${fs_used /var}/${fs_size /var} ${color #7f8ed3}${fs_bar /var}
${if_mounted /home/fduret/ExternalHD}${color #5b6dad}ExtHD ${color #7f8ed3}${fs_used /home/fduret/ExternalHD}/${fs_size /home/fduret/ExternalHD} ${color #7f8ed3}${fs_bar /home/fduret/ExternalHD}${endif}
${if_mounted /home/fduret/ExternalHD2}${color #5b6dad}ExtHD2 ${color #7f8ed3}${fs_used /home/fduret/ExternalHD2}/${fs_size /home/fduret/ExternalHD2} ${color #7f8ed3}${fs_bar /home/fduret/ExternalHD2}${endif}
${color orange}PROCESSES ${hr 2}${color }
${color #5b6dad}Name PID CPU% MEM%
${color #7f8ed3} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #7f8ed3} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #7f8ed3} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #5b6dad}Mem usage
${color #7f8ed3} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #7f8ed3} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #7f8ed3} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}