lucasozonio
(usa Ubuntu)
Enviado em 09/03/2017 - 00:20h
Galera, graças a ajuda de vocês, finalmente consegui terminar e rodar ele perfeitamente aqui.
Com base no que falaram eu:
-Removi comandos desnecessários e que não estavam fazendo efeito algum no código;
-Instalei todos pacotes possíveis, baseados nos que o Izaias recomendou acima;
-Modifiquei algumas coisas;
-Testei inúmeras vezes;
-Aprendi um pouco mais sobre o conky :D haha
Segue abaixo o arquivo .conkyrc pra quem quiser utilizar tb:
#!/usr/bin/conky -d -c
## .conkyrc configuration
alignment top_right
background yes
border_width 5
color0 555555
color1 FCAF3E
color2 64574e
cpu_avg_samples 2
default_color e1e1e1
default_outline_color 000000 # Black
default_shade_color 000000 # Black
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline yes
draw_shades no
gap_x 5
gap_y 40
max_user_text 10000
maximum_width 180
minimum_size 850
net_avg_samples 2
no_buffers yes
override_utf8_locale yes #fonte com adicional de acentos
own_window yes
own_window_colour 000000 # Black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type dock ## normal, dock, panel, override, desktop
pad_percents 2
short_units yes
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 1.0
uppercase no
use_spacer right
use_xft yes
xftalpha 0.75
xftfont sans:size=7
TEXT
#HORA
${color1}${goto 10}${font DejaVu Sans Mono:size=44}${time %H}${font DejaVu Sans Mono:size=20}${voffset -25}:${time %M}${font DejaVu Sans Mono:size=8}${voffset -12}'${time %S}
${color1}${goto 85}${voffset 10}${font :size=8}${time %A}
${color1}${goto 85}${voffset 1}${font :size=8}${time %d %B %Y}
${color1}${font led:size=10}CALENDARIO ${font}$hr
${voffset -10}${color}${font DejaVu Sans Mono :size=8}${execpi 60 DJS=`date +%_d`; ncal -hb | sed s/"$DJS"'\b'/'${color1}'"$DJS"'$color'/ | sed s/^/'${alignr}'/}
#SISTEMA
${voffset -45}${color1}${font led:size=10}SISTEMA ${font}$hr
${color}${sysname} Kernel: ${alignr}$kernel
${color}Conky:${alignr}${conky_version}
${color}Bateria: ${alignr}${battery_percent BAT0}%
#CPU
${voffset 5}${color1}${font led:size=10}CPU ${font}$hr
${color}Core 1: ${cpu cpu1}% $alignr ${freq_g (1)} GHz / ${exec sensors | grep "Core 0" | cut --bytes=14-21}C
${color}Core 2: ${cpu cpu2}% $alignr ${freq_g (2)} GHz / ${exec sensors | grep "Core 2" | cut --bytes=14-21}C
${voffset 5}${color}Uso CPU: ${cpubar 4}
${voffset 5}${color}Uso RAM: ${membar 4}
${voffset -7}${color}${font}NOME ${goto 90}PID${goto 120}CPU% ${alignr}MEM%
${color}${font :size=6}${goto 9}${top name 1}${goto 85}${top pid 1}${goto 120}${top cpu 1}${goto 156}${top mem 1}
${color}${font :size=6}${goto 9}${top name 2}${goto 85}${top pid 2}${goto 120}${top cpu 2}${goto 156}${top mem 2}
${color}${font :size=6}${goto 9}${top name 3}${goto 85}${top pid 3}${goto 120}${top cpu 3}${goto 156}${top mem 3}
#MEM
${voffset -6}${color1}${font led:size=10}MEMORIA / HDD ${font}$hr
${color}ram: ${mem} / ${memmax} ${alignr} ${memperc}%
${color}swap: ${swap} / ${swapmax} ${alignr} ${swapperc}%
${color}root: ${fs_used /} / ${fs_size /} ${alignr} ${fs_used_perc /}%
${color}hd: ${fs_used /home} / ${fs_size /home} ${alignr} ${fs_used_perc /home}%
#WIFI
${voffset 0}${color1}${font led:size=10}WIFI ${font}$hr
${color}gateway IP: ${alignr}${gw_ip}
${color}local IP: $alignr${addr wlp2s0}
${color}public IP: $alignr${execi 60 ~/.conky/ip.sh}
${voffset 10}Down: ${downspeed wlp2s0}kb/s ${color}
Dia: ${totaldown wlp2s0}${voffset -12}${alignr}${downspeedgraph wlp2s0 25,50 64574e 64574e}
${voffset -13}Mês: ${execi 300 vnstat -m | grep "`date +"'%y"`" | tail -1 | awk '{print $3 $4}'}
${voffset -5}Up: ${upspeed wlp2s0}kb/s${color}
Dia: ${totalup wlp2s0}${voffset -12}${alignr}${upspeedgraph wlp2s0 25,50 64574e 64574e}
${voffset -13}Mês: ${execi 300 vnstat -m | grep "`date +"'%y"`" | tail -1 | awk '{print $6 $7}'}
${voffset -5}${color}${font}Conectado a:$alignr${wireless_essid wlp2s0}
#Cabeada
${voffset -25}${color1}${font led:size=10}CABO ${font}$hr
${color}gateway IP: ${alignr}${gw_ip}
${color}local IP: $alignr${addr enp1s0}
${color}public IP: $alignr${execi 60 ~/.conky/ip.sh}
${voffset 10}Down: ${downspeed enp1s0}kb/s ${color}
Dia: ${totaldown enp1s0}${voffset -12}${alignr}${downspeedgraph enp1s0 25,50 64574e 64574e}
${voffset -13}Mês: ${execi 300 vnstat -m | grep "`date +"'%y"`" | tail -1 | awk '{print $3 $4}'}
${voffset -5}Up: ${upspeed enp1s0}kb/s${color}
Dia: ${totalup enp1s0}${voffset -12}${alignr}${upspeedgraph enp1s0 25,50 64574e 64574e}
${voffset -13}Mês: ${execi 300 vnstat -m | grep "`date +"'%y"`" | tail -1 | awk '{print $6 $7}'}
OBS: caso queiram mudar a cor amarela para o cinza escuro que eu usava anteriormente, mudem "color1" para "color2"
Código do arquivo ip.sh necessário na parte de conexão:
#!/bin/bash
wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
Conky final:
http://imgur.com/a/ZLb4j
Utilizando juntamente o tema do numix circle + avant window navigator na parte inferior.
Valeu pela ajuda!
--
Att.,
Lucas Ozonio