juniorcl
(usa XUbuntu)
Enviado em 27/11/2015 - 23:50h
victorluiz escreveu:
Olá, eu uso o Manjaro xfce e gostaria de saber como faço para instalar o conky pra ele ou outro windget que mostraa hora consumo da ram etc... como faço?
No Manjaro acho que você pode instalar o conky-manager, ele já vem com alguns conkys.
Mas se quiser mexer com ele em modo texto te aconselho instalar o conky-lua que é intalado pelo yaourt
$ yaourt -S conky-lua
Eu uso um conky que mostra os processos, acho que pode te interessar. Ele pode ser visto no meu screenshot abaixo
http://www.vivaolinux.com.br/screenshot/XFWM-Arch-with-wings/
O meu conky está nesse código:
#Traduzido e otimizado por azk4n (azk4n@null.net) - refeito por clebiojunior
alignment tl
background yes
border_inner_margin 0
border_width 0
default_color grey
default_outline_color black
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
gap_x 0 # left-right
gap_y 8 # up-down
minimum_size 250 0
no_buffers yes
override_utf8_locale yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes ##para ser transparente
own_window yes ##se tiver fundo
own_window_colour white ##cor de fundo
own_window_type override
pad_percents 2
short_units yes
stippled_borders 0
top_name_width 5
update_interval 1 #intervalo de atualizações
uppercase no
use_spacer right
use_xft yes
xftalpha 1.0 #0.2
xftfont Pro Font Windows:size=7.5
TEXT
${goto 12}+---- ABE ArchLinux
${goto 15}|${goto 40}|
${goto 15}|${goto 37}+-- Kernel ${goto 125}${kernel}
${goto 15}|${goto 37}+-- Arquitetura${goto 125}${machine}
${goto 15}|${goto 37}+-- Temperatura${goto 125}${hwmon 0 temp 1}°C
${goto 15}|
${goto 12}+---- Status
${goto 15}|${goto 40}|
${goto 15}|${goto 37}+-- CPU${goto 125}${freq_g}GHz (${cpu cpu0}%)
${goto 15}|${goto 40}|${goto 60}+-- ${color #000000}${cpugraph cpu0 cpu1 9,160 FF0000 FFB90F}$color
${goto 15}|${goto 40}|
${goto 15}|${goto 37}+-- Ram${goto 125}${mem} (${memperc}%)
${goto 15}|${goto 40}${goto 60}+-- Total${goto 125}${memmax}
${goto 15}|${goto 40}${goto 60}+-- Livre${goto 125}${memfree}
${goto 15}|${goto 40}${goto 60}+-- ${color #000000}${memgraph 8,160 FF0000 FFB90F}$color
${goto 15}|
${goto 12}+---- Processos
${goto 15}|${goto 40}|
${goto 15}|${goto 37}+-- Uptime${goto 125}${uptime}
${goto 15}|${goto 37}+-- Total${goto 125}${processes}
${goto 15}|${goto 37}+-- Rodando${goto 125}${running_processes}
${goto 15}|${goto 40}|
${goto 15}|${goto 37}+-- CPU
${goto 15}|${goto 40}|${goto 60}+-- ${top name 1}${goto 125}${top cpu1}${top mem 1} %
${goto 15}|${goto 40}|${goto 60}+-- ${top name 2}${goto 125}${top cpu2}${top mem 2} %
${goto 15}|${goto 40}|${goto 60}+-- ${top name 3}${goto 125}${top cpu3}${top mem 3} %
${goto 15}|${goto 40}|${goto 60}+-- ${top name 2}${goto 125}${top cpu2}${top mem 4} %
${goto 15}|${goto 40}|${goto 60}+-- ${top name 3}${goto 125}${top cpu3}${top mem 5} %
${goto 15}|${goto 40}|
${goto 15}|${goto 37}+-- MEM
${goto 15}|${goto 60}+-- ${top_mem name 1}${goto 125}${top_mem cpu1}${top_mem mem 1} %
${goto 15}|${goto 60}+-- ${top_mem name 2}${goto 125}${top_mem cpu2}${top_mem mem 2} %
${goto 15}|${goto 60}+-- ${top_mem name 3}${goto 125}${top_mem cpu3}${top_mem mem 3} %
${goto 15}|${goto 60}+-- ${top_mem name 1}${goto 125}${top_mem cpu1}${top_mem mem 4} %
${goto 15}|${goto 60}+-- ${top_mem name 2}${goto 125}${top_mem cpu2}${top_mem mem 5} %
#
# Aqui entra se tiver internet
#
${if_existing /proc/net/route wlp2s0}${goto 15}| #se tiver conexão com a internet
${goto 15}|
${goto 12}+---- Armazenamento
${goto 15}|${goto 40}|
${goto 15}|${goto 37}+-- /Root${goto 125}${fs_free /} / ${fs_size /}
${goto 15}|${goto 40}|${goto 60}+-- ${fs_bar 6,120 /}
${goto 15}|${goto 37}+-- /Home${goto 125}${fs_free /home} / ${fs_size /home}
${goto 15}|${goto 40}|${goto 60}+-- ${fs_bar 6,120 /home}
${goto 15}|${goto 37}+-- Swap${goto 125}${swap}/${swapmax}
${goto 15}|${goto 40}|${goto 60}+-- ${swapbar 6,120}
${goto 15}|${goto 40}|
${goto 15}|${goto 37}+-- LoadAvg${goto 125}${loadavg}
${goto 15}|${goto 37}+-- Disco${goto 125}${fs_used_perc /}% usado
${goto 15}|${goto 60}+-- Leitura${goto 125}${diskio_read}
${goto 15}|${goto 60}+-- Escrita${goto 125}${diskio_write}
${goto 15}|
${goto 12}+---- Conexão
${goto 37}|
${goto 34}+-- Download
${goto 37}|${goto 57}+-- Velocidade${goto 145}${downspeed wlp2s0}/s
${goto 37}|${goto 60}|${goto 86}+-- ${color #000000}${downspeedgraph wlp2s0 8,100 FF0000 FFB90F}$color
${goto 37}|${goto 60}|
${goto 37}|${goto 57}+-- Total${goto 125}${totaldown wlp2s0}iB
${goto 37}|
${goto 34}+-- Upload
${goto 57}+-- Velocidade${goto 145}${upspeed wlp2s0}/s
${goto 60}|${goto 60}${goto 86}+-- ${color #000000}${upspeedgraph wlp2s0 8,100 FF0000 FFB90F}$color
${goto 60}|
${goto 57}+-- Total${goto 125}${totalup wlp2s0}iB
${else}${goto 15}|
${goto 12}+---- Armazenamento
${goto 15}${goto 40}|
${goto 15}${goto 37}+-- /Root${goto 125}${fs_free /} / ${fs_size /}
${goto 15}${goto 40}|${goto 60}+-- ${fs_bar 6,120 /}
${goto 15}${goto 37}+-- /Home${goto 125}${fs_free /home} / ${fs_size /home}
${goto 15}${goto 40}|${goto 60}+-- ${fs_bar 6,120 /home}
${goto 15}${goto 37}+-- Swap${goto 125}${swap}/${swapmax}
${goto 15}${goto 40}|${goto 60}+-- ${swapbar 6,120}
${goto 15}${goto 40}|
${goto 15}${goto 37}+-- LoadAvg${goto 125}${loadavg}
${goto 15}${goto 37}+-- Disco${goto 125}${fs_used_perc /}% usado
${goto 15}${goto 60}+-- Leitura${goto 125}${diskio_read}
${goto 15}${goto 60}+-- Escrita${goto 125}${diskio_write}
${endif}