Exemple de configuration Conky

Exemple de fichier de conf .conkyrc

own_window yes
own_window_transparent yes
#own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_xft yes
#xftfont DejaVu Sans:size=10
xftfont Bitstream Vera Sans:size=10
draw_outline no
draw_borders no
uppercase no
draw_shades no
border_width 0
text_buffer_size 2048
default_color white
update_interval 5
# transparent for KDE4
own_window yes
own_window_title conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 0
own_window_type normal
#alignment tm
#alignment bottom_right
alignment tl
gap_x 10
gap_y 60
minimum_size 400 1
maximum_width 400
TEXT
${color grey}${time %H:%M %d/%m/%Y} $nodename - $sysname $kernel $machine
#$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
$hr
${color grey}File systems /:
$color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}File systems /home:
$color${fs_used /home}/${fs_size /home} ${fs_bar 6 /home}
${color grey}File systems /tmp:
$color${fs_used /tmp}/${fs_size /tmp} ${fs_bar 6 /tmp}
${color grey}File systems /usr:
$color${fs_used /usr}/${fs_size /usr} ${fs_bar 6 /usr}
${color grey}File systems /var:
$color${fs_used /var}/${fs_size /var} ${fs_bar 6 /var}
$hr
${color grey}Networking:
Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
#$hr
${color grey}Name PID CPU% MEM%
${color lightgrey} ${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 lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

Exemple

#~/Conkyrc/.conky_current (utilisé avec kde4)

background true
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius
gap_x 0
gap_y 20
total_run_times 0
#Mémoire
double_buffer yes #Éviter le clignotement
no_buffers yes #Soustraire les mémoires tampons de la mémoire utilisée
text_buffer_size 1024 #Taille du cache pour le texte
minimum_size 200
maximum_width 200
#own_window_type desktop
own_window true
own_window_transparent true
own_window_hints below,sticky,skip_taskbar,skip_pager
border_inner_margin 0
border_outer_margin 0
alignment tr
draw_shades false
draw_outline false
draw_borders false
draw_graph_borders false
use_xft true
xftfont Droid Serif:size=8
# 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
xftalpha 0.5
own_window_argb_visual yes
own_window_argb_value 110
#default_color ffffff
color1 white
color2 black
color3 red
TEXT
#${color2}${hr 135}
${color2}${font Droid Serif:size=12}${alignc}${time %A}${font Droid Serif:size=22}${alignc}${time %e}${font Droid Serif:size=9}${alignc}${time %b}${font Droid Serif:size=12}${alignc}${time %Y}${font}
#${color2}${font Droid Serif bold:size=12}${color2}${alignc}${time}
##CPU
#used
${font}
${alignc}${color2}cpu1
${color1}${freq 0}Mhz
${color1}${alignc}${cpu cpu 0}%
${color1}${alignr}${hwmon temp 1}°C
#
${alignc}${color2}cpu2
${color1}${freq 1}Mhz
${color1}${alignc}${cpu cpu 1}%
${color1}${alignr}${hwmon temp 2}°C
#
${alignc}${color2}cpu3
${color1}${freq 2}Mhz
${color1}${alignc}${cpu cpu 2}%
${color1}${alignr}${hwmon temp 3}°C
#
${alignc}${color2}M/B
${alignc}${color1}${hddtemp /dev/sda}°C
#
${alignc}${color2}fan
${color1}${alignc}${hwmon fan 1}RPM
#
${alignc}${color2}downspeed
${color1}${alignc}${downspeedf}KiB
${alignc}${color2}upspeed
${color1}${alignc}${upspeedf}KiB
#
#proc
${color2}${top name 1}${alignr}${color1}${top cpu 1}%
${color2}${top name 2}${alignr}${color1}${top cpu 2}%
${color2}${top name 3}${alignr}${color1}${top cpu 3}%
${color2}${top name 4}${alignr}${color1}${top cpu 4}%
#${color2}${top name 5}${alignr}${color1}${top cpu 5}%
#${color2}${top name 6}${alignr}${color1}${top cpu 6}%
${alignc}${offset 0}${voffset -50}${color green}${cpugauge 40,90}
${voffset 0}
${alignc}${color2}processus
${color1}${alignc}${processes}
#
#RAM
${color2}${top_mem name 1}${alignr}${color1}${top mem 1}%
${color2}${top_mem name 2}${alignr}${color1}${top mem 2}%
${color2}${top_mem name 3}${alignr}${color1}${top mem 3}%
${color2}${top_mem name 4}${alignr}${color1}${top mem 4}%
#${color2}${top_mem name 5}${alignr}${color1}${top mem 5}%
#${color2}${top_mem name 6}${alignr}${color1}${top mem 6}%
#
${alignc}${offset 0}${voffset -50}${color green}${memgauge 40,90}
#
${voffset 0}
#/
${color2}${alignc}/ ${fs_size /}
${fs_used /}${alignr}${color1}${fs_free /}
${voffset -12}${alignc}${color green}${fs_bar 5,90 /}
#
#/HOME
${color2}${alignc}home ${fs_size /home}
${fs_used /home}${alignr}${color1}${fs_free /home}
${voffset -12}${alignc}${color green}${fs_bar 5,90 /home}
#
#/LaCie
${color2}${alignc}LaCie ${fs_size /media/usb0}
${fs_used /media/usb0}${alignr}${color1}${fs_free /media/usb0}
${voffset -12}${alignc}${color green}${fs_bar 5,90 /media/usb0}
#
#VIRTUELRAM
${color2}${alignc}virtuelram ${fs_size /media/virtuelram}
${fs_used /media/virtuelram}${alignr}${color1}${fs_free /media/virtuelram}
${voffset -12}${alignc}${color green}${fs_bar 5,90 /media/virtuelram}
#
#SWAP
#${color2}${alignc}SWAP
#${alignc}${swapmax}${alignc}${color green}${swapbar 5,90}${alignr}${color1}${swapfree}
#
${uptime}${hr}
#SYSNAME
${color3}${execi 86400 lsb_release -si}-${execi 86400 lsb_release -sc}${hr}
${color3}Kernel ${execi 86400 uname -r}${hr}
Installer conky :
apt-get install conky-std
Lancer conky :
conky -d -c ~/Conkyrc/.conky_current &
Stopper conky :
killall conky
Créer des lanceurs : (exemple avec conky-cpu)
Pour que le gestionnaire de menus les reconnaissent, les créer dans ~/.local/share/applications/
###conky_cpu.desktop###
[Desktop Entry]
Version=1.0
Type=Application
Name=conky_cpu
Comment=
Icon=xfce-sensors
Exec=conky -d -c ~/Conkyrc/.conky_current &
Path=
Terminal=false
StartupNotify=false
GenericName=
Categories=conky
Changement dans conky à partir de Debian Sid:
Avant : ${color1}${alignr}${hwmon 1 temp 1}°C Maintenant : ${color1}${alignr}${hwmon temp 1}°C