Here, this is the one I’m using on XFCE and that works in rewriting his usage code since Conky 1.10 the configuration files have been written with a new Lua syntax :
$ pacman -Ss conky
extra/conky 1.11.5-4 [installé]
Lightweight system monitor for X
$ lua -v
Lua 5.4.0 Copyright (C) 1994-2020 Lua.org, PUC-Rio
By default the Conky file is into
~/.config/conky/conky.conf
You could create it with :
mkdir -p ~/.config/conky && conky --print-config > ~/.config/conky/conky.conf
To check the Conky file you are using :
$ conky --debug
DEBUG(0) [/build/conky/src/conky-1.11.5/src/conky.cc:2513]: reading contents from config file '~/.config/conky/conky.conf'
File conky.conf built on this way then I noticed that to comment, it works like this :
conky.config = {
-- comment a line
}
conky.text = [[
# comment a line is different than UP
]]
To make it Autostart just needs to create a basic conky.desktop file into /home/username/.config/autostart/ adding the code below (increase the pause value depending your system to be sure your background picture is loaded before the conky in case you don’t see it !) :
File conky.desktop
[Desktop Entry]
Type=Application
Name=conky
Exec=conky --daemonize --pause=12
StartupNotify=false
Terminal=false
Conky File conky.conf :
--[[
-- Conky EndeavourOS FLVAL
-- Adapted for EOS wallpaper
-- https://forum.endeavouros.com/t/some-wallpapers-till-the-real-artists-drop-by/159/27?u=flval
]]
conky.config = {
use_xft = true,
xftalpha = .8,
update_interval = 2.0, -- seconds
override_utf8_locale = true,
font = 'pftempestafivecondensed:size=12',
text_buffer_size = 8000,
background = true,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window = true,
own_window_class = 'Conky',
own_window_transparent = false,
own_window_type = 'desktop',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_colour = 000000,
minimum_height = 0,
minimum_width = 0,
maximum_width = 170,
gap_x = 40,
gap_y = 0,
alignment = 'middle_right',
use_spacer = 'none',
draw_shades = false,
draw_outline = false,
draw_borders = false,
stippled_borders = 0,
border_width = 1,
double_buffer = true,
no_buffers = false,
uppercase = true,
cpu_avg_samples = 2,
top_cpu_separate = false,
net_avg_samples = 2,
temperature_unit = 'celsius',
pad_percents = 0, -- what is below, decimal places
short_units = true, -- short version of the disk size 612.21M/3.80G
draw_graph_borders = true,
extra_newline = false,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
show_graph_range = false,
show_graph_scale = false,
color1 = '10141f', -- EndeavourOS black --
color2 = 'c2c2c2', -- grey light
color3 = '7FE8FF', -- blue User
color4 = '7f7fff', -- EndeavourOS blue
color5 = '7f3fbf', -- EndeavourOS violet
color6 = 'ff7f7f', -- EndeavourOS orange
color7 = '280b0b', -- EndeavourOS red dark
color8 = '47B35D', -- EndeavourOS green
default_color = 'white', -- white
default_outline_color = 'black', -- Black
default_shade_color = 'black', -- Black
}
conky.text = [[
${font pftempestafivecondensed:size=28}${utime %H:%M:%S}${voffset -20}
${color2}${font pftempestafivecondensed:size=12}${time %a %d %b %Y}$color
${font ZegoeUI:bold:size=12}${color8}SYSTEM$color
${font pftempestafivecondensed:size=10}${color2}SYS:$color${fs_used /} > ${color2}${fs_size /}
${fs_bar 8,160 /}
${color2}HOME: $color${fs_used /home} > ${color2}${fs_size /home}
${fs_bar 8,160 /home}
${color2}CPU: $color${exec cat /proc/cpuinfo | grep 'model name' | cut -c 14-30 | uniq}
${color2}${cpugraph 15,160}${voffset -21}
${alignc}${cpu cpu0}%
${color2}FREQ: $color${freq} MHz
${color2}TEMP: $color${hwmon 0 temp 1} °C
${color2}RAM : $color$mem > ${color2}$memmax
${membar 8,160}
${color2}SWAP: $color$swap > ${color2}$swapmax
${swapbar 8,160}
${font ZegoeUI:bold:size=12}${color8}NETWORK$color
${font pftempestafivecondensed:size=10}${color2}IP: $color${addr enp0s20}
${if_up enp0s20}${color2}ULOAD: $color${upspeed enp0s20}/s
${color2}${upspeedgraph enp0s20 16,160 000000 000000}
${color2}DLOAD: ${downspeed enp0s20}/s
${downspeedgraph enp0s20 16,160 000000 000000}$color${endif}
${font ZegoeUI:bold:size=12}${color8}USER$color
${font pftempestafivecondensed:size=10}${color2}Number: $color$user_number
${font pftempestafivecondensed:size=10}${color5}$user_names$color ${uptime}
${font ZegoeUI:bold:size=12}${color8}DISTRO$color
${font pftempestafivecondensed:size=10}${execi 86400 lsb_release -si} ${execi 86400 lsb_release -sr} ${execi 86400 lsb_release -sv}
${kernel}
${sysname} $color
#${machine} uncomment to see it !
${color2}CONKY ${conky_version}$color
]]
Don’t forget to adapt the network name enp0s20 to yours :
You could get it with :
$ file /sys/class/net/*
/sys/class/net/enp0s20: symbolic link to
To use the Lua scripts from man conky add :
lua_load
Loads the Lua scripts separated by spaces.