affichage ip locale dans conky

Mots-clés : 

Ce sujet a 0 réponse, 1 participant et a été mis à jour par patux patux, il y a 3 semaines et 6 jours.

Affichage de 1 message (sur 1 au total)
  • Auteur
    Messages
  • #9257
    patux
    patux
    Participant

    Salut a vous,
    Mon portable en réparation, j’ai installé hier Voyager 18.04 sur un poste fixe.
    J’ai rapatrié mes conkys et la surprise, le retour IP Locale ne donne rien…
    est-ce que quelqu’un peut m’aider? j’ai essayé avec un tas de scrips différents, rien n’y fait.

    #conky tcp-tor
    # this file goes in ~
    background yes
    use_xft yes
    xftfont monospace:pixelsize=11
    xftalpha 1
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    draw_shades no
    draw_outline no
    draw_borders no
    border_width 0
    default_color cyan
    default_shade_color black
    default_outline_color cyan
    alignment bl
    gap_x 100
    gap_y 1200
    cpu_avg_samples 10
    override_utf8_locale yes
    text_buffer_size 2048
    update_interval 1
    minimum_size 350 5
    maximum_width 600

    own_window_argb_value 0
    own_window_argb_visual no
    own_window_colour 262524
    TEXT

    #leet chars: ┤┤└└┴┴┐┐││┘┘┌┌├├┬┬┼┼┴┴── ││ ▽▼△▲▵▴▾▿
    ${color cyan}${font LCD:style=Bold:pixelsize=20}$alignc${time %H:%M:%S} – ${time %d/%m/%Y}$font$color
    ┌─────────────┐
    ┌┤ TCP / TOR │──────────────────────── Box ▽ ────────────────── IP ▼ ────────┐
    ││ │ │

    ${color cyan}Fréquence CPU 1 : ${color red}${freq 1} MHz ${goto 200}${color cyan}Fréquence CPU 2 : ${color red}${freq 2} MHz
    ${color cyan}Fréquence CPU 3 : ${color red}${freq 3} MHz ${goto 200}${color cyan}Fréquence CPU 4 : ${color red}${freq 4} MHz
    ${color cyan}${font StyleBats:size=12}O–$font CPU${hr 3}
    ${color cyan}Core1 : $color${cpu cpu1}% ${color cyan}${cpubar cpu1}
    ${color2}Core2 : $color${cpu cpu2}% ${color cyan}${cpubar cpu2}
    ${color2}Core3 : $color${cpu cpu3}% ${color cyan}${cpubar cpu3}
    ${color2}Core4 : $color${cpu cpu4}% ${color cyan}${cpubar cpu4}
    ${color2}Core5 : $color${cpu cpu5}% ${color cyan}${cpubar cpu5}
    ${color2}Core6 : $color${cpu cpu6}% ${color cyan}${cpubar cpu6}
    ${color2}Core7 : $color${cpu cpu7}% ${color cyan}${cpubar cpu7}
    ${color2}Core8 : $color${cpu cpu8}% ${color cyan}${cpubar cpu8}
    #${color white}${cpugraph 143712 13B108}
    ${color #cd5555}Fréquence CPU 1 : ${color #11B3F8}${freq 1} MHz ${goto 200}${color #cd5555}Fréquence CPU 2 : ${color #11B3F8}${freq 2} MHz
    ${color #cd5555}Fréquence CPU 3 : ${color #11B3F8}${freq 3} MHz ${goto 200}${color #cd5555}Fréquence CPU 4 : ${color #11B3F8}${freq 4} MHz
    ${color #cd5555}Fréquence CPU 5 : ${color #11B3F8}${freq 5} MHz ${goto 200}${color #cd5555}Fréquence CPU 6 : ${color #11B3F8}${freq 6} MHz
    ${color #cd5555}Fréquence CPU 7 : ${color #11B3F8}${freq 7} MHz ${goto 200}${color #cd5555}Fréquence CPU 8 : ${color #11B3F8}${freq 8} MHz
    ${color #0000ff}${cpugraph cpu1 20,181 00ff00 ff0004 -t} ${color #0000ff}${cpugraph cpu2 20,215 00ff00 ff0004 -t}
    ${color #0000ff}${cpugraph cpu3 20,181 00ff00 ff0004 -t} ${color #0000ff}${cpugraph cpu4 20,215 00ff00 ff0004 -t}
    ${color cyan}${font StyleBats:size=12}O–$font RESEAU${hr 3}
    ${color2}IP Locale: ${color green}${addr eth0} $alignr${color2}
    ${color2}IP Public: ${color black}${execi 1600 wget -O – -q icanhazip.com}
    ${color2}Adresse Mac: ${color cyan}${exec /sbin/ifconfig | sed -n ‘s/.*\<HWaddr[[:space:]]\+\([^[:space:]]\+\).*/\1/p’}
    ${color2}IP Passerelle: ${color light blue}$gw_ip $alignr${color2}Interface Passerelle : $color$gw_iface
    ${color2}Uptime:$color $uptime $alignr${color2}Charge:$color $loadavg
    ${color2}Threads : $color $processes $alignr${color2}En cours : $color $running_processes
    ${color2}RAM :$color$mem/$memmax – $memperc% ${color cyan}${membar}
    ${color2}Swap :$color$swap/$swapmax – $swapperc% ${color cyan}${swapbar}
    ${execi 15 ss -t -a | grep -e “ESTAB” -e “9050” | tail -n 8 | sed ‘s/^/├─ /’ | sed ‘s/.$/─┤/’}
    #https://check.torproject.org/?lang=fr
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color white}NET${alignr}${color white}${font Ubuntu:size=7,weight:bold}${color1}${if_up eth0}eth ${addr eth0} ${endif}${if_up wlan0}wifi ${addr wlan0}${endif}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color white}open ports: ${alignr}${color2}${tcp_portmon 1 65535 count}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color white}${offset 10}IP${alignr}DPORT
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 0}${alignr 1}${tcp_portmon 1 65535 rport 0}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 1}${alignr 1}${tcp_portmon 1 65535 rport 1}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 2}${alignr 1}${tcp_portmon 1 65535 rport 2}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 3}${alignr 1}${tcp_portmon 1 65535 rport 3}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 4}${alignr 1}${tcp_portmon 1 65535 rport 4}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 5}${alignr 1}${tcp_portmon 1 65535 rport 5}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 6}${alignr 1}${tcp_portmon 1 65535 rport 6}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 7}${alignr 1}${tcp_portmon 1 65535 rport 7}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 8}${alignr 1}${tcp_portmon 1 65535 rport 8}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 9}${alignr 1}${tcp_portmon 1 65535 rport 9}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 10}${alignr 1}${tcp_portmon 1 65535 rport 10}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 11}${alignr 1}${tcp_portmon 1 65535 rport 11}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 12}${alignr 1}${tcp_portmon 1 65535 rport 12}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 13}${alignr 1}${tcp_portmon 1 65535 rport 13}
    ${goto 7}${font LCD:style=Bold:pixelsize=9}${color cyan}${tcp_portmon 1 65535 rip 14}${alignr 1}${tcp_portmon 1 65535 rport 14}
    ${color white}IP Tor: ${color mauve}${texeci 1600 wget torify http://checkip.dyndns.org/ -O – -o /dev/null | cut -d: -f 2 | cut -d\< -f 1

    Capture d’écran visible:
    https://lightpics.net/i/2AbH

Affichage de 1 message (sur 1 au total)

Vous devez être connecté pour répondre à ce sujet.