Skip to content

Instantly share code, notes, and snippets.

@cornernote
Last active July 27, 2021 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cornernote/db49a05acdc5ef0334fe353d5c791c7c to your computer and use it in GitHub Desktop.
Save cornernote/db49a05acdc5ef0334fe353d5c791c7c to your computer and use it in GitHub Desktop.
conky.config = {
update_interval = 2,
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 = 'normal',
own_window_argb_visual = true,
own_window_argb_value = 100,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
border_inner_margin = 2,
border_outer_margin = 0,
xinerama_head = 1,
gap_x = 0,
gap_y = 0,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
show_graph_scale = false,
use_xft = true,
font = 'Ubuntu Mono:size=12',
xftalpha = 0.8,
uppercase = false,
default_color = 'white',
own_window_colour = '#000000',
minimum_width = 0,
minimum_height = 0,
alignment = 'bottom_right',
};
conky.text = [[
${voffset -4}${color 009900}LOAD${color}
${voffset -6}${color 222222}${loadgraph 55,145 006600 660000 4 -t}${color}
${offset 3}${voffset -70}${font Ubuntu Mono:size=10}proc: ${running_processes} +${processes}${font}
${offset 3}${voffset -8}${font Ubuntu Mono:size=10}thrd: ${running_threads} +${threads}${font}
${offset 3}${voffset 10}${loadavg}
${voffset -70}${offset 150}${color 009900}CPU${color}
${offset 150}${voffset -6}${color 222222}${cpugraph 0 55,145 006600 660000 -t}${color}
${offset 155}${voffset -63}${color 666666}${cpubar 6,110 cpu0}${color} ${voffset -2}${font Ubuntu Mono:size=10}${cpu cpu0}%${font}${color}
${voffset -37}${offset 300}${color 009900}STORE${color}
${offset 300}${voffset -7}${font Ubuntu Mono:size=8}RAM: ${mem} / ${memmax}${font}
${offset 300}${voffset -10}${color 666666}${membar 4,120}${color} ${voffset -4}${font Ubuntu Mono:size=8}$memperc%${font}${color}
${offset 300}${voffset -10}${font Ubuntu Mono:size=8}SWP: ${swap} / ${swapmax}${font}
${offset 300}${voffset -10}${color 666666}${swapbar 4,120}${color} ${voffset -4}${font Ubuntu Mono:size=8}$swapperc%${font}${color}
${offset 300}${voffset -10}${font Ubuntu Mono:size=8}HDD: ${fs_used} / ${fs_size}${font}
${offset 300}${voffset -10}${color 666666}${fs_bar 4,120}${color} ${voffset -4}${font Ubuntu Mono:size=8}$fs_used_perc%${font}${color}
${voffset -80}${offset 450}${color 009900}HDD IO${color}
${offset 450}${voffset -6}${color 222222}${diskiograph_read /dev/sda5 26,145 006600 660000 -t}${color}
${offset 453}${voffset -28}${font Ubuntu Mono:size=10}R: ${diskio_read}${font}
${offset 450}${voffset -5}${color 222222}${diskiograph_write /dev/sda5 26,145 006600 660000 -t}${color}
${offset 453}${voffset -28}${font Ubuntu Mono:size=10}W: ${diskio_write}${font}
${voffset -74}${offset 600}${color 009900}NET IO${color}
${offset 600}${voffset -6}${color 222222}${downspeedgraph enp0s3 26,145 006600 660000 -t}${color}
${offset 603}${voffset -28}${font Ubuntu Mono:size=10}D: ${downspeed enp0s3}${font}
${offset 600}${voffset -5}${color 222222}${upspeedgraph enp0s3 26,145 006600 660000 -t}${color}
${offset 603}${voffset -28}${font Ubuntu Mono:size=10}U: ${upspeed enp0s3}${font}
${voffset -75}${offset 750}${color 009900}PROC${color}
${offset 750}${voffset -6}${font Ubuntu Mono:size=8}${color grey}${alignr}Name PID CPU% MEM%${color}${font}
${offset 750}${voffset -10}${font Ubuntu Mono:size=8}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}${font}
${offset 750}${voffset -10}${font Ubuntu Mono:size=8}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}${font}
${offset 750}${voffset -10}${font Ubuntu Mono:size=8}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}${font}
${offset 750}${voffset -10}${font Ubuntu Mono:size=8}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}${font}
${voffset -365}
]]

Conky Config

Uses alignment=bottom_left to display Conky in the footer, usually out of the way.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment