Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/10/2006, à 19:31

vinux-amd64

probleme avec .conkyrc

bonjour à tous,

je viens d'installer conky, et j'ai récupéré un .conkyrc sur: http://conky.sourceforge.net/screenshots.html


voici le code:

# set to yes if you want Conky to be forked in the background
background yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=7
xftfont  Bitstream Vera Sans Mono:size=9

# Create own window instead of drawing to desktop.
own_window yes
own_window_transparent yes
own_window_colour navyblue
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type normal

# Text alpha when using Xft
xftalpha 0.8

#deprecated -- use 'own_window_hints below'
#on_bottom yes

wm_class_name Conky

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 2

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 330 10
maximum_width 330

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 2

# border margins
#border_margin 4

# border width
border_width 1

# Default colors and also border colors
#default_color lightblue
default_color lightslategrey
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#minimum_size 10 10
gap_x 25
gap_y 15
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# drawn 1 pixel border around graphs or not
draw_graph_borders no

# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) 
min_port_monitors 8

# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
min_port_monitor_connections 64

# none, xmms, bmp, audacious, infopipe (default is none)
xmms_player audacious


TEXT
${color #0077ff}$nodename     ${alignc}$sysname $kernel ${alignr}$color${time %l:%M:%p}

${color #0077ff}Uptime:$color $uptime ${color #0077ff} Load:$color $loadavg
${color #0077ff}CPU Usage:$color ${cpu}% ${color #0077ff}${cpubar}
${color black}${cpugraph 0 32, 350 104E8B 0077ff}
${color #0077ff}RAM Usage:$color $mem/$memmax - $memperc% ${color #0077ff}$membar
${color #0077ff}Swap Usage:$color $swap/$swapmax - $swapperc% ${color #0077ff}${swapbar}
${color #0077ff}Procs:$color $processes ${color #0077ff}Running:$color $running_processes ${color #0077ff}CPU:$color ${i2c 0-002d temp 2}C${color #0077ff}  MB:$color ${i2c 0-002d temp 1}C

${color #0077ff}Net Down:$color ${downspeed eth0} k/s${color #0077ff} ${offset 62}Net Up:$color ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 104E8B 0077ff} $alignr${color black}${upspeedgraph eth0 32,150 104E8B 0077ff}
${color #0077ff}File systems:
 ${color #0077ff}/          $color${fs_used /}/${fs_size /}${alignr}${color #0077ff}${fs_bar 5,120 /}
 ${color #0077ff}/home      $color${fs_used /home}/${fs_size /home}${alignr}${color #0077ff}${fs_bar 5,120 /home}
 ${color #0077ff}/opt       $color${fs_used /opt}/${fs_size /opt}${alignr}${color #0077ff}${fs_bar 5,120 /opt}
 ${color #0077ff}/usr/local $color${fs_used /usr/local}/${fs_size /usr/local}${alignr}${color #0077ff}${fs_bar 5,120 /usr/local}
 ${color #0077ff}/var       $color${fs_used /var}/${fs_size /var}${alignr}${color #0077ff}${fs_bar 5,120 /var}
 ${color #0077ff}/share1    $color${fs_used /share1}/${fs_size /share1}${alignr}${color #0077ff}${fs_bar 5,120 /share1}

${color #0077ff}Top Processes:
${color #0077ff}Name              PID     CPU%   MEM%
$color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
$color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #0077ff}Mem usage
$color ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
$color ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
 
${color #0077ff}Port(s)${alignr}#Connections
$color Inbound: ${tcp_portmon 1 32767 count}  Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #0077ff}Inbound Connection ${alignr} Local Service/Port$color
 ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
 ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
 ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
 ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
 ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
 ${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${color #0077ff}Outbound Connection ${alignr} Remote Service/Port$color
 ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
 ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
 ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
 ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
 ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
 ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}

 ${xmms_title}
 ${color #0077ff}${xmms_bar 5,312}

mais j'ai le message d'erreur suivant:

Conky: /home/vinux/.conkyrc: 20: no such configuration: 'own_window_hints'
Conky: /home/vinux/.conkyrc: 21: no such configuration: 'own_window_type'
Conky: /home/vinux/.conkyrc: 89: no such configuration: 'draw_graph_borders'
Conky: /home/vinux/.conkyrc: 98: no such configuration: 'xmms_player'
Conky: can't open '/sys/bus/i2c/devices/0-002d/temp2_input': No such file or directory
please fix i2c or remove it from Conky

Dernière modification par vinux-amd64 (Le 09/10/2006, à 19:31)

Hors ligne