conky.config = {
	background = true,
	use_xft = true,
	font = 'Sans:size=8',
	xftalpha = 1,
	update_interval = 5.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
	own_window_type = 'desktop',
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 200,
	maximum_width = 1200,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = true,
	default_color = '#e4eeff',
	default_shade_color = '#000000',
	default_outline_color = '#828282',
	alignment = 'top_right',
	gap_x = 12,
	gap_y = 18,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
-- make all processors like a single one:
	top_cpu_separate = false,
	override_utf8_locale = true,

-- if composite:
	own_window_argb_visual = false,

};

conky.text = [[
${font sans-serif:bold:size=8}SYSTEM ${hr 2}${font sans-serif:normal:size=8}
${time %H:%M} ${execi 60000 EL_DEBUG=0 showmylocation | awk -v FS="::" '{ if ($1 == "city_name")  print $2}' } ${alignr}${time %d %B %a, %Y}
#Host:$alignr$nodename
$nodename $alignr ${execi 5000 grep 'model name' /proc/cpuinfo | sed -e 's/model name.*: //' -e 's|^\s*||g' | uniq | sed -e 's| with .*$||g' -e 's| @ .*$||g' -e 's|Intel.R.|Intel|g' -e 's|Core.TM.|Core|g' -e 's|Intel Core|Intel|g' -e 's| CPU||' } ${fs_type}
# ${font sans-serif:normal:size=8}$kernel $alignr | ${execi 10000  uname -m | sed -E -e 's/(x86.64|amd64)/64 BIT/g' -e 's/(^i.86$|.*80386)/32 BIT/g'} | ${fs_type}
#${execi 10000  bash -c 'source /etc/lsb-release ; echo -n "$DISTRIB_DESCRIPTION" | awk "{print \$1\" \"\$2\"   \"\$3}" ; '} $alignr ${fs_type}${execi 180 acpi 2>/dev/null | grep -Eo '[0-9]+%' | tr '\n' ' ' | awk "{if (\$1 != \"\") print \" | Batt \" \$0}" }
#${execi 10000  bash -c 'source /etc/lsb-release ; echo -n "$DISTRIB_DESCRIPTION" | awk "{print \$1\" \"\$2}" ; '} $alignr ${fs_type}${execi 180 acpi 2>/dev/null | grep -Eo '[0-9]+%' | tr '\n' ' ' | awk "{if (\$1 != \"\") print \" | Batt \" \$0}" }
# ${execi 10000  bash -c 'source /etc/lsb-release ; echo -n "$DISTRIB_DESCRIPTION" | awk "{print \$0}" ; '} ${execi 10000 bash -c 'uname -r | cut -d. -f1-3 | sed -e "s|\-.*$||g" -e "s|\+.*$||g" '} $alignr ${fs_type}${execi 180 acpi 2>/dev/null | grep -Eo '[0-9]+%' | tr '\n' ' ' | awk "{if (\$1 != \"\") print \" | Batt \" \$0}" }
${execi 10000  bash -c 'source /etc/lsb-release ; echo -n "$DISTRIB_DESCRIPTION" | awk "{print \$0}" ; '} $alignr ${execi 180 acpi 2>/dev/null | grep -Eo '[0-9]+%' | tr '\n' ' ' | awk "{if (\$1 != \"\") print \" | Batt \" \$0}" }
# ${font sans-serif:normal:size=8}$kernel $alignr | ${execi 10000  uname -m | sed -E -e 's/(x86.64|amd64)/64 BIT/g' -e 's/(^i.86$|.*80386)/32 BIT/g'} | ${fs_type}
#Uptime:$alignr$uptime
#$uptime_short $alignr ${execi 180 bash -c 'buf="$( acpi 2>/dev/null | grep -Eo "[0-9]+%" | tr "\n" " " )" ; if test -n "$buf" ; then echo Battery: "$buf" ; fi' }
#File System: $alignr${fs_type}

${font sans-serif:bold:size=8}PROCESSOR ${hr 2}
#Freq: ${freq cpu} Mhz${alignr}Temp:${hwmon 0 temp 1} °C
${font sans-serif:normal:size=8}Freq: ${freq cpu} Mhz${alignr}Temp: ${hwmon 0 temp 1} °C
${font sans-serif:normal:size=8}${cpugraph cpu}
#CPU1: ${cpu cpu1}% ${cpubar cpu1}
#CPU2: ${cpu cpu2}% ${cpubar cpu2}
#CPU3: ${cpu cpu3}% ${cpubar cpu3}
#CPU4: ${cpu cpu4}% ${cpubar cpu4}
#${font sans-serif:bold:size=8}PROCESSORS ${hr 2}
#${font sans-serif:normal:size=8}${cpugraph cpu1}
#CPU1: ${cpu cpu1}% ${cpubar cpu1}
#Temp:$alignr${hwmon 0 temp 1}°C
#${font sans-serif:normal:size=8}${cpugraph cpu2}
#CPU2: ${cpu cpu2}% ${cpubar cpu2}
#Temp:$alignr${hwmon 1 temp 1}°C
${font sans-serif:bold:size=8}TOP PROCESSOR USAGE ${hr 2}
$font${top name 1}${alignr}${top cpu 1} %
$font${top name 2}${alignr}${top cpu 2} %
#$font${top name 3}${alignr}${top cpu 3} %

# The RAM usage values has recently changed in the kernel, for people that are used to know the specific values of RAM usage is better to keep the old calculation system, on this way is much easier to know when resources are wasted in something or if a distro upgrade decreased (or improved) its ram usage, to make things more handy and much less confusion to the users, we show both values in a friendly way, more info about the RAM calculation changes can be found here: https://byteria.blogspot.com/2020/10/conky-wrong-ram-memory-usage.html and  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
${font sans-serif:bold:size=8}MEMORY ${hr 2}
#${font sans-serif:normal:size=8}RAM $alignc ${execi 6 free -h | awk '{if ($1 == "Mem:") print $3}' } / $memmax $alignr ${execi 6 free -k | awk '{if ($1 == "Mem:") { sum = ( $3 / $2 ) * 100 ; sub(/\..*/, "", sum) ; print sum } }'}%
${font sans-serif:normal:size=8}RAM $alignc $legacymem / $memmax $alignr ${execi 20 free -k | awk '{if ($1 == "Mem:") { sum = ( $3 / $2 ) * 100 ; sub(/\..*/, "", sum) ; print sum } }'}%
${execibar 6 free -k | awk '{if ($1 == "Mem:") { sum = ( $3 / $2 ) * 100 ; sub(/\..*/, "", sum) ; print sum } }'}
${font sans-serif:normal:size=8}Buffered RAM $alignr $memperc%
# ${font sans-serif:normal:size=8}Buffered RAM $alignc $mem / $memmax $alignr $memperc%
${membar}
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font sans-serif:bold:size=8}TOP RAM MEMORY USAGE ${hr 2}
$font${top_mem name 1}${alignr}${top_mem mem 1} %
$font${top_mem name 2}${alignr}${top_mem mem 2} %
$font${top_mem name 3}${alignr}${top_mem mem 3} %

${font sans-serif:bold:size=8}DISKS ${hr 2}
${font sans-serif:normal:size=8}${diskiograph}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
#${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
#${fs_bar /home}
#${font sans-serif:bold:size=8}DISK I/O USAGE ${hr 2}
$font${top_io name 1}${alignr}${top_io io_perc 1} %
$font${top_io name 2}${alignr}${top_io io_perc 2} %

${font sans-serif:bold:size=8}NETWORK ${hr 2}
${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0}
ESSID: $alignr ${wireless_essid wlan0}
Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
${downspeedgraph wlan0}
DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0}
${upspeedgraph wlan0}
ULS:${upspeed wlan0} kb/s $alignr total: ${totalup wlan0}

#${font sans-serif:bold:size=8}OTHER ${hr 2}
## enable if you want to have a the bitcoin price showing up every 5 minutes
#BTC ~ ${execi 300  curl -s http://api.coindesk.com/v1/bpi/currentprice.json | python -c "import json, sys; print(json.load(sys.stdin)['bpi']['USD']['rate'])" | sed -e 's|\..*$||g' }
#
# Internet time:
# 86 seconds = beat
# Internet Time:  $alignr @ ${execi 300  curl "https://internettime.elivecd.org/show.php" }


# vim: filetype=conf :
]];
