Conky Modifications - MX Cowon Series (Extended)

Message
Author
User avatar
ForkTheWire
Posts: 61
Joined: Sat Dec 16, 2023 7:41 am

Conky Modifications - MX Cowon Series (Extended)

#1 Post by ForkTheWire »

For quite some time now I've been "annoyed", by myself really, having to look at "Sensor Viewer" each time I wanted to check my system temps multiple times a day for a very..very long time. Now, I know there are other Conkies with that and plenty more features, but I really like the Cowon series. I find it very stylish and complementing to the aesthetic I desire. A few weeks ago I finally sat, modified and extended the "MX-CowonBlue-dinreg". I changed "hdd" to "SSD", "mem" to "RAM", adjusted the spacings, added seconds, year, CPU temperature reading, GPU temperature reading, and tried to make everything look good. If you look closely you'll see the two MX pyramids, I swear this wasn't by conscious design...but I like that it just happened!
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
, should work.

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:
Image

Before (Basic):
Image

After (Extended):
Image

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}
]];

User avatar
CharlesV
Global Moderator
Posts: 7310
Joined: Sun Jul 07, 2019 5:11 pm

Re: Conky Modifications - MX Cowon Series (Extended)

#2 Post by CharlesV »

Very nice! The battery graph on my HP looks to be good too.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
ForkTheWire
Posts: 61
Joined: Sat Dec 16, 2023 7:41 am

Re: Conky Modifications - MX Cowon Series (Extended)

#3 Post by ForkTheWire »

Great, thanks @CharlesV for trying it out and letting me know! Is it well aligned? If it's not too long, I imagine it might fall nicely diagonally, aligned to the readings above and create an additional "pyramid" layer.

User avatar
CharlesV
Global Moderator
Posts: 7310
Joined: Sun Jul 07, 2019 5:11 pm

Re: Conky Modifications - MX Cowon Series (Extended)

#4 Post by CharlesV »

ForkTheWire wrote: Tue Feb 18, 2025 4:43 pm Great, thanks @CharlesV for trying it out and letting me know! Is it well aligned? If it's not too long, I imagine it might fall nicely diagonally, aligned to the readings above and create an additional "pyramid" layer.
Your very welcome. It looks pretty good I think

I have not had a chance to play with the sensors, it doesnt like my intel stuff. (But again, I have not had a chance to play. )

Image
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7310
Joined: Sun Jul 07, 2019 5:11 pm

Re: Conky Modifications - MX Cowon Series (Extended)

#5 Post by CharlesV »

OK, had a chance to play a bit.. now looking like this on my Intel


Image
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

Post Reply

Return to “Community Submissions”