dotfiles/.ansible/roles/desktop/templates/conkyrc.j2

56 lines
2.2 KiB
Django/Jinja

conky.config = {
background = true,
update_interval = 1.5,
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 = 'desktop',
own_window_argb_visual = true,
own_window_argb_value = 120,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
border_inner_margin = 10,
border_outer_margin = 0,
xinerama_head = 2,
alignment = 'bottom_right',
gap_x = 90,
gap_y = 90,
draw_shades = true,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
use_xft = true,
font = 'Ubuntu Mono:size=12',
xftalpha = 0.8,
uppercase = false,
default_color = '#FFFFFF',
own_window_colour = '#000000',
minimum_width = 0, minimum_height = 0,
};
conky.text = [[
${color #DD3A21}${nodename}${color}${goto 105}${font Webdings}~ ${font}${battery_short}${goto 200}${font Modern Pictograms}3${font}${voffset -2} ${time %d/%m/%y} ${font Modern Pictograms}}${font}${voffset -2} ${time %H:%M}
${hr}
${font Modern Pictograms}^${font}${voffset -2} ${addrs {{ ansible_default_ipv4.interface }}} / ${curl https://ipinfo.io/ip}
${goto 20}${upspeedgraph {{ ansible_default_ipv4.interface }} 30,350 06E9F8 2104FA}
${goto 20}${font Modern Pictograms}]${font} ${upspeed {{ ansible_default_ipv4.interface }}}
${goto 20}${downspeedgraph {{ ansible_default_ipv4.interface }} 30,350 FFFF00 DD3A21}
${goto 20}${font Modern Pictograms}[${font} ${downspeed {{ ansible_default_ipv4.interface }}}
${hr}
${font Modern Pictograms}V${font}${voffset -2} ${mem}/${memmax} (${memperc}%) | Swap: ${swapperc}%
${goto 20}${memgraph 30,350 AAF5D0 00B35B}
${hr}
{% for cpu in range(ansible_processor_vcpus) %}
${goto 20}CPU{{ cpu }}: ${cpu cpu{{ cpu }}}%${goto 100}${cpubar 7,280 cpu{{ cpu }}}
{% endfor %}
${hr}
${color #FFFF00}${goto 20}Name ${goto 200}PID${goto 255}CPU%${goto 310}Mem%${color}
{% for top in range(1, 6) %}
${goto 20}${top name {{top}}} ${goto 180}${top pid {{top}}}${goto 235}${top cpu {{top}}}${goto 290}${top mem {{top}}}
{% endfor %}
]];