This wasn't as elaborate or spectacular as some of the other conkies people developed lately, this is just something I wanted and managed to pull off by-myself and maybe someone else here might find it useful too.
So here is how this works:
The script is based on a copy of the [~/.conky/MX-CowonBlue/MX-Cowon_blue_dinreg]. It can live if you want in the same folder but with a different name, or you can duplicate the "MX-CowonBlue" folder and name it "MX-CowonBlue-(Extended)" and place it in there. That's what I did to keep things clean, and do all my future experiments in there without affecting the original. You can also rename the script itself for convenience to "MX-Cowon_blue_dinreg_(Extended)".
Different Hardware:
This version reads the temperature from an Nvidia graphics card. I have another PC with a Radeon card but I'll have access to it in about 3 months from now...so I can't test this and make sure till then. But, in theory, if you replace the Nvidia line by either removing it completely or commenting it out with a #, and place this below:
Code: Select all
${color3}GPU Temp ${color4}+${execi 10 sensors | grep -i 'radeon' | awk '{print $2}'}°C
And lastly, the original script included a battery reading feature which I do not have a way to test. So I don't know if it works, nor have a way to adjust it aesthetically. I only left it in for the purpose of sharing so that other people might want to tinker with it.
Locations:

Before (Basic):

After (Extended):

The Script:
Code: Select all
conky.config = {
--#####################
-- - Conky settings - #
--#####################
update_interval = 1,
total_run_times = 0,
net_avg_samples = 1,
cpu_avg_samples = 1,
imlib_cache_size = 0,
double_buffer = true,
no_buffers = true,
--####################
-- - Text settings - #
--####################
use_xft = true,
font = 'Dinreg:size=100',
-- font = 'Roboto-Light:size=100',
override_utf8_locale = true,
text_buffer_size = 2048,
xftalpha = 0.9,
--########################
-- - Templates - #
--########################
template1 = '${color4}${font RobotoMono-Light:bold:pixelsize=12}${offset 8}',
template2 = '${offset 4} ${color3}batt${offset 6}',
--############################
-- - Window specifications - #
--############################
own_window_class = 'Conky',
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
--own_window_argb_visual yes
--own_window_argb_value 100
alignment = 'top_right',
gap_x = 47,
gap_y = 65,
minimum_width = 200, minimum_height = 200,
--########################
-- - Graphics settings - #
--########################
draw_shades = false,
default_color = 'a3a3a3',
default_shade_color = '1d1d1d',
color0 = '90ac11',
color1 = '0f0c03',
color2 = '3c888f',
color3 = '7e704c',
color4 = '557298',
color5 = '20B2AA', -- Light Sea Green
--lua_load ~/.conky/conkybg.lua
--lua_draw_hook_pre conky_draw_bg
own_window_argb_value = 0,
own_window_argb_visual = true,
own_window_colour = '000000',
lua_load = 'lua/conky.lua',
};
-- fluxbox adjustment
-- if os.getenv("XDG_SESSION_DESKTOP") == 'fluxbox' then
return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
_VERSION ~= 'Lua 5.1' and return_code then
conky.config.own_window_transparent = true
conky.config.own_window_argb_visual = false
end
conky.text = [[
${if_match "${lua time A}" == "${time %A}"}${lua set_time A}\
${else}${lua set_time a}${endif}\
${if_match "${lua time B}" == "${time %B}"}${lua set_time B}\
${else}${lua set_time b}${endif}\
${voffset -176}
${lua hours}
${color2}${offset 40}${voffset -100}${time %M}${color2}${font Dinreg:bold:size=10}: ${time %S}
${voffset 5}${offset 10}\
${if_match "${lua cjk}" == "false"}\
${font Roboto-Light:bold:size=12}\
${else}\
${font wqy-microhei:bold:size=12}\
${endif}\
${color2}${lua date}
${offset 86}${voffset 3}\
${color2}${time %Y}
${offset 150}${voffset -175}\
${if_match "${lua cjk}" == "false"}\
${font Roboto-Light:size=12}\
${else}\
${font wqy-microhei:size=12}\
${endif}\
${color2}${lua AM_PM}
#system
${offset 0}${voffset 155}\
${font Roboto-Light:bold:pixelsize=12}${offset 12}${color3}SSD\
${offset 8}${color4}\
${font RobotoMono-Light:bold:pixelsize=12}${fs_used_perc /}%\
${font Roboto-Light:bold:pixelsize=12}\
${offset 8}${color3}RAM\
${offset 8}${color4}\
${font RobotoMono-Light:bold:pixelsize=12}${lua memperc}%\
${font Roboto-Light:bold:pixelsize=12}\
${offset 8} ${color3}CPU\
${offset 0}${color4}${font RobotoMono-Light:bold:pixelsize=12}\
${lua cpu}%
# Temperatures
${offset 63}${voffset 5}\
${color3}CPU Temp ${color4}${execi 10 sensors | grep 'Package id 0:' | awk '{print $4}'}
${offset 49}${voffset 5}\
${color3}GPU Temp ${color4}+${execi 10 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits}°C
#battery
${offset 0}${voffset -8}\
${if_existing /sys/class/power_supply/BAT0/present/ 1}${template1}
${template2}${battery_bar 8,80 BAT0} ${battery_percent BAT0}% ${endif}\
${if_existing /sys/class/power_supply/BAT0}${template1}
${template2}${battery_bar 8,80 BAT0} ${battery_percent BAT0}% ${endif}\
${if_existing /sys/class/power_supply/BAT1}${template1}
${template2}${battery_bar 8,80 BAT1} ${battery_percent BAT1}% ${endif}
${voffset -190}
]];