Ótima configuração para Conky (resolução: 1920x1080)

Publicado por Juliano Alves dos Santos em 18/04/2017

[ Hits: 2.849 ]

 


Ótima configuração para Conky (resolução: 1920x1080)



Prezados colegas, antes de tudo, quero dar o devido crédito ao Leandro.

Iremos utilizar uma ferramenta para produzir o visual da previsão do tempo, portanto, recomendo que para continuarmos, sigam os pré requisitos abaixo:

Instalar o Conky, CPUID, sensors:

# apt-get install conky-all cpuid sensors-applet sensord libsensors4

Baixar o BRWeather:

Instalação

Apenas mova a pasta "brweather" para a pasta /opt. E crie um link para o arquivo executável:

sudo mv brweather /opt
sudo ln -sf /opt/brweather/brweather /usr/local/bin

Configuração

Abra o arquivo "brweather.conf" e configure de acordo com as instruções. Depois, salve-o na sua pasta Home com o nome de ".brweather.conf" (observe o "." ponto na frente do nome).

Abaixo, segue o arquivo de configuração do Conky. Pode renomeá-lo e executar o Conky apontando para o mesmo da seguinte forma:

conky -c ~/.conky/nome_do_arquivo

### Início do arquivo

background no
update_interval 1.5
total_run_times 0
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers = yes
text_buffer_size 4096
imlib_cache_size 0
temperature_unit celsius
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager
border_inner_margin 0
border_outer_margin 0
minimum_size 248 1080
maximum_width 248
alignment top_right
gap_x 0
gap_y 0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
use_xft yes
#xftfont Future:size=10.4
xftalpha 0.1
default_color D4ECF4
default_gauge_size 50 25
default_bar_size 40 10
uppercase no
use_spacer right

TEXT
################## CALENDARIO
${font Future:size=8}${voffset 0}${color red}Calendario $stippled_hr${font Future:size=8}${color ACE8E8}
${voffset -5}${font Future:size=28}${color ACE8E8}${exec date +%A}
${voffset -5}${font Future:size=30}${color ACE8E8}${exec date +%d}
${voffset -40}${font Future:size=26}${goto 40} ${exec date +%b}
${voffset -2}${font Future:size=35}${color ACE8E8}${exec date +%H:%M}
${font Courier:size=8}${color ffffff}${voffset -147}
${goto 125}${exec ncal -bh |awk 'NR==2'}
${goto 125}${exec ncal -bh |awk 'NR==3'}
${goto 125}${exec ncal -bh |awk 'NR==4'}
${goto 125}${exec ncal -bh |awk 'NR==5'}
${goto 125}${exec ncal -bh |awk 'NR==6'}
${goto 125}${exec ncal -bh |awk 'NR==7'}
${goto 125}${exec ncal -bh |awk 'NR==8'}${font}${color}

################## TEMPO
${voffset -10}${font Future:size=8}${color red}Tempo $stippled_hr${font Future:size=12}${color}
${color yellow}${exec brweather --option=city}${goto 60}${exec brweather --option=Day1T}${color}
${voffset -16}${goto 120}Máxima: ${goto  175}${color yellow}${exec brweather --option=HT1}C${color}
${goto 120}Mínima: ${goto  175}${color yellow}${exec brweather --option=LT1}C${color}
${goto 120}Umidade: ${goto 175}${color yellow}${exec brweather --option=umid}%${color}
${goto 120}Chuva: ${goto   175}${color yellow}${exec brweather --option=CLD}%${color}
${goto 120}Vento: ${goto   175}${color yellow}${exec brweather --option=winds}Km/h  ${exec brweather --option=windd}${color}
${color yellow}${goto 10}${exec brweather --option=TN} C${goto 70}${exec brweather --seasons=1T}${color}

${goto 10}${exec brweather --option=Day2T}${goto 75}${exec brweather --option=Day3T}${goto 135}${exec brweather --option=Day4T}${goto 195}${exec brweather --option=Day5T}
${font CourierBold:size=6}${color white}
${voffset -12}${goto 10}${exec brweather --option=LT2}~${exec brweather --option=HT2} ${exec brweather --option=CLD2}%
${voffset -9}${goto  72}${exec brweather --option=LT3}~${exec brweather --option=HT3} ${exec brweather --option=CLD3}%
${voffset -9}${goto 130}${exec brweather --option=LT4}~${exec brweather --option=HT4} ${exec brweather --option=CLD4}%
${voffset -9}${goto 190}${exec brweather --option=LT5}~${exec brweather --option=HT5} ${exec brweather --option=CLD5}%

################## SISTEMA
${voffset 0}${color red}${font Future:size=8}Sistema $stippled_hr${color ACE8E8}${font Future:size=10}
${alignc}${exec echo `cat /etc/os-release |awk 'NR == 1' |cut -c 7-16` `cat /etc/os-release |grep VERSION= |cut -c 10-19`}
${alignc}KERNEL ${kernel}
${alignc}ENVIRONMENT Mate 1.14.1
${alignc}UPTIME ${color yellow}${uptime}

################## CPU
${voffset 0}${color red}${font Future:size=8}Processador $stippled_hr${color ACE8E8}
${goto 20}Modelo: ${font Future:size=8}${color yellow}${exec cpuid |grep "brand =" |awk 'NR==1' |cut -c 13-36} 3.4 GHz${color ACE8E8}
${goto 20}Rotacao da Cooler:${goto 140}${exec sensors |awk 'NR==11' |cut -c 20-23}${goto 175}RPM
${goto 20}Temperatura CPU:${goto 155}${exec sensors |awk 'NR==13' |cut -c 22-23}${goto 175}C
${goto 20}Temperatura MB :${goto 155}${exec sensors |awk 'NR==14' |cut -c 22-23}${goto 175}C
${goto 5}${cpu cpu0}% ${goto 46}${cpu cpu1}% ${goto 87}${cpu cpu2}% ${goto 128}${cpu cpu3}% ${goto 169}${cpu cpu4}% ${goto 210}${cpu cpu5}%
${alignc}${voffset 00}${cpubar   cpu0 10,35}  ${cpubar   cpu1 10,35}  ${cpubar   cpu2 10,35}  ${cpubar   cpu3 10,35}  ${cpubar   cpu4 10,35}  ${cpubar   cpu5 10,35}
${alignc}${voffset -1}${cpugraph cpu0 10,35}  ${cpugraph cpu1 10,35}  ${cpugraph cpu2 10,35}  ${cpugraph cpu3 10,35}  ${cpugraph cpu4 10,35}  ${cpugraph cpu5 10,35}
${font Future:size=8}${color ACE8E8}${goto 5}${freq_g 0} ${goto 46}${freq_g 1} ${goto 87}${freq_g 2} ${goto 128}${freq_g 3} ${goto 169}${freq_g 4} ${goto 210}${freq_g 5}

################## RAM
${voffset 0}${color red}Memoria $stippled_hr${font Future:size=8}${color ACE8E8}
${voffset   0} RAM${goto 45}: ${memmax}${goto 110}${membar 20,125}
${voffset -20} USO %${goto 45}: ${color yellow}${memperc}%${color ACE8E8}
${voffset   0} USO GB${goto 45}: ${mem}${goto 110}${memgraph 20,125}
${voffset -20} LIVRES${goto 45}: ${color yellow}${memfree}${color ACE8E8}

################## DISCOS
${voffset 0}${color red}Discos $stippled_hr${font Future:size=8}${color ACE8E8}
${goto 20}sdb1 - /${goto 150}sdc1 - /home
${goto 20}${color yellow}${fs_free /} ${color ACE8E8}Free${color yellow}${goto 150}${fs_free /home} ${color ACE8E8}Free
${goto 20}R: ${diskio_read /dev/sdb}W: ${diskio_write /dev/sdb}${goto 150}R: ${diskio_read /dev/sdc}W: ${diskio_write /dev/sdc}
${goto 20}${diskio /dev/sdb} IOPs${goto 150}${diskio /dev/sdc} IOPs
${goto 20}${diskiograph /dev/sdb 10,70}${goto 150}${diskiograph /dev/sdc 10,70}

################## PID
${voffset 0}${color red}Processos $stippled_hr${font Future:size=8}${color ACE8E8}
${goto 25}${font Future:size=8}${color ACE8E8}____CPU____${goto 150}____RAM____
${goto 10}${color ffffff}${top name 1}${goto 80}${top cpu 1}${goto 130}${top_mem name 1}${goto 210}${top_mem mem 1}
${goto 10}${color dddddd}${top name 2}${goto 80}${top cpu 2}${goto 130}${top_mem name 2}${goto 210}${top_mem mem 2}
${goto 10}${color bbbbbb}${top name 3}${goto 80}${top cpu 3}${goto 130}${top_mem name 3}${goto 210}${top_mem mem 3}
${goto 10}${color 999999}${top name 4}${goto 80}${top cpu 4}${goto 130}${top_mem name 4}${goto 210}${top_mem mem 4}
${goto 10}${color 777777}${top name 5}${goto 80}${top cpu 5}${goto 130}${top_mem name 5}${goto 210}${top_mem mem 5}
${goto 10}${color 555555}${top name 6}${goto 80}${top cpu 6}${goto 130}${top_mem name 6}${goto 210}${top_mem mem 6}
${alignc}${font Future:size=8}${color ACE8E8}__________ Carga Elevada do Sistema __________
${goto 10}${color ffffff}${top name 1}${goto 120}${top pid 1}${goto 160}${top cpu 1}${goto 200}${top mem 1}
${goto 10}${color dddddd}${top name 2}${goto 120}${top pid 2}${goto 160}${top cpu 2}${goto 200}${top mem 2}
${goto 10}${color bbbbbb}${top name 3}${goto 120}${top pid 3}${goto 160}${top cpu 3}${goto 200}${top mem 3}
${goto 10}${color 999999}${top name 4}${goto 120}${top pid 4}${goto 160}${top cpu 4}${goto 200}${top mem 4}
${goto 10}${color 777777}${top name 5}${goto 120}${top pid 5}${goto 160}${top cpu 5}${goto 200}${top mem 5}
${goto 10}${color 555555}${top name 6}${goto 120}${top pid 6}${goto 160}${top cpu 6}${goto 200}${top mem 6}
${alignc}${font Future:size=8}${color ACE8E8}Processos $running_processes/ $processes

################## REDE
${voffset 0}${color red}Rede $stippled_hr${font Future:size=8}${color ACE8E8}
${voffset 0}${goto 5}UP:${goto 30}${upspeedgraph   enp2s0 10,58}${goto 98} ${upspeed   enp2s0}
${voffset -10}${goto 150}LAN: ${color yellow}${if_existing /proc/net/route enp2s0}${addr enp2s0}${else}Desconectado${endif}${color ACE8E8}
${voffset 0}${goto 5}DL:${goto 30}${downspeedgraph enp2s0 10,58}${goto 98} ${downspeed enp2s0}
${voffset -10}${goto 150}WAN: ${color yellow}${if_existing /proc/net/route enp2s0}${exec curl -s www.icanhazip.com}${else}Offline${endif}${color ACE8E8}

################## TAREFAS
${voffset 0}${color red}Tarefas $stippled_hr${font Courier:size=8}${color white}
${goto 20}1. ${exec cat ~/todo.txt |awk 'NR==1' |awk '{print} END {if (!NR) print "      -- "}'}
${goto 20}2. ${exec cat ~/todo.txt |awk 'NR==2' |awk '{print} END {if (!NR) print "      -- "}'}
${goto 20}3. ${exec cat ~/todo.txt |awk 'NR==3' |awk '{print} END {if (!NR) print "      -- "}'}
${goto 20}4. ${exec cat ~/todo.txt |awk 'NR==4' |awk '{print} END {if (!NR) print "      -- "}'}
${goto 20}5. ${exec cat ~/todo.txt |awk 'NR==5' |awk '{print} END {if (!NR) print "      -- "}'}
${goto 20}6. ${exec cat ~/todo.txt |awk 'NR==6' |awk '{print} END {if (!NR) print "      -- "}'}
${goto 20}7. ${exec cat ~/todo.txt |awk 'NR==7' |awk '{print} END {if (!NR) print "      -- "}'}
${goto 20}8. ${exec cat ~/todo.txt |awk 'NR==8' |awk '{print} END {if (!NR) print "      -- "}'}
${goto 20}9. ${exec cat ~/todo.txt |awk 'NR==9' |awk '{print} END {if (!NR) print "      -- "}'}

################## IMAGENS
#${image ~/.conky/julas/bg.png -p 0,0 -s 250x1080}
${execpi 3600 brweather --imagem1=CN -p 10,155 -s 100x100}
${execpi 3600 brweather --imagem1=C2 -p 10,245 -s 50x50}
${execpi 3600 brweather --imagem1=C3 -p 70,245 -s 50x50}
${execpi 3600 brweather --imagem1=C4 -p 130,245 -s 50x50}
${execpi 3600 brweather --imagem1=C5 -p 190,245 -s 50x50}
${execpi 3600 brweather --option=LUA1I -p 195,165 -s 30x30}

### Final do Arquivo

Outras dicas deste autor

Instalar Firefox 3.6 e Thunderbird 3.0 no Ubuntu 9.10

Problemas com atualização Ubuntu 9.10 e Repositórios Debian SID

Montando partições NTFS sem UUID

Hospedar um site no seu PC com DDNS

Resolvendo problemas de caracteres e idiomas no Debian Etch AMD64 e Dreamlinux MMGL 2.2

Leitura recomendada

Atualizando Debian 11 para Debian 12

Melhorias sutis no Fedora Xfce Spin

Configurando pré-regulagens de equalização do XMMS no Slackware

Criar resolução 1440x900 no Kurumin e Ubuntu

Terminal Guake com comandos personalizados

  

Comentários
[1] Comentário enviado por homemsemnome em 18/04/2017 - 22:18h

Será que não rola de você postar uma screenshot desse Conky aqui nos comentários deste artigo ou na sessão de screenshots do VOL? Porque aí a galera não precisará instalar isso tudo aí só para ver como ele ficou.

Valeu.

[2] Comentário enviado por julianoas em 26/04/2017 - 00:29h

https://www.vivaolinux.com.br/screenshot/MATE-Super-Conky/



Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts