User Tools

Site Tools


wiki:tools:conky

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:tools:conky [2024/12/03 11:26] cleitonwiki:tools:conky [2025/10/22 18:18] (current) cleiton
Line 15: Line 15:
 <file php conky.conkyrc> <file php conky.conkyrc>
  
--- Conky, a system monitor https://github.com/brndnmtthws/conky +    -- Conky, a system monitor https://github.com/brndnmtthws/conky 
--- +    -- 
--- This configuration file is Lua code. You can write code in here, and it will +    -- 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 +    -- execute when Conky loads. You can use it to generate your own advanced 
--- configurations. +    -- configurations. 
--- +    -- 
--- Try this (remove the `--`): +    -- Try this (remove the `--`): 
--- +    -- 
---   print("Loading Conky config"+    --   print("Loading Conky config"
--- +    -- 
--- For more on Lua, see: +    -- For more on Lua, see: 
--- https://www.lua.org/pil/contents.html +    -- https://www.lua.org/pil/contents.html 
- +      
-conky.config = { +    conky.config = { 
-  +      
- update_interval = 1, +     update_interval = 1, 
- cpu_avg_samples = 2, +     cpu_avg_samples = 2, 
- net_avg_samples = 2, +     net_avg_samples = 2, 
- out_to_console = false, +     out_to_console = false, 
- override_utf8_locale = true, +     override_utf8_locale = true, 
- double_buffer = true, +     double_buffer = true, 
- no_buffers = true, +     no_buffers = true, 
- text_buffer_size = 32768, +     text_buffer_size = 32768, 
- imlib_cache_size = 0, +     imlib_cache_size = 0, 
- own_window = true, +     own_window = true, 
- own_window_type = 'normal', +     own_window_type = 'normal', 
- own_window_argb_visual = true, +     own_window_argb_visual = true, 
- own_window_argb_value = 50, +     own_window_argb_value = 50, 
- own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', +     own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', 
- border_inner_margin = 5, +     border_inner_margin = 5, 
- border_outer_margin = 0, +     border_outer_margin = 0, 
- #xinerama_head define em qual monitor aparecer, opção é relativa ao monitor principal: -1 ou 0 ou 1, etc. +     xinerama_head -1, 
- xinerama_head = 1, +     alignment = 'bottom_right', 
- alignment = 'bottom_right', +     gap_x = 0, 
- gap_x = 0, +     gap_y = 0
- gap_y = 33+     draw_shades = false, 
- draw_shades = false, +     draw_outline = false, 
- draw_outline = false, +     draw_borders = false, 
- draw_borders = false, +     draw_graph_borders = false, 
- draw_graph_borders = false, +     use_xft = true, 
- use_xft = true, +     font = 'Ubuntu Mono:size=12', 
- font = 'Ubuntu Mono:size=12', +     xftalpha = 0.8, 
- xftalpha = 0.8, +     uppercase = false, 
- uppercase = false, +     default_color = 'white', 
- default_color = 'white', +     own_window_colour = '#000000', 
- own_window_colour = '#000000', +     minimum_width = 300, minimum_height = 0, 
- minimum_width = 300, minimum_height = 0, +     alignment = 'top_left', 
- alignment = 'top_right', +      
- +    }; 
-}; +      
- +    conky.text = [[ 
-conky.text = [[ +    ${time %H:%M:%S}${alignr}${time %d/%m/%Y} 
-${time %H:%M:%S}${alignr}${time %d/%m/%Y} +    ${voffset -16}${font sans-serif:bold:size=18}${alignc}${time %H:%M}${font} 
-${voffset -16}${font sans-serif:bold:size=18}${alignc}${time %H:%M}${font} +    ${voffset 4}${alignc}${time %A %B %d, %Y} 
-${voffset 4}${alignc}${time %A %B %d, %Y} +    ${font}${voffset -4} 
-${font}${voffset -4} +    ${font sans-serif:bold:size=10}SYSTEM ${hr 2} 
-${font sans-serif:bold:size=10}SYSTEM ${hr 2} +    ${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine 
-${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine +    Host:$alignr$nodename 
-Host:$alignr$nodename +    Uptime:$alignr$uptime 
-Uptime:$alignr$uptime +    File System: $alignr${fs_type} 
-File System: $alignr${fs_type} +    Processes: $alignr ${execi 1000 ps aux | wc -l} 
-Processes: $alignr ${execi 1000 ps aux | wc -l} +      
- +    ${font sans-serif:bold:size=10}CPU ${hr 2} 
-${font sans-serif:bold:size=10}CPU ${hr 2} +    ${font sans-serif:normal:size=8}${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'
-${font sans-serif:normal:size=8}${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'+    ${font sans-serif:normal:size=8}${cpugraph cpu1} 
-${font sans-serif:normal:size=8}${cpugraph cpu1} +    CPU: ${cpu cpu1}% ${cpubar cpu1} 
-CPU: ${cpu cpu1}% ${cpubar cpu1} +      
- +    ${font sans-serif:bold:size=10}MEMORY ${hr 2} 
-${font sans-serif:bold:size=10}MEMORY ${hr 2} +    ${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc% 
-${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc% +    $membar 
-$membar +    SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}% 
-SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}% +    ${swapbar} 
-${swapbar} +      
- +    ${font sans-serif:bold:size=10}DISK USAGE ${hr 2} 
-${font sans-serif:bold:size=10}DISK USAGE ${hr 2} +    ${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}% 
-${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}% +    ${fs_bar /} 
-${fs_bar /} +      
- +    ${font Ubuntu:bold:size=10}NETWORK ${hr 2} 
-${font Ubuntu:bold:size=10}NETWORK ${hr 2} +    ${font sans-serif:normal:size=8}Local IPs:${alignr}External IP: 
-${font sans-serif:normal:size=8}Local IPs:${alignr}External IP: +    ${execi 1000 ip a | grep inet | grep -vw lo | grep -v inet6 | cut -d \/ -f1 | sed 's/[^0-9\.]*//g'${alignr}${execi 1000  wget -q -O- http://v4.ipv6-test.com/api/myip.php; echo} 
-${execi 1000 ip a | grep inet | grep -vw lo | grep -v inet6 | cut -d \/ -f1 | sed 's/[^0-9\.]*//g' ${alignr}${execi 1000  wget -q -O- http://ipecho.net/plain; echo} +    ${alignr}${execi 1000  wget -q -O- http://v6.ipv6-test.com/api/myip.php; echo} 
-${font sans-serif:normal:size=8}Down: ${downspeed enp0s20u2u1i5}  ${alignr}Up: ${upspeed enp0s20u2u1i5}  +    ${font sans-serif:normal:size=8}Down: ${downspeed enp9s0f0}  ${alignr}Up: ${upspeed enp9s0f0}  
-${color lightgray}${downspeedgraph enp0s20u2u1i5 80,130 } ${alignr}${upspeedgraph enp0s20u2u1i5 80,130 }$color +    ${color lightgray}${downspeedgraph enp9s0f0 80,130 } ${alignr}${upspeedgraph enp9s0f0 80,130 }$color 
-${font sans-serif:bold:size=10}TOP 10 PROCESSES ${hr 2} +    ${font sans-serif:bold:size=10}TOP 10 PROCESSES ${hr 2} 
-${font sans-serif:normal:size=8}Name $alignr PID   CPU%   MEM%${font sans-serif:normal:size=8} +    ${font sans-serif:normal:size=8}Name $alignr PID   CPU%   MEM%${font sans-serif:normal:size=8} 
-${top name 1} $alignr ${top pid 1} ${top cpu 1}% ${top mem 1}% +    ${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 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 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 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 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 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 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 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 9} $alignr ${top pid 9} ${top cpu 9}% ${top mem 9}% 
-${top name 10} $alignr ${top pid 10} ${top cpu 10}% ${top mem 10}% +    ${top name 10} $alignr ${top pid 10} ${top cpu 10}% ${top mem 10}% 
-]];+    ]];
  
 </file> </file>
wiki/tools/conky.txt · Last modified: 2025/10/22 18:18 by cleiton

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki