Galera, fiz o meu bem simplório, gosto de td resumido e objetivo... É um compilado com adaptações e ajustes criados de algum tempo de pesquisa (faz uns 3 anos q uso ele pra monitorar meu notebook). Atualmente resolvi fazer td do 0 num note novo, alguem sabe como detectar pendrive automaticamente? quero por ele pra se monitorado tbm qd eu o conectar... a questão é q quero q quero dinâmico, espetei qualquer pendrive ele aparece no conky informando velocidade de leitura/escrita e espaço total e usado...
https://rmevolution.eti.br/img/Conky.pngconky.config = {
alignment = 'top_right',
background = true,
border_width = 0,
cpu_avg_samples = 2,
default_color = 'green',
default_outline_color = 'green',
default_shade_color = 'green',
color1 = 'red',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'Roboto Mono:size=7',
gap_x = 0,
gap_y = 30,
minimum_height = 250,
minimum_width = 250,
maximum_width = 250,
net_avg_samples = 2,
no_buffers = true,
out_to_console = true,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_argb_visual = true,
own_window_argb_value = 180,
own_window_type = 'panel',
own_window_hints ='undecorated,sticky,skip_taskbar,skip_pager,below',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[
${color1}${font} Video» $hr
#------------+
# Intel iGPU |
#------------+
${color1} Intel ${exec lspci | grep 'Intel' | cut -d" " -f 1 | xargs -i lspci -v -s {} | awk 'NR==2' | grep 'Subsystem' | awk '{print $2" "$3" "$4" "$5}'}
${if_existing /sys/class/drm/card0/gt_cur_freq_mhz}
${color1}${voffset -10} Cur. Freq: ${color}${exec cat /sys/class/drm/card0/gt_cur_freq_mhz} MHz${alignr}${color1}Temp: ${color}${exec sensors | grep 'GPU' | awk 'NR==1{print $2}'}
${color1} Min. Freq: ${color}${exec cat /sys/class/drm/card0/gt_min_freq_mhz} MHz${color1}${alignr}Max. Freq: ${color}${exec cat /sys/class/drm/card0/gt_max_freq_mhz} MHz
${color1} Uso GPU: ${color}${exec intel_gpu_time g | cut -d"," -f 5 | cut -d" " -f 3} ${alignr}${color1}Uso CPU: ${color}${exec intel_gpu_time g | cut -d"," -f 4 | cut -d" " -f 3}
${else}
${color1}${voffset -10} Cur. Freq: ${color}${exec cat /sys/class/drm/card1/gt_cur_freq_mhz} MHz${alignr}${color1}Temp: ${color}${exec sensors | grep 'GPU' | awk 'NR==1{print $2}'}
${color1} Min. Freq: ${color}${exec cat /sys/class/drm/card1/gt_min_freq_mhz} MHz${color1}${alignr}Max. Freq: ${color}${exec cat /sys/class/drm/card1/gt_max_freq_mhz} MHz
${color1} Uso GPU: ${color}${exec intel_gpu_time g | cut -d"," -f 5 | cut -d" " -f 3} ${alignr}${color1}Uso CPU: ${color}${exec intel_gpu_time g | cut -d"," -f 4 | cut -d" " -f 3}
${endif}
#------------+
# Amd GPU |
#------------+
${if_match "${exec lspci | grep -w 'Radeon HD 7550M/7570M/7650M'}">""}
${color1}${voffset -15} AMD ${exec lspci | grep 'Radeon' | cut -d" " -f 1 | xargs -i lspci -v -s {} | awk 'NR==2' | grep 'Subsystem' | awk '{print $2" "$3" "$4" "$5}'}
${color1} Uso GPU: ${color}${exec radeontop -d- -l1 | grep -o 'gpu [0-9]\{1,3\}' | cut -c 5-7 }%${alignr}${color1} Temp: ${color}${exec sensors | grep 'temp1' | awk 'NR==1{print $2}'}
${color1}${font} GNU/Linux» $hr
${color1} OS${color}${alignr}${execi 86400 cat `ls -atr /etc/*-release | tail -2` | grep "PRETTY_NAME" | cut -d= -f2 | sed 's/"//g'}
${color1} Kernel${color}${alignr}$kernel on $machine
${color1}${alignc}Tempo ligado ${color}$uptime_short
${color1}${alignc} IP Público: ${color}${exec dig +short myip.opendns.com @resolver1.opendns.com}
${color1}${font} Processador» $hr${color}
${color1} Core 1 ${color}${exec cat /proc/cpuinfo | grep -i mhz | awk 'NR==1{print $4}'} MHz ${alignr}${cpu cpu0}% ${cpubar cpu0 4,100}
${color1} Core 2 ${color}${exec cat /proc/cpuinfo | grep -i mhz | awk 'NR==2{print $4}'} MHz ${alignr}${cpu cpu1}% ${cpubar cpu1 4,100}
${color1} Core 3 ${color}${exec cat /proc/cpuinfo | grep -i mhz | awk 'NR==3{print $4}'} MHz ${alignr}${cpu cpu2}% ${cpubar cpu2 4,100}
${color1} Core 4 ${color}${exec cat /proc/cpuinfo | grep -i mhz | awk 'NR==4{print $4}'} MHz ${alignr}${cpu cpu3}% ${cpubar cpu3 4,100}
${color1}${alignc} Temperatura: ${color}${exec sensors | grep 'CPU' | awk 'NR==1{print $2}'}${alignr}${color1}
${color1}${font} Memoria» $hr${color}
${color1}${alignc}RAM ${color}$mem/$memmax
${alignc}$memperc% ${membar 4,100}
${color1}${alignc}SWAP ${color}$swap/$swapmax
${alignc}$swapperc% ${swapbar 4,100}
${color1}${font} Processos» $hr${color}
${color1} Uso de CPU ${alignr}Uso de memória ${color}
${color1}${stippled_hr}${color}
${color}${top cpu 1}% ${top name 1}${alignr}${top_mem name 1}${top_mem mem_res 1}
${color}${top cpu 2}% ${top name 2}${alignr}${top_mem name 2}${top_mem mem_res 2}
${color}${top cpu 3}% ${top name 3}${alignr}${top_mem name 3}${top_mem mem_res 3}
${color}${top cpu 4}% ${top name 4}${alignr}${top_mem name 4}${top_mem mem_res 4}
${color}${top cpu 5}% ${top name 5}${alignr}${top_mem name 5}${top_mem mem_res 5}
${color1}${alignc}Processos: ${color}$processes ${color1}Executando: ${color}$running_processes
${color1} Armazenamento» $hr${color}
${color1}${alignc} HD sistema; Usado: ${color}${fs_used /}/ Total: ${fs_size /}
${alignc}${color1} Leitura/Escrita ${color}${diskio_read /dev/sda}/${diskio_write /dev/sda}
${color1}${alignc} HD backup; Usado: ${color}${fs_used /media/Bck}/ Total: ${fs_size /media/Bck}
${alignc}${color1} Leitura/Escrita ${color}${diskio_read /dev/sdc}/${diskio_write /dev/sdc}
${if_existing /dev/sdd/}
${color1}${alignc} HD backup; Usado: ${color}${fs_used /dev/sdd/}/ Total: ${fs_size /dev/sdd/}
${alignc}${color1} Leitura/Escrita ${color}${diskio_read /dev/sdd/}/${diskio_write /dev/sdd/}
${endif}
${if_up wlp7s0}
${color1}${font} Wireless» $hr${color}
${color1}${alignc}SSID: ${color}${wireless_essid wlp7s0}
${color1} Sinal: ${color}${alignr}${wireless_link_qual_perc wlp7s0}% ${wireless_link_bar 4,100 wlp7s0}
${color1}${alignc} IP: ${color}${addr wlp7s0}
${color1}${alignc}Velocidade
Download ${alignr}${color}${downspeed wlp7s0} ${color}${downspeedgraph wlp7s0 20,100}
${color1}Upload ${alignr}${color}${upspeed wlp7s0} ${color}${upspeedgraph wlp7s0 20,100}
${endif}
${if_up (enp9s0)}
${color1}${font} Ethernet» $hr${color}
${color1} Modulação: ${color}${exec ethtool enp9s0 | grep 'Speed:' | awk 'NR==1{print $2}'}
${color1}${alignc} IP: ${color}${addr enp9s0}
${color1}${alignc}Velocidade
Download ${alignr}${color}${downspeed enp9s0} ${color}${downspeedgraph enp9s0 20,100}
${color1}Upload ${alignr}${color}${upspeed enp9s0} ${color}${upspeedgraph enp9s0 20,100}
${endif}
]]