You are not logged in.

#2361 2025-08-13 17:30:41

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,611

Re: Show us your conky

Really basic. The battery value blinks when the power level is critical so it didn't make the screenshot:

1WP719Se_t.png

conky.config = {
--#############################################
-- Settings
--#############################################
	background = true,
	use_xft = true,
--	font = 'JetBrains Mono:regular:size=11:antialias=true:hintstyle=slight',
	font = 'Roboto Mono:Regular:size=11:antialias=true:hintstyle=slight',
--	font = 'Noto Sans Mono:Regular:size=11:antialias=true:hintstyle=slight',
	xftalpha = 1.0,
	update_interval = 1.0,
	update_interval_on_battery = 3.0,
	total_run_times = 0,

	own_window = true,
	own_window_colour = '1C1D20',
	own_window_transparent = true,
--	own_window_type = 'normal',
	own_window_type = 'desktop',
--  own_window_type = 'override',
--  own_window_type = 'dock',
--  own_window_type = 'panel',
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_class = 'Conky',
	own_window_title = 'Conky',
--#############################################

	own_window_argb_visual = true,
	own_window_argb_value = 64,

--#############################################

	no_buffers = true,
	uppercase = true,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
	short_units = true,
	imlib_cache_size = 0,
	pad_percents = 1,
	-- max_specials = '2048',
	max_user_text = 3200,
	text_buffer_size = 1024,
	no_buffers = true,
	if_up_strictness = 'address',
	double_buffer = true,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	border_inner_margin = 8,
	border_outer_margin = 2,

	-- default_color = 'DAC196',
	default_color = 'CBCBD4',
	default_shade_color = '131313',
	default_outline_color = '828282',
	color0 = 'FFFFFF',
	color1 = '000000',
	color2 = 'FF0000',-- - red
	color3 = 'FFFF00',-- - yellow
	color4 = '0000FF',-- - blue
	color5 = '00FF00',-- - green
	color6 = 'FFA500',-- - orange
	color7 = 'CBCBD4',-- - match default
	color8 = 'FFD700',-- - gold
	color9 = 'F00F16',-- - reddish

	minimum_width = 200, minimum_height = 0,
	maximum_width = 200,
--	alignment = 'top_right',
	alignment = 'tr',
	gap_x = 16,
	gap_y = 16,

-- ${voffset 6}${if_up wlp2s0}${goto 90}U:${offset 6}${upspeed wlp2s0}${alignr 2}D:${offset 6}${downspeed wlp2s0}${endif}
-- ${voffset 6}Load:${goto 80}${loadavg 1}${goto 130}${loadavg 2}${alignr}${loadavg 3}
-- ${voffset 12}Bat0:${goto 120}${execpi 60 acpi -b | awk '/Battery 0/ {print $3}' | cut -c1-4}${alignr}${if_match ${battery_percent BAT0}<=15}${color9}${blink ${battery_percent BAT0}%}${color}${else}${if_match ${battery_percent BAT0}<=33}${color8}${battery_percent BAT0}%${else}${if_match ${battery_percent BAT0}>33}${color7}${battery_percent BAT0}%${endif}${endif}${endif}${color}

};

conky.text = [[
${voffset 2}${font Roboto Mono:Regular:size=12:antialias=true:hintstyle=slight}${alignr}${time %l:%M}${font}
${voffset 2}${alignr}${time %A, %B %e}
${voffset 64}CPU:${alignr}${if_match ${cpu}<=50}${color7}${else}${if_match ${cpu}<=70}${color8}${else}${if_match ${cpu}>70}${color9}${endif}${endif}${endif}${cpu cpu0}%${color}
${alignr}${loadavg}
${voffset 12}Temp1:${alignr}${if_match ${hwmon 6 temp 1}<=50}${color7}${else}${if_match ${hwmon 6 temp 1}<=70}${color8}${else}${if_match ${hwmon 6 temp 1}>70}${color9}${endif}${endif}${endif}${hwmon 6 temp 1}°C${color}
Temp2:${alignr}${if_match ${hwmon 6 temp 2}<=50}${color7}${else}${if_match ${hwmon 6 temp 2}<=70}${color8}${else}${if_match ${hwmon 6 temp 2}>70}${color9}${endif}${endif}${endif}${hwmon 6 temp 2}°C${color}
Temp3:${alignr}${if_match ${hwmon 6 temp 3}<=50}${color7}${else}${if_match ${hwmon 6 temp 3}<=70}${color8}${else}${if_match ${hwmon 6 temp 3}>70}${color9}${endif}${endif}${endif}${hwmon 6 temp 3}°C${color}
${voffset 12}Mem:${alignr}${if_match ${memperc}<=50}${color7}${else}${if_match ${memperc}<=70}${color8}${else}${if_match ${memperc}>70}${color9}${endif}${endif}${endif}${memperc}%${color}
${voffset 12}Net:${alignr}${if_match ${wireless_link_qual_perc wlp2s0}<=30}${color9}${blink ${wireless_link_qual_perc wlp2s0}%}${color}${else}${if_match ${wireless_link_qual_perc wlp2s0}<=50}${color8}${wireless_link_qual_perc wlp2s0}%${else}${if_match ${wireless_link_qual_perc wlp2s0}>50}${color7}${wireless_link_qual_perc wlp2s0}%${endif}${endif}${endif}${color}
${goto 34}U:${alignr 12}${if_up wlp2s0}${offset 12}${upspeed wlp2s0}${endif}
${goto 34}D:${alignr 12}${if_up wlp2s0}${offset 12}${downspeed wlp2s0}${endif}
${voffset 12}Bat0:${alignr}${if_match ${battery_percent BAT0}<=15}${color9}${blink ${battery_percent BAT0}%}${color}${else}${if_match ${battery_percent BAT0}<=33}${color8}${battery_percent BAT0}%${else}${if_match ${battery_percent BAT0}>33}${color7}${battery_percent BAT0}%${endif}${endif}${endif}${color}
]];

You must unlearn what you have learned.
    -- yoda

Offline

#2362 2025-08-14 14:39:38

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

Since clicking in conky no longer works, I've worked around the problem with a transparent dashboard that hides automatically.

no conky & dashboard

Capture-d-cran-2025-08-14-16-28-47.png


Just conky & dasboard hidden

Capture-d-cran-2025-08-14-16-37-39.png


conky & dashbord

Capture-d-cran-2025-08-14-16-30-08.png


That does it too

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2363 2025-08-15 14:14:28

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

I have a CONKY from April 2010, creator is @olgmen.

Time; Calendar day; Temperature of the first two CPU;
Process relief; Frequency, as well as down and up.
Red flashes the 'request to take a break because I have been sitting on the computer for over 2 hours.  tongue

The proportions no longer matched the original. That's why I have this
in the configuration files 'somewhat shifted'.  big_smile
Compare the original image. Am, I blind?

@S11, can you help? (Of course, everyone else is also welcome  wink  )

No, you are not blind.
250815-102335.jpg
Horizontal:
Take a look at the 11th pica point under the 1 in 14 and 12 - there is a slight difference that really shows when looking at the 11 under the 12 on the left and 09 under the 57 on the right

250815-102335.jpg
Vertical:
on the right the days from 09, 10, 11 are dropping to the 12 and 13 14 15 stay aligned with the 12

Another thing leading to the out of alignment is the "RED 2 Hour" notice - different font and size than the original text showing "Time Up:"
The original "Time up" text is slightly higher then the 12 in seconds
BUT your "2 Hr Notice" is slightly below the bottom of the 57 seconds.

Also the bottom of the hour 08 aligns very close to the top pf the day numbers 11 through 17 whereas the in the other image the highest day number, 09, does not come yo to the bottom of the hour 14.

I have a problem as I do not have "PT Sans" I have "PT Mono"
I'm a firm believer in where positioning is important "mono is a must"

Breakfast back later,


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2364 2025-08-15 15:28:56

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

@ unklar ... Well, I'll have to forget the olgmen_scale.lua

 
   $ conky -c /media/5/conky/olgmen/unklar.conky &
[2] 198581
[1]   Exit 1                  pkill -xf "conky -c /media/5/conky/olgmen/unklar.conky"
 
 2025·08·15 @ 12:17:28 ~
   $ Conky: llua_load: /media/5/conky/olgmen/olgmen_scale.lua:14: module 'cairo_xlib' not found:
	no field package.preload['cairo_xlib']
	no file './cairo_xlib.lua'
	no file '/usr/local/share/lua/5.1/cairo_xlib.lua'
	no file '/usr/local/share/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/local/lib/lua/5.1/cairo_xlib.lua'
	no file '/usr/local/lib/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/share/lua/5.1/cairo_xlib.lua'
	no file '/usr/share/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/lib/conky/libcairo_xlib.so'
	no file './cairo_xlib.so'
	no file '/usr/local/lib/lua/5.1/cairo_xlib.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cairo_xlib.so'
	no file '/usr/lib/lua/5.1/cairo_xlib.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
Conky: desktop window (6b7) is root window
Conky: window type - override
{snip}

I'll drop the cpu lua and work on the rest.  Not 100% sure what font it's using .
My image place, ImgBB is down for maintenance.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2365 2025-08-15 17:04:46

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

Hello, my friend.  smile

dpkg -l lua* | grep ii

?

Last edited by unklar (2025-08-15 17:20:19)

Offline

#2366 2025-08-15 17:16:45

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

OK; I changed the font to PT Mono for my test and eliminated the lua script.

250815-134458.jpg

The "week1.sh" script you are using Unklar does not do any 'voffset' adjusting for the first 3 or 4 days.
IT SHOULD!

test conky (1.9)

## pkill -xf "conky -c /media/5/Conky/test.conky" &
## pkill -xf "conky -c /media/5/conky/olgmen/unklar.conky" &

# main conkyrc by Boris Krinkel <olgmen>
# krinkel@rambler.ru
# --- параметры окна ---
# эти строки необходимы для нормальной работы лучше не изменять
own_window		yes
# для вывода фона раскомментировать следующую строку, установить цвет, в данный момент красный и в строке own_window_transparent прописать no
#own_window_colour ff0000
own_window_class	Conky 
own_window_transparent	yes 
own_window_type		override 
own_window_hints	undecorated,below,sticky,skip_taskbar,skip_pager 
# следующие параметры можно изменять
# минимальный размер
minimum_size 410 0 
# минимальная ширина
maximum_width 350 
# --- расположение окна
# левый верхний угол экрана 
#alignment top_left 
# левый нижний угол экрана
#alignment bottom_left 
# правый верхний угол экрана
alignment top_right 
# правый нижний угол экрана
#alignment bottom_right 
# расстояние между кромкой экрана и окном
# по горизонтали
gap_x 5 
# по вертикали
gap_y 30 

# --- графика окна --- 
# если желаете выводить conky на другом фоне напишите yes
background no
# окантовка окна, бордюр
draw_borders no
# если бордюр yes
# длина штрихов бордюра, если 0, то бордюр выводится сплошной линией
stippled_borders 1
# толщина линий бордюра 
border_width 1
# бордюр вокруг выводимых графиков
draw_graph_borders no
# включить тень?
draw_shades no
# окантовка вокруг текста и выводимых объектов
draw_outline no 
# Добавить пробел?  Только для встраиваемых объектов 
use_spacer right 

# --- цвет ---
# основной цвет по умолчанию 
default_color DeepSkyBlue
# цвет тени
default_shade_color black 
# цвет окантовки
default_outline_color black
# дополнительные
color1 white
color2 yellow 
color3 red 

# --- шрифты ---
# используемые шрифты X когда Xft не используется, можно выбрать один из следующих 
#font 5x7 
#font 6x10 
#font 7x13 
#font 8x13 
#font 9x15 
#font *mintsmild.se* 
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-* 

# Используется ли Xft? 
use_xft yes 

# Шриф Xft когда Xft доступен, здесь можно ввести название и размер любого шрифта 
#xftfont PT Mono:size=9 
xftfont PT Mono:size=9

# яркость шрифта при испоьзовании шрифтов Xft 
xftalpha 0.5 
# выводить весь текст прописными буквами 
uppercase no 
# использовать кодировку UTF8? ПРИМЕЧАНИЕ: требуется Xft 
override_utf8_locale yes 

# --- следующие данные необходимы для работы
# обновление в секундах не имеет смысла ставить больше 2
# при выводе времени в секундах необходимо значение 1 и менее
update_interval 0.5
# время работы программы до её выключения
# установите 0 для работы программы без остановки
total_run_times 0
# двойная буфферизация (требуется для flicker, может не работать) 
double_buffer yes 
# вычитать буферизацию файловой системы из используемой памяти? 
no_buffers yes 
# количество cpu
cpu_avg_samples 2
# number of net samples to average 
net_avg_samples 2 
imlib_cache_size 0 
short_units yes 
pad_percents 2 
text_buffer_size 4000 
imlib_cache_size 0 


#--- LUA ---
#lua_load ~/scripts/olgmen_scale.lua
#lua_load /media/5/conky/olgmen/olgmen_scale.lua
#lua_draw_hook_pre widgets

# ----------------------- ПРИМЕЧАНИЯ --------------------------------
#
# Первая строка после TEXT выводит время работы после включения компьютера. После двух часов работы
# надпись "Работаю: 2h 00m 00s" заменяется на мигающую надпись "ПОРА ОТДОХНУТЬ".
# Время можно установит изменив "2h 00m 00s" на любое другое, но в том же формате.
# Если такой "сервис" не нужен то первую строку приведите к такому виду
#
# ${goto 100}${voffset 40}${font PT Mono:Bold:size=12}Работаю: $uptime
#


TEXT
${voffset -20}${cpu cpu}
${voffset 20}${color ffffff}${font PT Mono:Bold:size=27}${time %H}${voffset -6}${font PT Mono:Bold:size=20}${time :%M}${voffset -8}${font PT Mono:Bold:size=12}${time :%S}${goto 180}${voffset -2}${font PT Mono:Bold:size=10}${if_match "${uptime}" > "2h 00m 00s"}${color ff0000}${goto 200}${blink ПОРА ОТДОХНУТЬ}${else}Работаю: $uptime${endif}
${goto 105}${voffset 8}${execpi 3600 ~/bin/week1.sh}${color2}


Changing font size

${font PT Mono:size=9}12${font PT Mono:size=12}13${font PT Mono:size=18}14${font PT Mono:size=27}15${font PT Mono:size=18}16${font PT Mono:size=12}17${font PT Mono:size=9}18${color1}

Notice how the first three numbers drop down a
little at the top and a lot on the bottom the
bottom.  Sane with the last three digits but
in reverse.
And the last three drop ftom the top.
voffset must be used in ALL cases of font
change unless you want the raw affect


${font PT Mono:size=9}12${font PT Mono:size=12}13${font PT Mono:size=18}14${font PT Mono:size=27}15${font PT Mono:size=18}16${font PT Mono:size=12}17${font PT Mono:size=9}18

Before font size change
${font PT Mono:size=9}12${font PT Mono:size=12}${voffset -1}13${font PT Mono:size=18}${voffset -2}14${font PT Mono:size=27}${voffset -1}15${font PT Mono:size=18}${voffset -8}16${font PT Mono:size=12}${voffset -5}17${font PT Mono:size=9}${voffset -4}18


After font size change
${font PT Mono:size=9}12${voffset -1}${font PT Mono:size=12}13${voffset -2}${font PT Mono:size=18}14${voffset -1}${font PT Mono:size=27}15${voffset -8}${font PT Mono:size=18}16${voffset -5}${font PT Mono:size=12}17${voffset -4}${font PT Mono:size=9}18

${voffset 200}↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

test code: week1.sh

#!/bin/bash

font=("\${voffset -0}\${font PT Mono:bold:size=8}\${color cccccc}" "\${voffset -2}\${font PT Mono:bold:size=12}\${color dddddd}" "\${voffset -2}\${font PT Mono:bold:size=18}\${color eeeeee}" "\${voffset -2}\${font PT Mono:bold:size=27}\${color ffffff}" "\${voffset -8}\${font PT Mono:bold:size=18}\${color eeeeee}" "\${voffset -6}\${font PT Mono:bold:size=12}\${color dddddd}" "\${voffset -4}\${font PT Mono:bold:size=8}\${color cccccc}")
color=("" "" "" "\${color}" "" "" "")

for i in $(seq -3 3); do
echo -n "${font[$[i+3]]}$(date '+%d' -d "$i days")${color[3]}\${offset 3}"
done

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2367 2025-08-15 17:19:24

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

Hello, my friend.  smile

dpkg -l lua* | grep ii
 2025·08·15 @ 14:18:31 ~
   $ dpkg -l lua* | grep ii
ii  lua-lpeg:amd64 1.0.2-2         amd64        LPeg library for the Lua language
ii  lua5.2         5.2.4-3         amd64        Simple, extensible, embeddable programming language
ii  lua5.3         5.3.6-2         amd64        Simple, extensible, embeddable programming language
ii  lua5.4         5.4.4-3+deb12u1 amd64        Simple, extensible, embeddable programming language
 
 2025·08·15 @ 14:18:39 ~
   $ 

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2368 2025-08-15 17:22:14

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

You need lua5.1  wink

Offline

#2369 2025-08-15 17:37:45

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

...I'm not sure, I mean that here in lua-script

HNnfPMxt.png

Last edited by unklar (2025-08-15 17:45:09)

Offline

#2370 2025-08-15 17:46:21

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

You need lua5.1  wink

Why? All my lua scripts all work just fine.
250815-144242.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2371 2025-08-15 17:48:46

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

...I'm not sure, I mean that here in lua-script

https://i.imgur.com/HNnfPMxt.png

OH!  You have more out of alignment than I thought ...  guess I do need 5.1 to help you.

Got 5.1 gimme a bit of time.
{flexing arms - snapping fingers}


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2372 2025-08-15 17:53:31

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

Sector11 wrote:
unklar wrote:

You need lua5.1  wink

Why? All my lua scripts all work just fine.
https://i.ibb.co/vv3zxpLv/250815-144242.jpg

Yes, 5.1 has this

..module 'cairo_xlib' not found:

Take your time! It doesn't have to be today.
You know, life...  big_smile

Last edited by unklar (2025-08-15 17:56:53)

Offline

#2373 2025-08-15 18:06:41

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:
Sector11 wrote:
unklar wrote:

You need lua5.1  wink

Why? All my lua scripts all work just fine.
https://i.ibb.co/vv3zxpLv/250815-144242.jpg

Yes, 5.1 has this

..module 'cairo_xlib' not found:

Take your time! It doesn't have to be today.
You know, life...  big_smile

Yes, life, going for an operation soon ... maybe Tuesday.

OH OH!  For as much as 5.1 has "cairo_xlib", you have an Intel CPU, I don't so that lua script is looking for something not on my computer.

${exec expr `cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon3/temp1_input` / 1000}

ME:

 2025·08·15 @ 15:00:13 ~
   $ cpu
CPU:
  Info: quad core model: AMD Ryzen 3 2200G with Radeon Vega Graphics bits: 64
    type: MCP arch: Zen rev: 0 cache: L1: 384 KiB L2: 2 MiB L3: 4 MiB
  Speed (MHz): avg: 1554 high: 1600 min/max: 1600/3500 boost: enabled cores:
    1: 1600 2: 1600 3: 1600 4: 1419 bogomips: 27947
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
 
 2025·08·15 @ 15:00:17 ~
   $ 

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2374 2025-08-15 18:25:28

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

So I change a few lines to match my system and still problems with lua - this time 5.1

 2025·08·15 @ 15:21:17 ~
   $ Conky: llua_load: /media/5/conky/olgmen/olgmen_scale.lua:14: module 'cairo_xlib' not found:
	no field package.preload['cairo_xlib']
	no file './cairo_xlib.lua'
	no file '/usr/local/share/lua/5.1/cairo_xlib.lua'
	no file '/usr/local/share/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/local/lib/lua/5.1/cairo_xlib.lua'
	no file '/usr/local/lib/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/share/lua/5.1/cairo_xlib.lua'
	no file '/usr/share/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/lib/conky/libcairo_xlib.so'
	no file './cairo_xlib.so'
	no file '/usr/local/lib/lua/5.1/cairo_xlib.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cairo_xlib.so'
	no file '/usr/lib/lua/5.1/cairo_xlib.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
Conky: desktop window (6b7) is root window
Conky: window type - override

You are going to need a lua expert with an Intel chip.
So sorry, looked like a fun project.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2375 2025-08-15 18:25:41

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

Any other resulting path should also be possible.

for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done

In the original, he has coretemp.0 and coretemp.1
I don't have coretemp.1   wink

Offline

#2376 2025-08-15 18:30:35

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

I tried what my conky uses:

${exec sensors | grep -n 'Tctl' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}
${exec sensors | grep -n 'edge' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2377 2025-08-15 18:32:08

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

Sector11 wrote:

So I change a few lines to match my system and still problems with lua - this time 5.1

 2025·08·15 @ 15:21:17 ~
   $ Conky: llua_load: /media/5/conky/olgmen/olgmen_scale.lua:14: module 'cairo_xlib' not found:
	no field package.preload['cairo_xlib']
	no file './cairo_xlib.lua'
	no file '/usr/local/share/lua/5.1/cairo_xlib.lua'
	no file '/usr/local/share/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/local/lib/lua/5.1/cairo_xlib.lua'
	no file '/usr/local/lib/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/share/lua/5.1/cairo_xlib.lua'
	no file '/usr/share/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/lib/conky/libcairo_xlib.so'
	no file './cairo_xlib.so'
	no file '/usr/local/lib/lua/5.1/cairo_xlib.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cairo_xlib.so'
	no file '/usr/lib/lua/5.1/cairo_xlib.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
Conky: desktop window (6b7) is root window
Conky: window type - override

You are going to need a lua expert with an Intel chip.
So sorry, looked like a fun project.

I think the module cairo_xlib' needs to be restarted... (Computer  wink  )

Offline

#2378 2025-08-15 19:10:13

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

Any other resulting path should also be possible.

for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done

In the original, he has coretemp.0 and coretemp.1
I don't have coretemp.1   wink

 2025·08·15 @ 16:01:09 ~
   $ for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done
/sys/class/hwmon/hwmon0 = k10temp
/sys/class/hwmon/hwmon1 = asus
/sys/class/hwmon/hwmon2 = amdgpu
 
 2025·08·15 @ 16:01:19 ~
   $ 

hwmon0 = CPU
hwmon2 = GPU (DUH)
that's all I get no "_input" files under hwmon1

Changed my one liner to reflect 'hwmon' - hopefully they will not move around like they use to a few years back.

From Conky PitStop

EDIT-ADDITIONAL: from stinkeye

Sometimes you might find that when you run sensors after a restart the sensors load in a different order k10temp-pci-00c3 may not necessarily be shown first. If this is the case the above commands will give you a different reading, as (in the example above) you are matching the first instance of temp1. To get around this, you can call each sensor individually by typing the name of the sensor after the sensors command like so:

sensors k10temp-pci-00c3

Then you can use similar grep and awk commands to get the temp number

sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'

You don't need the sed commands as there will only be one temp1 for grep to match

WARNING I suspect that the loading order of the sensors will also affect the contents of the hwmon folders used in method 2 below. Note: confirmed, it does - at times (thank you VastOne).


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2379 2025-08-15 19:25:45

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

I think the module cairo_xlib' needs to be restarted... (Computer  wink  )

So I rebooted and same results:

 2025·08·15 @ 16:16:28 ~
   $ Conky: llua_load: /media/5/conky/olgmen/olgmen_scale.lua:14: module 'cairo_xlib' not found:
	no field package.preload['cairo_xlib']
	no file './cairo_xlib.lua'
	no file '/usr/local/share/lua/5.1/cairo_xlib.lua'
	no file '/usr/local/share/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/local/lib/lua/5.1/cairo_xlib.lua'
	no file '/usr/local/lib/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/share/lua/5.1/cairo_xlib.lua'
	no file '/usr/share/lua/5.1/cairo_xlib/init.lua'
	no file '/usr/lib/conky/libcairo_xlib.so'
	no file './cairo_xlib.so'
	no file '/usr/local/lib/lua/5.1/cairo_xlib.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cairo_xlib.so'
	no file '/usr/lib/lua/5.1/cairo_xlib.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
Conky: desktop window (6b7) is root window
Conky: window type - override

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2380 2025-08-16 06:54:33

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

Hello, my friend, thank you very much for your help!  smile
Your found the error.

circlewriting
It was lines 397 cpu1 and 410 cpu2 of the Lua script.
In both cases, the y-value was changed from 220 to 210.
rtetZfWt.png

Last edited by unklar (2025-08-16 07:46:57)

Offline

Board footer

Powered by FluxBB