Conky NDS

Eu compartilharei o conky que uso diariamente, porem antes de mais nada, eu devo dizer que este conky é na verdade uma grande coletânea de vários conkys compilados pela web afora. São tantas partes que nem lembro mais de onde tirei cada uma. Todavia algumas comandos são adaptados por min também. Mas no final ficou como eu queria, bem funcional e incrivelmente útil. Pelo menos pra mim.


Hoje, como ele está em GNU license e eu ainda acho q deve sempre ser assim, vou deixa-lo aqui pra vc poder baixar e instalar em seu ubuntu.

Vamos a dica então.

Antes de mais nada, tenha em mente que vc tem que ter instalado em seu pc o conky para que tudo funcione. Ou Seja, se não o tiver, abaixo deixo o comando de instalação do mesmo.

sudo apt-get install conky conky-all

Download e instalação.

Primeiro copie cole o comando abaixo em seu editor favorito, ex gedit, pluma, salvando em sua home como ".conkyrc".


Versão 2023..... (atualizada em 11.2023)
Edição 2023 da melhor de todas:




Inicio do Código.

Final do Código.


Versão 2019..... (atualizada em 12.2020)
Edição 2019 a melhor de todas:




Inicio do Código.

Final do Código.



1º Versão do CpuPanel4Core_NDS.





Inicio do Código.
Final do Código.



Ultima edição com calendário:



Inicio do Código.
Final do Código.


Edição sem o calendário:



Inicio do Código.

Final do Código.

Antes de usar uma das dicas abaixo, vc deve finalizar seu conky com:

killall conky

Para instalarsomente para um usuário, use a dica abaixo.

Depois de descompactado o arquivo baixado, renomeio o arquivo conky.conf para .conkyrc, e mova-o para sua pasta home. O restante do arquivo deve ser movido para a pasta /etc/conky (supondo que vc tem acesso ao superusuário).

Ex: /home/nodes

Para instalar para todos os usuários, use a dica abaixo.

Depois de descompactado o arquivo baixado, mova-o todo o arquivo para /etc/conky.

Para que o relógio fique digital como na imagem acima, baixe e instale essas fontes, aqui, esta e essa. Local de instalação da fonte:

/home/usuario/.fonts

ou no seu sistema em

/usr/share/fonts

Para iniciar o conky novamente, use o comando a seguir:

conky

Pronto, seu conky foi atualizado e modificado.

CONKY NDS FULL - 2014


Copie cole o comando abaixo em seu editor favorito, ex gedit, pluma, salvando em sua home como ".conkyrc",  e siga os procedimentos acima.




Saiba como corrigir o erro nas informações de rede:





DICAS DE 2016 - NODES



PROCESSADOR:
${pre_exec cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}
   outro/bugado: ${exec lscpu | grep -i "model name" | cut -c 24-}

SISTEMA:
${alignr}${exec cat /etc/lsb-release | grep "DES" | cut -d "=" -f2 | sed 's/"//g' | sed 's/ /_/g'}

EXIBI O SISTEMA
${exec cat /etc/lsb-release | grep "DES" | cut -d "=" -f2 | sed 's/"//g' | sed 's/ /_/g'}

exibi 32 ou 64 bits
(${if_match "${machine}" == "i686"}32${else}64${endif}-bit)

$nodename
$sysname
$kernel
BITS 32 64
${machine}

ITENS EM SLIDE NO CONKY:
${scroll 50 itens para slide aqui }

ALTURA DO ITEM:
${voffset 0} = altura

DISTANCIA:
${offset 0} = distancia

DISTANCIA 02:
${goto 37} = distancia

ALINHAMENTO:
${alignc 1}
${alignr 1}

 LINHA PONTILHADA
${stippled_hr}
 LINHA
${hr}

ALTURA, LARGURA E MAXIMO DE LARGURA:
minimum_size 260 700
maximum_width 190

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
EXIBI AUDACIOUS, SE TOCANDO:
=>>${scroll 48 ${if_running audacious}${exec audtool --current-song} } = musica que ta tocando agora

==========SE TEM ALGO TOCANDO, DO NODES2016
Tocando agora=>>
${scroll 48 ${if_running audacious}${exec audtool --current-song}${endif}${if_running mplayer}${exec cat ~/.conky/ConkyPhodão/smplayer}${endif}${if_running vlc}${exec cat ~/.conky/ConkyPhodão/vlc}${else}${exec cat ~/.conky/ConkyPhodão/noplay} }}

UM TOCADOR MAIS COMPLETO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
${scroll 48 ${if_running audacious}${exec audtool --current-song} }
Bitrate: ${exec audtool --current-song-bitrate-kbps} kbps
Duração: ${exec audtool --current-song-length} min
Progresso: ${exec audtool --current-song-output-length-seconds} segs
Total em Segundos: ${exec audtool --current-song-length-seconds} segs

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
EXAILE:
${if_running exaile}${voffset -55}${goto 43}EXAILE:
${goto 43}${scroll 16 TRACK: ${execi 3 exaile --get-title}. ARTIST: ${execi 3 exaile --get-artist}. ALBUM: ${execi 3 exaile --get-album}.}$endif
///////////////////////////////////////////////////

IP PUBLICO:
Public IP: ${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
Public IP: ${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}

FONTE:
${font Birch Std:size=18} = fonte
E COR DA FONTE:
${color0} = cor

RELOGIO:
${time %a} ${time %x}
${time %H}:${time %M}

BATERIA:
${battery_percent BAT1}%

TEMPO ATIVO:
${uptime_short} = tempo ativo

SITEMA OPERACIONAL:
${pre_exec cat /etc/issue.net}

EXIBI UM TEXTO:
${execpi cat /etc/tutor.txt}

VERIFICA SE TEM ATUALIZAÇÃO A SER INSTALADA:
Updates: ${execi 5 aptitude search "~U" | wc -l | tail}

USO DA MEMORIA RAM:
MEMORIA RAM: ${memmax}
USO EM PORCENTAJE: ${memperc}%
USO EM MEGAS: ${mem}
TOTALMENTE LIBVE: ${memfree}
${membar}

-----------------------------------------------------------------
CORRIGI CONKY POR CIMA DEJANELAS ================================
-----------------------------------------------------------------
own_window yes
#own_window_type override
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
=================================================================

A FUNÇÃO IF ENDIF E ELSE:
  (Explicando os itens abaixo:
se o audacious estiver em execução, exiba a música q está tocando;
se o smplayer estiver tocando, exiba o texto smplayer;
se o vlc estiver tocando, exiba o texto vlc;
e se nada estiver tocando, exiba o noplayer.)
................................................
${if_running audacious}${exec audtool --current-song}
${endif}
${if_running mplayer}${exec cat ~/.conky/ConkyPhodão/smplayer}
${endif}
${if_running vlc}${exec cat ~/.conky/ConkyPhodão/vlc}
${else}
${exec cat ~/.conky/ConkyPhodão/noplay}${endif}


NOTICIA DENTRO DO CONKY:
${scroll 44 ${rss http://nooblinuxnodes.blogspot.com/feeds/posts/default?alt=rss 1 item_titles 10 1}}


COISAS NOVAS==============================================================
       #usb#
${cpugraph cpu6 1,150}${cpugraph cpu6 17,1}${color3}
USB Device
${if_existing /dev/sdc1}${exec df -h | grep "sdc" | cut -c52-70} ${exec df -h | grep "sdc" | cut -c40-44}   ${else}..:No Device:..${endif}
${if_existing /dev/sdd1}${exec df -h | grep "sdd" | cut -c52-70}  ${exec df -h | grep "sdd" | cut -c40-44}   ${else}${endif}
${if_existing /dev/sde1}${exec df -h | grep "sde" | cut -c52-70}  ${exec df -h | grep "sde" | cut -c40-44}   ${else}${endif}
${if_existing /dev/sdb1}${exec df -h | grep "sdb" | cut -c52-70}   ${exec df -h | grep "sdb" | cut -c40-44}   ${else}${endif}
       #music
${cpugraph cpu6 1,300}${cpugraph cpu6 17,1}
${if_running exaile}${exec conkyExaile --datatype=PT}${exec conkyExaile -n --datatype=RT --ratingchar=D}
${cpubar cpu6 0, 190}
${scroll 36 ${exec conkyExaile --datatype=TI}}
${scroll 36 ${exec conkyExaile --datatype=AR}}
${scroll 36 ${exec conkyExaile --datatype=AL}}
${else}       ..:: Exaile not running ::..

===========================================================================
Todo_Lista${hr}
${exec cat ~/Ubuntu/ToDo/TDL/1.txt | grep todo | cut -d "=" -f2}
${exec cat ~/Ubuntu/ToDo/TDL/2.txt | grep todo | cut -d "=" -f2}
${exec cat ~/Ubuntu/ToDo/TDL/3.txt | grep todo | cut -d "=" -f2}
${exec cat ~/Ubuntu/ToDo/TDL/4.txt | grep todo | cut -d "=" -f2}
${exec cat ~/Ubuntu/ToDo/TDL/5.txt | grep todo | cut -d "=" -f2}

Agenda${hr}
${exec cat ~/Ubuntu/ToDo/Agenda/1.txt | grep todo | cut -d "=" -f2}
${exec cat ~/Ubuntu/ToDo/Agenda/2.txt | grep todo | cut -d "=" -f2}
${exec cat ~/Ubuntu/ToDo/Agenda/3.txt | grep todo | cut -d "=" -f2}
${exec cat ~/Ubuntu/ToDo/Agenda/4.txt | grep todo | cut -d "=" -f2}
${exec cat ~/Ubuntu/ToDo/Agenda/5.txt | grep todo | cut -d "=" -f2}


VOLUMES MONTADOS=============================================================
${if_match ${exec ls /media | wc -l} > 0}${hr}
${execp grep -E ^\/dev /etc/mtab | cut -d " " -f2 | sed '1,2d ; s&^.*/&&g' | while read line ; do name=$(echo $line | cut -c '1-5' | sed 's/.*/\L&/g ; s/^./\U&/g ; s/^/\${goto 270}/g') ; echo $name'${alignr}${color2}${fs_free /media/'$line'}\n${goto 270}${color3}${fs_bar 3,82 /media/'$line'}${color1}' ; done}${else}${endif}


PENDRIVES:
01
#usb#
${offset 40}USB Device
${offset 15}${if_existing /dev/sdc1}${exec df -h | grep "sdc" | cut -c52-70} ${exec df -h | grep "sdc" | cut -c40-44}   ${else}..:No Device:..${endif}
${offset 105}${if_existing /dev/sdd1}${exec df -h | grep "sdd" | cut -c52-70}  ${exec df -h | grep "sdd" | cut -c40-44}   ${else}${endif}
${offset 15}${if_existing /dev/sde1}${exec df -h | grep "sde" | cut -c52-70}  ${exec df -h | grep "sde" | cut -c40-44}   ${else}${endif}
${offset 15}${if_existing /dev/sdb1}${exec df -h | grep "sdb" | cut -c52-70}   ${exec df -h | grep "sdb" | cut -c40-44}   ${else}${endif}

02-
###############################################
####### quando montar um pendriver==##############
###############################################
${exec df -h | grep "/dev/sdb" | awk '{ printf "%s de %s \t : %s\n", $5, $2, $6 }' }





GERENCIAMENTO DE CPU - COLORIDO==============================================
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
${if_existing /sys/devices/system/cpu/cpu0}${color white} Core 1:${color gold}${cpu cpu1}% ${if_match ${cpu cpu1} < 25}${color green}${endif}${if_match ${cpu cpu1} > 75}${color red}${endif}${cpubar cpu1}
${endif}${if_existing /sys/devices/system/cpu/cpu1}${voffset -2}${color white} Core 2:${color gold}${cpu cpu2}% ${if_match ${cpu cpu2} < 25}${color green}${endif}${if_match ${cpu cpu2} > 75}${color red}${endif}${cpubar cpu2}
${endif}${if_existing /sys/devices/system/cpu/cpu2}${voffset -2}${color white} Core 3:${color gold}${cpu cpu3}% ${if_match ${cpu cpu3} < 25}${color green}${endif}${if_match ${cpu cpu3} > 75}${color red}${endif}${cpubar cpu3}
${endif}${if_existing /sys/devices/system/cpu/cpu3}${voffset -2}${color white} Core 4:${color gold}${cpu cpu4}% ${if_match ${cpu cpu4} < 25}${color green}${endif}${if_match ${cpu cpu4} > 75}${color red}${endif}${cpubar cpu4}
${endif}${if_existing /sys/devices/system/cpu/cpu4}${voffset -2}${color white} Core 5:${color gold}${cpu cpu5}% ${if_match ${cpu cpu5} < 25}${color green}${endif}${if_match ${cpu cpu5} > 75}${color red}${endif}${cpubar cpu5}
${endif}${if_existing /sys/devices/system/cpu/cpu5}${voffset -2}${color white} Core 6:${color gold}${cpu cpu6}% ${if_match ${cpu cpu6} < 25}${color green}${endif}${if_match ${cpu cpu6} > 75}${color red}${endif}${cpubar cpu6}
${endif}${if_existing /sys/devices/system/cpu/cpu6}${voffset -2}${color white} Core 7:${color gold}${cpu cpu7}% ${if_match ${cpu cpu7} < 25}${color green}${endif}${if_match ${cpu cpu7} > 75}${color red}${endif}${cpubar cpu7}
${endif}${if_existing /sys/devices/system/cpu/cpu7}${voffset -2}${color white} Core 8:${color gold}${cpu cpu8}% ${if_match ${cpu cpu8} < 25}${color green}${endif}${if_match ${cpu cpu8} > 75}${color red}${endif}${cpubar cpu8}${endif}
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈

GERENCIAMENTO DE RAM COLORIDO
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ Monitoramento da Memoria RAM
${voffset 6}${color white}RAM:    ${color gold}${memperc}% ${if_match ${memperc} < 25}${color green}${endif}${if_match ${memperc} > 75}${color red}${endif}${membar}
${voffset -1}${color white} Used:${color gold}${alignr 31}${mem}   ${color white}Total: ${color gold}${alignr}${memmax}


REDE LOCAL E INTERNET ==============================================================================================
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
#
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ REDE LOCAL, INTERNET E TESTE DE CONEXÃO
${voffset -7}${color cyan}${stippled_hr}
${voffset 6}${color white}LAN: ${alignr}${if_up eth0}${color cyan}Conectado
 ${voffset -1}${color white}MAC Address: ${alignr}${color gold}${execi 1800 ifconfig eth0 | grep eth0 | cut -c39-55 | awk '{ print toupper($1) }'}
 ${voffset -2}${color white}L: ${alignr 157}${color gold}${addr eth0}
 ${voffset -15}${color white}                      R: ${alignr}${color gold}desativado#${execi 1800 curl -s http://checkip.dyndns.org/ | cut -d : -f 2- | cut -d \< -f -1 | sed 's/[^0-9.]*//g'}
 ${voffset -2}${color white}↑:${color gold}${alignr 157}${upspeedf eth0} KiB/s
 ${voffset -15}${color white}                      ↓:${alignr}${color gold}${downspeedf eth0} KiB/s ${else}${color red}Desconectado${endif}
#┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
#
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ Wireless Status
${voffset 6}${color white}WiFi: ${color gold}${if_up wlan0}${if_match "  unk" == "${wireless_link_qual_perc eth0}"}${alignr}${color white}Broadcast${else}${wireless_link_qual_perc wlan0}% ${color red}${if_match ${wireless_link_qual_perc wlan0} > 33}${color gold}${endif}${if_match ${wireless_link_qual_perc wlan0} > 67}${color green}${endif}${wireless_link_bar wlan0}${endif}
 ${voffset -1}${color white}SSID: ${alignr}${color gold}${wireless_essid wlan0}
 ${voffset -2}${color white}MAC Address:  ${alignr}${color gold}${wireless_ap wlan0}
 ${voffset -2}${color white}IPL: ${alignr 157}${color gold}${addr wlan0}
 ${voffset -15}${color white}                      R: ${alignr}${color gold}${if_match "  unk" == "${wireless_link_qual_perc wlan0}"}N/A${else}Desativado${endif}
 ${voffset -2}${color white}↑:${color gold}${alignr 157}${upspeedf wlan0} KiB/s
 ${voffset -15}${color white}                      ↓:${color gold}${alignr}${downspeedf wlan0} KiB/s${else}${alignr}0% ${color red}${execbar echo 0}
${voffset -17}${alignr -1}${blink ----------------------------}${endif}


TESTE DE CONEXÃO================================================================================================
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
#
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ TESTE DE CONEXÃO
${if_gw}${voffset 6}${color white}Teste de Conexão: ${voffset -1}${color cyan}${stippled_hr}
 ${voffset -1}${color white}Inbound: ${alignr 164}${color gold}${tcp_portmon 1 32767 count}
 ${voffset -15}${color white}                      Outbound: ${alignr}${color gold}${tcp_portmon 32768 61000 count}
 ${voffset -2}${color white}Ping (Google): ${alignr}${color gold}${texeci 10 ping -c 1 -W 1 74.125.29.105 | grep time= | awk '{print $7}' | cut -c 6-100} ms
 ${voffset -2}${color white}Ping (Bing): ${alignr}${color gold}${texeci 10 ping -c 1 -W 1 204.79.197.200 | grep time= | awk '{print $7}' | cut -c 6-100} ms
# ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈



::::-- SENSORES DE TEMPERATURA --::::

01-------------
${exec sensors | grep -n 'k10temp-pci-00c3' | awk -F'+' '{print $2}' | awk -F' ' '{print $2}'}

02------------- esse funciona no meu pc novo - gfire
${else}${execi 2 cat /sys/bus/pci/drivers/k10temp/0000:00:18.3/hwmon/hwmon*/temp1_input | cut -c1,2}°C

03--i5-----------
${exec sensors|grep 'Core 1'|awk '{print $3}'}°C

04
${exec sensors|grep 'temp1'|awk '{print $2}'}°C

05
${hwmon temp 1}

06 DA PLACA NVIDIA.

Esse:
${font :Bold:size=10}Temp. NVIDIA:${color1}  ${nvidia temp}ºC${font}

Ou este:
${font :Bold:size=10}Temp. NVIDIA:${color1}  ${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t} °C${font}


Outros itens Nvidia.

${color1}GPU:${color #FCAF3E}${exec nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits} $color
${color1}GPU Temperature ${color}  ${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t} °C
${color1}GPU Utilization ${color}  ${exec nvidia-smi | grep % | cut -c 61-63} %
${color1}VRAM Utilization ${color} ${exec nvidia-smi | grep % | cut -c 37-40} MB
${color1}GPU Power Draw ${color} ${exec nvidia-smi | grep % | cut -c 21-23} W



DICAS DE CONFIGURAÇÃO DO CONKY NDS E DE OUTROS TAMBÉM:



EXIBI A INTERFACE ATIVA NO MOMENTO.
${voffset 10}${color2}NETWORK   active interface:  ${gw_iface} ${hr}${color}


# WLAN

MOSTRA UMA LINHA NA FRENTE DO NOME
INTERNET${hr 1}

ADICONA LINHA DA ESQUERDA PRA A DIREITA
${hr 1}

VERIFICA SE A PLACA WLAN ESTÁ ATIVA e MOSTRA O NOME DA REDE WLAN0
${if_up wlan0}REDE: ${wireless_essid wlan0}

QUALIDADE DO SINAL SEM FIO
Sinal: ${wireless_link_qual wlan0}%

BARRA DE USO WLAN
${wireless_link_bar 8,60 wlan0}

COLORIR ITEM
${color #F95757} ${color}

ALINHA NA VERTICAL
${voffset -1}

ALINHA DA HORIZONTAL
${goto 32}

ALINHA A DIREITA
${alignr}

ALINHA NO CENTRO
${alignc}

MOSTRA UM ICONE USANDO A FONTE
${voffset 6}${color #9FEAFF}${font VariShapes Solid:size=14}q${font}$color

VELOCIDADE DA INTERNET
Up: ${upspeed wlan0}

MOSTRA EM UM GRÁFICO DE UPLOAD
${upspeedgraph wlan0 8,60 F57900 FCAF3E}

TOTAL DE UPLOAD
Total: ${totalup wlan0}

VELOCIDADE DE DOWN
Down: ${downspeed wlan0}

GRAFICO DE DOWN
${downspeedgraph wlan0 8,60 F57900 FCAF3E}

TOTAL DE DOWN
Total: ${totaldown wlan0}

MOSTRA UM ICONE DE INTERNET:
${font Poky:size=13}w${font}

MOSTRA O IP LOCAL
Local IP: ${addr wlan0}

VERIFICA e MOSTRA O GATWAY
${if_gw}GateWay: ${gw_ip}


PORTAS TPC ABERTAS
Portas TCP: ${tcp_portmon 1 65535 count}

MOSTRA O DNS
DNS: ${nameserver}

MOSTRA SEU IP PUBLICO
Public IP: ${execi 3600 wget -O - http://automation.whatismyip.com/n09230945.asp | tail}


Exemplos montados:

# |--ETH0
${else}${if_up eth0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed eth0}${font} ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup eth0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed eth0}${font} ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown eth0}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr eth0}
${goto 32}Public IP: ${alignr}${execi 3600 wget -O - http://automation.whatismyip.com/n09230945.asp | tail}


# |--PPP0
${endif}${else}${if_up ppp0}
${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed ppp0}${font} ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totalup ppp0}
${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed ppp0}${font} ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E}
${goto 32}Total: ${totaldown ppp0}
${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr ppp0}



QUANDO NAO HOUVER INTERNET, PISCA UMA INFORMAÇÃO.
${else}${font :bold:size=8}${color red}${alignc}${blink Sem Internet no Momento!}${color}${voffset 15}${endif}${endif}


## FINAL DO CONKY CORRETAMENTO
${endif}${else}
${endif}
${endif}
${font DroidSans:size=11}${color Red}   <<- Você está sem Internet ->>${font}${color}


OUTROS


ADICIONA UMA IMAGEM
${image /usr/share/backgrounds/.conky/fundo3.png -p 3,1 -s 256x695}

MOSTRA VERSÃO DO SISTEMA
${pre_exec cat /etc/issue.net} $machine $nodename - $sysname $kernel ${execi 99999 cat /etc/issue}

ADICIONA UMA FONTE AO TEXTO
${font bold:size=8}

FAZ OS ITENS ROLAREM NA TELA
${scroll 36 ${pre_exec cat /etc/issue.net} $machine $nodename - $sysname $kernel ${execi 99999 cat /etc/issue}${font bold:size=8}${color} | }

ADICIONA UMA LINHA PONTILHADA
${stippled_hr}

LINK DE CONKYS VÁRIADOS
http://crunchbang.org/forums/viewforum.php?id=8





nodes2014/15/16