Code:
--
-- Starting with version 1.10, conky config is following lua format; there are several changes.
-- all configuration items end with a trailing comma.
-- all string variables are enclosed in single quotes.
-- all boolean responses are now true/false instead of yes/no
-- also notice that comments are two dashes and a space
-- until you get into the text area, where # still works.
-- here we go...
conky.config = {
-- conky setup
update_interval = 0.5,
update_interval_on_battery = 3,
background = true,
total_run_times = 0,
cpu_avg_samples = 1,
no_buffers = true,
text_buffer_size = 8192,
temperature_unit = 'celsius',
--
-- needed if you want to display degree symbols
--
override_utf8_locale = true,
-- set up window
alignment = 'top_right',
gap_x = 28,
gap_y = 52,
minimum_width = 246,
double_buffer = true,
background = true,
own_window = true,
own_window_transparent = true,
--
-- for most installations own_window type will be 'normal' or 'desktop'.
-- to function correctly in KDE own_window_type must be 'dock'.
--
own_window_type = 'dock',
own_window_argb_visual = true,
--
-- own_window_hints:
-- undecorated = no window decorations
-- below = keep below other windows
-- sticky = show on all desktops
-- skip_taskbar, skip_pager prevents a taskbar icon or an alt-tab switch to conky.
--
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
draw_borders = false,
draw_shades = false,
draw_outline = false,
use_xft = true,
font = 'Arial:size=11',
uppercase = false,
short_units = true,
-- colors
--
-- you can assign colors here and then just refer to them in the text section.
-- Note they're string variables without a leading #
--
color0 = '828486', -- bar/graph color
color1 = 'cccccc', -- text color
color7 = '#00ffff', -- blue
color8 = 'ffff4d', -- yellow
color9 = 'ff4d4d', -- red
}
-- text
conky.text = [[
#
# anything after here uses a hashtag to comment instead of double dashes.
#
# date and time display
#
${font Arial:size=32}${color1}${alignc}${time %l:%M %P}${font}
${font Arial:size=10}${alignc} ${time %A}, ${time %B} ${time %e}${font}
#
# cpu frequency. Note cpu freq is green unless running at less than max speed.
#
${voffset 10}${color1}cpu freq:${alignr}${color7}${if_match ${freq 1} < 1734}${color8}${endif}${freq 1}${color1} mhz
#
# cpu temperature. Colors change to yellow at 75°C and red at 90°C.
#
${color1}cpu temp:${alignr}${color7}${if_match ${i8k_cpu_temp} > 75}${color8}${endif}${if_match ${i8k_cpu_temp} > 90}${color9}${endif}${i8k_cpu_temp}°C
#
# 1m, 5m and 15m cpu load. Note color changes as load increases.
#
${voffset 12}${color1}${alignc}1m: ${if_match ${loadavg 1} < 0.70}${color7}${endif}${if_match ${loadavg 1} >= 0.70}${color8}${endif}${if_match ${loadavg 1} >= 2.00}${color9}${endif}${loadavg 1}${color1} 5m: ${if_match ${loadavg 2} < 0.70}${color7}${endif}${if_match ${loadavg 2} >= 0.70}${color8}${endif}${if_match ${loadavg 2} >= 2.00}${color9}${endif}${loadavg 2}${color1} 15m: ${if_match ${loadavg 3} < 0.70}${color7}${endif}${if_match ${loadavg 3} >= 0.70}${color8}${endif}${if_match ${loadavg 3} >= 2.00}${color9}${endif}${loadavg 3}
#
# cpu graph.
#
${font Arial:size=10}${voffset -10}${color0}${cpugraph cpu0 32,252 00ffff ff4d4d -t -l}
#
# text inside cpu graph. Note color changes here also.
# Also, you can use a backslash to break up long lines. This is handy.
#
${color1}${goto 80}${voffset -32}cpu load: ${goto 156}${if_match ${cpu cpu0} >= 3}${color7}${endif}\
${if_match ${cpu cpu0} >= 20}${color8}${endif}${if_match ${cpu cpu0} >= 90}${color9}${endif}${cpu cpu0}%
#
# Individual CPU indicators - cpu 0-3
#
# cpu0 - note that conky starts numbering cores at 1 instead of zero. With conky, cpu0 = all cores.
#
${color0}${voffset -2}${if_match ${cpu cpu1} >= 3}${color7}${endif}\
${if_match ${cpu cpu1} >= 20}${color8}${endif}${if_match ${cpu cpu1} >= 90}${color9}${endif}${cpugraph cpu1 32,60}\
#
# cpu1
#
${color0} ${if_match ${cpu cpu2} >= 3}${color7}${endif}${if_match ${cpu cpu2} >= 20}${color8}${endif}\
${if_match ${cpu cpu2} >= 90}${color9}${endif}${cpugraph cpu2 32,60}\
#
# cpu2
#
${color0} ${if_match ${cpu cpu3} >= 3}${color7}${endif}${if_match ${cpu cpu3} >= 20}${color8}${endif}\
${if_match ${cpu cpu3} >= 90}${color9}${endif}${cpugraph cpu3 32,60}\
#
# cpu3
#
${color0} ${if_match ${cpu cpu4} >= 3}${color7}${endif}${if_match ${cpu cpu4} >= 20}${color8}${endif}\
${if_match ${cpu cpu4} >= 90}${color9}${endif}${cpugraph cpu4 32,60}
#
# cpu load numbers for first four indicators. These go inside the indicators :)
#
${font Arial:size=10}\
#
# cpu0
#
${color1}${voffset -32}${goto 28}${if_match ${cpu cpu1} >= 20}${color8}${endif}${if_match ${cpu cpu1} >= 90}${color9}${endif}${cpu cpu1}%\
#
# cpu1
#
${goto 90}${if_match ${cpu cpu2} >= 20}${color8}${endif}${if_match ${cpu cpu2} >= 90}${color9}${endif}${cpu cpu2}%\
#
# cpu2
#
${goto 154}${if_match ${cpu cpu3} >= 20}${color8}${endif}${if_match ${cpu cpu3} >= 90}${color9}${endif}${cpu cpu3}%\
#
# cpu 3
#
${goto 218}${if_match ${cpu cpu4} >= 20}${color8}${endif}${if_match ${cpu cpu4} >= 90}${color9}${endif}${cpu cpu4}%
#
#
# memory bar. Note conditional at the end of the line.
#
${color1}${voffset 24}memory:${alignr}$mem / $memmax
${color0}${goto 6}${membar} ${if_existing /proc/swaps partition}
#
# swapbar only displays if there is a swap partition activated. See conditional above.
#
${color1}swap:${alignr}$swap / $swapmax
${color0}${goto 6}${swapbar}${endif}
#
# simple filesystem bar. This one is for /
#
${color1}root:${alignr}${fs_used /} / ${fs_size /}
${color0}${goto 6}${fs_bar /}
#
# and another filesystem bar for /home
#
${color1}/home:${alignr}${fs_used /home} / ${fs_size /home}
${color0}${goto 6}${fs_bar /home}${if_existing /media/neo/437b0d8d-439e-4ce0-b061-c9a11d643b1d}
#
# This filesystem bar only displays if a specific external drive is mounted.
#
${color1}external:${alignr}${fs_used /media/neo/437b0d8d-439e-4ce0-b061-c9a11d643b1d} / ${fs_size /media/neo/437b0d8d-439e-4ce0-b061-c9a11d643b1d}
${color0}${goto 6}${fs_bar /media/neo/437b0d8d-439e-4ce0-b061-c9a11d643b1d}${endif}
#
# disk i/o numbers
#
${color1}${voffset 6}${alignc}disk i/o:
${color7}${alignc}${diskio}
#
# wireless information. only displays if wireless is connected.
#
${color1}${if_existing /proc/net/route wlp4s0}
${color1}${voffset -34}wlan:${alignr}${wireless_link_qual_perc wlp4s0}%
${color0}${goto 6}${wireless_link_bar wlp4s0}
${alignc}${color1}${voffset 8}dn: ${color7}${downspeedf wlp4s0}${color1} kbps
${alignc}up: ${color7}${upspeedf wlp4s0}${color1} kbps${endif}
#
# nodename, uptime, kernel version
#
${font Arial:size=10}${color1}${alignc}${voffset 0}uptime: ${uptime}
${color1}${alignc}kernel: ${kernel}
${color1}${alignc}Distro: kubuntu
${color1}${alignc}Release: ${execi 65000 lsb_release -rs | awk '{print $1}'}
${color1}${alignc}Codename: ${execi 65000 lsb_release -cs | awk '{print $1}'}
${color1}${alignc}KDE Frameworks: ${execi 65000 kf5-config --version | grep KDE | awk '{print $3}'}
${color1}${alignc}Desktop: Plasma ${execi 65000 plasmashell -v | awk '{print $2}'}
#
# and we end things with a couple of square brackets
#
]]