[quote=“ricardo”]J’ai installé conky mais comment le faire fonctionner ?
Quand je tape conky en console, voilà ce qu’il me répond, que ce soit en user ou en tant que root :
ricardo@ricardo:~$ conky
Conky: scandir for /sys/bus/i2c/devices/: No such file or directory
Conky: tail logfile does not exist, or you do not have correct permissions
ricardo@ricardo:~$
Je n’ai pas ce dossier ‘i2c’
J’ai installé la version 1.3.1-1 en unstable[/quote]
normal, c’est que tu n’as pas les sensors i2c et que le fichier “logfile” n’existe pas …
tu dois créer un fichier ~/.conkyrc et l’éditer selon tes besoins.
tu trouveras des exemples sur le site officiel, tout y est expliqué également -> conky.sourceforge.net/
voici le mien:
[quote]
Conky sample configuration
the list of variables has been removed from this file in favour
of keeping the documentation more maintainable.
Check conky.sf.net for an up-to-date-list.
set to yes if you want Conky to be forked in the background
background no
X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font mintsmild.se
#font -------34-------*
Use Xft?
use_xft yes
Set conky on the bottom of all other applications
on_bottom yes
Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8
Text alpha when using Xft
xftalpha 0.9
Print everything to stdout?
out_to_console no
MPD host/port
mpd_host localhost
mpd_port 6600
mpd_password tinker_bell
Print everything to console?
out_to_console no
mail spool
mail_spool $MAIL
Update interval in seconds
update_interval 1.0
This is the number of times Conky will update before quitting.
Set to zero to run forever.
total_run_times 0
Create own window instead of using desktop (required in nautilus)
own_window yes
Use pseudo transparency with own_window?
own_window_transparent yes
If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink
Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
Minimum size of text area
maximum_width 235
minimum_size 100 10
Draw shades?
draw_shades yes
Draw outlines?
draw_outline no
Draw borders around text
draw_borders no
Stippled borders?
stippled_borders 0
border margins
border_margin 3
border width
border_width 1
Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
Gap between borders of screen and text
same thing as passing -x at command line
gap_x 3
gap_y 3
Subtract file system buffers from used memory?
no_buffers yes
set to yes if you want all text to be in uppercase
uppercase no
number of cpu samples to average
set to 1 to disable averaging
cpu_avg_samples 2
number of net samples to average
set to 1 to disable averaging
net_avg_samples 2
Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no
mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost
mldonkey_port Mldonkey port, 4001 default
mldonkey_login Mldonkey login, default none
mldonkey_password Mldonkey password, default none
boinc (seti) dir
seti_dir /opt/seti
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
stuff after ‘TEXT’ will be formatted on screen
TEXT
[b]${hr 1}
${alignc}${time %A - %d-%m-%Y - %H:%M.%S}
${hr 1}
${color green}[CPU] ${alignr}${color lightgrey}Freq.: $color${freq_g}GHz
${color lightgrey}Usage: $color$cpu% ${cpubar}
${cpugraph 25, ffaa00 ff0000}
${hr 1}
${color green}[MEMORY] ${alignr}${color lightgrey}Usage:$color $memperc% + $swapperc%
${color lightgrey}Ram: $color$mem/$memmax ${membar}
${color lightgrey}Swap: $color$swap/$swapmax ${swapbar}
${hr 1}
${color green}[PROCS] ${alignr}${color lightgrey}Total:$color $processes ${color lightgrey}Running:$color $running_processes
${color lightgrey}Procs/CPU PID CPU% MEM%$color
${top name 1}${color lightgrey}${top pid 1}$color${top cpu 1}${color lightgrey}${top mem 1}$color
${top name 2}${color lightgrey}${top pid 2}$color${top cpu 2}${color lightgrey}${top mem 2}$color
${top name 3}${color lightgrey}${top pid 3}$color${top cpu 3}${color lightgrey}${top mem 3}$color
${top name 4}${color lightgrey}${top pid 4}$color${top cpu 4}${color lightgrey}${top mem 4}$color
${top name 5}${color lightgrey}${top pid 5}$color${top cpu 5}${color lightgrey}${top mem 5}$color
${color lightgrey}Procs/MEM PID CPU% MEM%$color
${top_mem name 1}${color lightgrey}${top_mem pid 1}${top_mem cpu 1}$color${top_mem mem 1}
${top_mem name 2}${color lightgrey}${top_mem pid 2}${top_mem cpu 2}$color${top_mem mem 2}
${top_mem name 3}${color lightgrey}${top_mem pid 3}${top_mem cpu 3}$color${top_mem mem 3}
${top_mem name 4}${color lightgrey}${top_mem pid 4}${top_mem cpu 4}$color${top_mem mem 4}
${top_mem name 5}${color lightgrey}${top_mem pid 5}${top_mem cpu 5}$color${top_mem mem 5}
${hr 1}
${color green}[NETWORK] ${alignr}${color lightgrey}Address:$color ${addr eth0}
${color lightgrey}Rx:$color ${downspeedf eth0}k/s${color lightgrey}${alignr}Tx:$color ${upspeedf eth0}k/s
$color${downspeedgraph eth0 25,113 00aaff 0000ff} $color${upspeedgraph eth0 25,113 ffaa00 ff0000}$color
${color lightgrey}T(Rx):$color ${totaldown eth0}${color lightgrey}${alignr}T(Tx):$color ${totalup eth0}
${hr 1}
${color green}[DISK] ${alignr}${color lightgrey}I/O:$color ${diskio}
${diskiograph 25, 00aaff 0000ff}
${color lightgrey}Root: $color${fs_used /}/${fs_size /} ${fs_bar /}
${color lightgrey}Temp: $color${fs_used /mnt/LIN_TMP}/${fs_size /mnt/LIN_TMP} ${fs_bar /mnt/LIN_TMP}
${color lightgrey}Data: $color${fs_used /mnt/WINLIN_DATA}/${fs_size /mnt/WINLIN_DATA} ${fs_bar /mnt/WINLIN_DATA}
${hr 1}
${alignc}$sysname $kernel ${color lightgrey}on $color$machine
${alignc}${color lightgrey}Uptime:$color $uptime
${hr 1}
[/b][/quote]