wiki:tools:conky
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:tools:conky [2021/10/14 15:32] – created cleiton | wiki:tools:conky [2025/10/22 18:18] (current) – cleiton | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Conky Monitor do Sistema ====== | ||
| + | |||
| + | Instalação no Manjaro: | ||
| + | |||
| + | <cli> | ||
| + | |||
| + | $ pikaur -Sy conky | ||
| + | $ mkdir -p ~/ | ||
| + | $ cp / | ||
| + | $ conky -c ~/ | ||
| + | $ vi ~/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | <file php conky.conkyrc> | ||
| + | |||
| + | -- Conky, a system monitor https:// | ||
| + | -- | ||
| + | -- This configuration file is Lua code. You can write code in here, and it will | ||
| + | -- execute when Conky loads. You can use it to generate your own advanced | ||
| + | -- configurations. | ||
| + | -- | ||
| + | -- Try this (remove the `--`): | ||
| + | -- | ||
| + | -- | ||
| + | -- | ||
| + | -- For more on Lua, see: | ||
| + | -- https:// | ||
| + | |||
| + | conky.config = { | ||
| + | |||
| + | update_interval = 1, | ||
| + | cpu_avg_samples = 2, | ||
| + | net_avg_samples = 2, | ||
| + | out_to_console = false, | ||
| + | override_utf8_locale = true, | ||
| + | double_buffer = true, | ||
| + | no_buffers = true, | ||
| + | text_buffer_size = 32768, | ||
| + | imlib_cache_size = 0, | ||
| + | own_window = true, | ||
| + | own_window_type = ' | ||
| + | own_window_argb_visual = true, | ||
| + | own_window_argb_value = 50, | ||
| + | own_window_hints = ' | ||
| + | border_inner_margin = 5, | ||
| + | border_outer_margin = 0, | ||
| + | xinerama_head = -1, | ||
| + | alignment = ' | ||
| + | gap_x = 0, | ||
| + | gap_y = 0, | ||
| + | draw_shades = false, | ||
| + | draw_outline = false, | ||
| + | draw_borders = false, | ||
| + | draw_graph_borders = false, | ||
| + | use_xft = true, | ||
| + | font = ' | ||
| + | xftalpha = 0.8, | ||
| + | uppercase = false, | ||
| + | default_color = ' | ||
| + | own_window_colour = '# | ||
| + | minimum_width = 300, minimum_height = 0, | ||
| + | alignment = ' | ||
| + | |||
| + | }; | ||
| + | |||
| + | conky.text = [[ | ||
| + | ${time %H: | ||
| + | ${voffset -16}${font sans-serif: | ||
| + | ${voffset 4}${alignc}${time %A %B %d, %Y} | ||
| + | ${font}${voffset -4} | ||
| + | ${font sans-serif: | ||
| + | ${font sans-serif: | ||
| + | Host: | ||
| + | Uptime: | ||
| + | File System: $alignr${fs_type} | ||
| + | Processes: $alignr ${execi 1000 ps aux | wc -l} | ||
| + | |||
| + | ${font sans-serif: | ||
| + | ${font sans-serif: | ||
| + | ${font sans-serif: | ||
| + | CPU: ${cpu cpu1}% ${cpubar cpu1} | ||
| + | |||
| + | ${font sans-serif: | ||
| + | ${font sans-serif: | ||
| + | $membar | ||
| + | SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}% | ||
| + | ${swapbar} | ||
| + | |||
| + | ${font sans-serif: | ||
| + | ${font sans-serif: | ||
| + | ${fs_bar /} | ||
| + | |||
| + | ${font Ubuntu: | ||
| + | ${font sans-serif: | ||
| + | ${execi 1000 ip a | grep inet | grep -vw lo | grep -v inet6 | cut -d \/ -f1 | sed ' | ||
| + | ${alignr}${execi 1000 wget -q -O- http:// | ||
| + | ${font sans-serif: | ||
| + | ${color lightgray}${downspeedgraph enp9s0f0 80,130 } ${alignr}${upspeedgraph enp9s0f0 80,130 }$color | ||
| + | ${font sans-serif: | ||
| + | ${font sans-serif: | ||
| + | ${top name 1} $alignr ${top pid 1} ${top cpu 1}% ${top mem 1}% | ||
| + | ${top name 2} $alignr ${top pid 2} ${top cpu 2}% ${top mem 2}% | ||
| + | ${top name 3} $alignr ${top pid 3} ${top cpu 3}% ${top mem 3}% | ||
| + | ${top name 4} $alignr ${top pid 4} ${top cpu 4}% ${top mem 4}% | ||
| + | ${top name 5} $alignr ${top pid 5} ${top cpu 5}% ${top mem 5}% | ||
| + | ${top name 6} $alignr ${top pid 6} ${top cpu 6}% ${top mem 6}% | ||
| + | ${top name 7} $alignr ${top pid 7} ${top cpu 7}% ${top mem 7}% | ||
| + | ${top name 8} $alignr ${top pid 8} ${top cpu 8}% ${top mem 8}% | ||
| + | ${top name 9} $alignr ${top pid 9} ${top cpu 9}% ${top mem 9}% | ||
| + | ${top name 10} $alignr ${top pid 10} ${top cpu 10}% ${top mem 10}% | ||
| + | ]]; | ||
| + | |||
| + | </ | ||
| + | |||
| + | Para adicionar o monitor da VPN-SSL Fortinet, adicione as linhas no local que desejar: | ||
| + | ${font Ubuntu: | ||
| + | ${font sans-serif: | ||
| + | |||
| + | |||
| + | Adicionar o comando abaixo no startup do sistema: | ||
| + | |||
| + | conky -c / | ||
| + | | ||
| + | Para ajustar em múltiplos monitores, ajustes os parâmetros: | ||
| + | |||
| + | gap_x = 0, | ||
| + | gap_y = 33, | ||
| + | -- ou | ||
| + | gap_x = -1920, | ||
| + | gap_y = 33, | ||
| + | |||
| + | <WRAP center round info 60%> | ||
| + | No KDE Plasma com Wayland, acessar o '' | ||
| + | Isto evitará múltiplas instâncias do conky sendo iniciadas e sobrepondo-se. | ||
| + | </ | ||
| + | |||
| + | |||
| + | Referências: | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| - | s | ||
wiki/tools/conky.1634225532.txt.gz · Last modified: 2021/10/14 15:32 by cleiton
