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 12/05/2015, à 09:25

FatHead

Problème Conky

Bonjour,

Je ne sais pas si je suis dans le bon fil de discussion mais la partie SCRIPT me paraissait pas mal.
J'ai installé et configuré conky, mais j'ai un soucis.
Ma partie "nodename et sysname kernel" disparaît et réapparaît de temps à autre.

Voilà mon code :

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

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

own_window_transparent no
own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
#minimum_size 280 5
#maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

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

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 13
gap_y 13
#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 no

# Subtract file system buffers from used memory?
no_buffers yes

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

# boinc (seti) dir
# seti_dir /opt/seti

TEXT
${color #e49c16}nodename - ${color #e49c16}sysname $kernel on $machine
${color #e49c16}IP ETH0 : ${color lightgrey}${addr eth0}
${color #e49c16}IP WLAN0 : ${color lightgrey}${addr wlan0}

$color$stippled_hr

${color #e49c16}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
${color #e49c16}CPU Usage:$color ${cpu}% ${cpubar}
${color #e49c16}RAM Usage:$color $mem/$memmax - $memperc% $membar

$color$stippled_hr

${color #e49c16}Networking: 
${color lightgrey}Down eth0:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 70}Up eth0:${color #22ccff} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph eth0 32,150 0000ff ff0000}

${color lightgrey}Down wlan0:${color #8844ee} ${downspeed wlan0} k/s${color lightgrey} ${offset 70}Up wlan0:${color #22ccff} ${upspeed wlan0} k/s
${color black}${downspeedgraph wlan0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph wlan0 32,150 0000ff ff0000}

$stippled_hr

${color #e49c16}Port(s) ouvert(s): ${color #e49c16}${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}
${tcp_portmon 1 65535 rhost 6} $alignr${tcp_portmon 1 65535 lservice 6}
${tcp_portmon 1 65535 rhost 7} $alignr${tcp_portmon 1 65535 lservice 7}
${tcp_portmon 1 65535 rhost 8} $alignr${tcp_portmon 1 65535 lservice 8}
${tcp_portmon 1 65535 rhost 9} $alignr${tcp_portmon 1 65535 lservice 9}
${tcp_portmon 1 65535 rhost 10} $alignr${tcp_portmon 1 65535 lservice 10}

En espérant que vous puissiez m'aider.

Cordialement

Hors ligne