Skip to content

Instantly share code, notes, and snippets.

@danackerson
Created September 10, 2020 12:32
Show Gist options
  • Save danackerson/2592ffa04dd63317212fadeb20bca635 to your computer and use it in GitHub Desktop.
Save danackerson/2592ffa04dd63317212fadeb20bca635 to your computer and use it in GitHub Desktop.
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 = 'normal',
own_window_argb_visual = true,
own_window_argb_value = 50,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
border_inner_margin = 5,
border_outer_margin = 0,
xinerama_head = 1,
alignment = 'bottom_right',
gap_x = 0,
gap_y = 33,
draw_shades = false,
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 = 'white',
own_window_colour = '#000000',
maximum_width = 240, minimum_width = 100, minimum_height = 0,
alignment = 'top_right',
};
conky.text = [[
${font sans-serif:bold:size=11}$alignc $nodename - $sysname $kernel
${font sans-serif:normal:size=10}Uptime: $color $uptime Freq: $freq_g GHz
${font sans-serif:bold:size=10}HARDWARE${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}${color 0066ff}${cpugraph cpu1}
${color white}CPU: ${cpu cpu1}% ${cpubar cpu1}
${font sans-serif:normal:size=8}Tctl: ${execi 1 /usr/bin/sensors | grep Tctl|cut -d+ -f2} ${alignr}Fan: ${execi 1 /usr/bin/sensors | grep fan2|cut -d ":" -f2|cut -d "R" -f1|xargs}RPM
${font sans-serif:normal:size=8}SysFan1: ${execi 1 /usr/bin/sensors | grep fan3|cut -d ":" -f2|cut -d "R" -f1|xargs}RPM ${alignr} SysFan3: ${execi 1 /usr/bin/sensors | grep fan5|cut -d ":" -f2|cut -d "R" -f1|xargs}RPM
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
${font sans-serif:bold:size=10}DISK${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font Ubuntu:bold:size=10}NETWORK${hr 2}
${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://ipecho.net/plain; echo}
${font sans-serif:normal:size=8}Down: ${downspeed enp34s0} ${alignr}Up: ${upspeed enp34s0}
${color lightgreen}${downspeedgraph enp34s0 80,130 } ${color FF4500}${alignr}${upspeedgraph enp34s0 80,130 }
$color${font sans-serif:bold:size=10}TOP${hr 2}
${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 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}%
]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment