I've been using this for years and find it useful.
Just save it as ~/.conkyrc
If there is a better way to enter code please let me know.
conky.config = {
alignment = 'top_right',
background = false,
color2 = '008080',
cpu_avg_samples = 2,
default_color = '00ff00',
double_buffer = true,
font = 'Noto Serif:size=9',
draw_shades = false,
gap_x = 5,
gap_y = 5,
minimum_height = 15,
minimum_width = 29,
maximum_width = 1800,
no_buffers = true,
own_window = true,
own_window_type = 'panel',
own_window_hints = 'undecorated,skip_taskbar,skip_pager',
own_window_transparent = false,
update_interval = 2.0,
use_xft = true,
}
conky.text = [[
${voffset 2} ${color yellow}K${color royal blue} $kernel ${color medium orchid} UpTime ${color firebrick}${uptime_short}${color wheat} Core 0 ${color hot pink} ${color 00ffff}${execi 10 sensors | grep ^'Core 0:' | head -n 1 |awk '{print $3}'} ${color DarkGoldenrod4} [high=85, crit=105] ${color dark violet} CPU ${color misty rose}${cpugraph 10,75 ff0000 0000ff} ${color cornflower blue}${cpu cpu0}% ${color yellow1} RAM ${color IndianRed2}${memperc}% ${color goldenrod3}${mem} / ${memmax} ${color dark magenta} enp4s0: ${color RosyBrown4}${addr enp4s0} ${voffset 2}${color saddle brown}Dn ${color sienna1}${downspeedf enp4s0}KiB/s ${color pale violet red}${downspeedgraph enp4s0 10,75 0000ff ff0000}${color indian red} ${voffset -4}Up: ${color gold}${upspeedf enp4s0}KiB/s ${color spring green}${upspeedgraph enp4s0 10,75 ff0000 0000ff}${color ff00ff} EliveB ${color lemon chiffon}${if_match ${fs_used_perc /} < 10} ${fs_used_perc /}${else}${if_match ${fs_used_perc /} < 90} ${fs_used_perc /}${else}${color saddle brown}${fs_used_perc /}${color gray}${endif}${endif}% of ${fs_size /}${color orange red} ${time %k:%M} ${color dodger blue} ${time %A, %e of %B %Y } ]]