Conky Config (+Internet)

This conky config I have been working on for like a year, learning the Lua scripting language, and always losing my hard drive to something, having to start over I have it all now memorized… The internet graph on this… here let me take a screenshot for you;

The internet graph is huge, it’s how I want it I can’t remember off the top of my head how to make the graphs smaller. I started this script with the “Minimalis” conky script floating around, and you’ll need something from that script, it’s a font called: ConkySymbols.
And without further ahh-do, here is the script!
--[[
# Minimalis Conky 1.3
# Author : archit3x
# Release date : 4 December 2020
# Tested on : Archlinux ARM - XFCE Desktop
# Email : archit3x@archlinux.us
# Feel free to modity this script ;)
]]
conky.config = {
alignment = 'top_right',
background = true,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = '#6082B6',
color1 = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = true,
extra_newline = false,
font = 'Liberation Mono:size=7',
font_title = 'Liberation Mono:size=13',
gap_x = 30,
gap_y = 30,
minimum_height = 250,
minimum_width = 330,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'root',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_type = 'panel',
own_window_hints ='undecorated,sticky,skip_taskbar,skip_pager,below',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[
${color1}${font ConkySymbols:size=24}O${font} ${voffset -10}GNU/Linux» $hr ${color}
${color1}${goto 35}OS : ${color}${execi 86400 cat `ls -atr /etc/*-release | tail -2` | grep "PRETTY_NAME" | cut -d= -f2 | sed 's/"//g'}
${color1}${goto 35}Kernel : ${color}$kernel on $machine
${color1}${font ConkySymbols:size=24}f${font} ${voffset -10} System» $hr${color}
${color1}${goto 35}Thread 1 : ${color}${freq_g 1}GHz ${alignr}${cpu cpu0}% ${cpubar cpu0 4,150}
${color1}${goto 35}Thread 2 : ${color}${freq_g 2}GHz ${alignr}${cpu cpu1}% ${cpubar cpu1 4,150}
${color1}${goto 35}Thread 3 : ${color}${freq_g 3}GHz ${alignr}${cpu cpu2}% ${cpubar cpu2 4,150}
${color1}${goto 35}Thread 4 : ${color}${freq_g 4}GHz ${alignr}${cpu cpu3}% ${cpubar cpu3 4,150}
${color1}${goto 35}Thread 5 : ${color}${freq_g 1}GHz ${alignr}${cpu cpu4}% ${cpubar cpu4 4,150}
${color1}${goto 35}Thread 6 : ${color}${freq_g 2}GHz ${alignr}${cpu cpu5}% ${cpubar cpu5 4,150}
${color1}${goto 35}Thread 7 : ${color}${freq_g 3}GHz ${alignr}${cpu cpu6}% ${cpubar cpu6 4,150}
${color1}${goto 35}Thread 8 : ${color}${freq_g 4}GHz ${alignr}${cpu cpu7}% ${cpubar cpu7 4,150}
${color1}${goto 35}Thread 9 : ${color}${freq_g 1}GHz ${alignr}${cpu cpu8}% ${cpubar cpu8 4,150}
${color1}${goto 35}Thread 10 : ${color}${freq_g 2}GHz ${alignr}${cpu cpu9}% ${cpubar cpu9 4,150}
${color1}${goto 35}Thread 11 : ${color}${freq_g 3}GHz ${alignr}${cpu cpu10}% ${cpubar cpu10 4,150}
${color1}${goto 35}Thread 12 : ${color}${freq_g 4}GHz ${alignr}${cpu cpu11}% ${cpubar cpu11 4,150}
${color1}${goto 35}Thread 13 : ${color}${freq_g 1}GHz ${alignr}${cpu cpu12}% ${cpubar cpu12 4,150}
${color1}${goto 35}Thread 14 : ${color}${freq_g 2}GHz ${alignr}${cpu cpu13}% ${cpubar cpu13 4,150}
${color1}${goto 35}Thread 15 : ${color}${freq_g 3}GHz ${alignr}${cpu cpu14}% ${cpubar cpu14 4,150}
${color1}${goto 35}Thread 16 : ${color}${freq_g 4}GHz ${alignr}${cpu cpu15}% ${cpubar cpu15 4,150}
${color1}${goto 35}Uptime : ${color}$uptime_short ${alignr}${color1}Load : ${color}${loadavg}
${color1}${font ConkySymbols:size=24}h${font} ${voffset -10} Temperature» $hr${color}
${color1}${goto 35}CPU : ${color}${exec sensors | grep 'temp1' | awk 'NR==1{print $2}'} ${alignr}${color1}GPU : ${color}${exec sensors | grep 'temp1' | awk 'NR==2{print $2}'}
${color1}${font ConkySymbols:size=24}J${font} ${voffset -10}Memory» $hr${color}
${color1}${goto 35}RAM : ${color}$mem/$memmax ${alignr}$memperc% ${membar 4,100}
${color1}${goto 35}SWAP: ${color}$swap/$swapmax $alignr}$swapperc% ${swapbar 4,100}
${color1}${font ConkySymbols:size=24}n${font} ${voffset -10}Processes» $hr${color}
${color1}${goto 35}CPU usage ${alignr}Memory Usage${color}
${color1}${goto 35}${stippled_hr}${color}
${goto 35}${top name 1} ${color}${top cpu 1}% ${alignr}${top_mem name 1}${top_mem mem_res 1}
${goto 35}${top name 2} ${color}${top cpu 2}% ${alignr}${top_mem name 2}${top_mem mem_res 2}
${goto 35}${top name 3} ${color}${top cpu 3}% ${alignr}${top_mem name 3}${top_mem mem_res 3}
${goto 35}${top name 4} ${color}${top cpu 4}% ${alignr}${top_mem name 4}${top_mem mem_res 4}
${goto 35}${top name 5} ${color}${top cpu 5}% ${alignr}${top_mem name 5}${top_mem mem_res 5}
${color1}${goto 35}Processes: ${color}$processes ${color1}Running: ${color}$running_processes
${color1}${font ConkySymbols:size=24}k${font} ${voffset -10} Storage» $hr${color}
${color1}${goto 35}ROOT : ${color}${fs_used /}/${fs_size /} ${alignr}${fs_used_perc /}% ${fs_bar 4,100 /}
${color1}${goto 35}/HOME : ${color}${fs_used /home}/${fs_size /home} ${alignr}${fs_used_perc /home}% ${fs_bar 4,100 /home}
${goto 35}
${color1}${font ConkySymbols:size=24}I${font} ${voffset -10} Internet» $hr${color}
${color1}${goto 35}SSID : ${color}${wireless_essid enp5s0} ${color1}${alignr}Signal: ${color}${wireless_link_qual_perc enp5s0}% ${wireless_link_bar 4,100 enp5s0}
${color1}${goto 35}Bitrate : ${color}${wireless_bitrate enp5s0}
${color1}${goto 35}Total Down/Up : ${color}${totaldown enp5s0}/${totalup enp5s0}
${color1}${goto 35}Speed Down/Up : ${color}${downspeed enp5s0}/${upspeed enp5s0}
${downspeedgraph enp5s0 80,}
${upspeedgraph enp5s0 80,}
]]
LuaJust copy and paste, and you’ll have a script that monitors your ethernet traffic!
It’s tailored to 16-threaded computers, so if you don’t have 16 threads or have more, you’ll have to learn how to add another line, or to delete a line, so you have the accurate amount of cores. Conky starts counting cores at cpu0, so if you have 4-cores you would have 0 – 7 cpu0 cpu1 cpu2…. whatever.
The wireless version of this script can be made by downloading the above file and pasting the wireless information from the Conky script inside of the file onto this new conky script I present above.
There is a way with if statements to make a script that tailors to both wireless and ethernet, but i’m lazy, and on that note, this probably won’t ever get updated, because I look at bytecode virtual machines more than some Lua scripting, the Lua scripting is not my favorite language either, it’s C++.
With that I must depart