my Conky still echoes 'invalid head index' during console tests.
Generally, It starts without any problems with my OS:
5.8.0-63-generic #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux, effectively executing bash file '~/conkystartup.sh' at every startup:
#!/bin/bash
sleep 15
dir=~/.config/conky
cnf=${dir}/conky.conf
log=${dir}/conky.log
dat=$(date +%x-%X)
# execute command and append result in log file
if
conky -d -c $cnf; then
echo $dat " conky start succeed " >> $log
else
echo $dat " ---- conky failed!!! " >> $log
fi
configured in '~/.config/conky/conky.conf' as follows:
conky.config = {
background = false,
update_interval = 1,
double_buffer = true,
no_buffers = true,
text_buffer_size = 2048,
own_window = true,
own_window_class = 'conky',
own_window_argb_visual = true,
own_window_argb_value = 50,
own_window_hints = 'undecorated,above,sticky,skip_taskbar,skip_pager',
own_window_colour = '#252525',
own_window_type = 'normal',
background = false,
minimum_width = 80,
alignment = 'bottom_right',
xinerama_head = 2,
gap_x = 10,
gap_y = 10,
draw_shades = false,
draw_outline = false,
draw_borders = false,
override_utf8_locale = true,
use_xft = true,
font = 'Noto:size=24',
xftalpha = 0.5,
uppercase = false
};
conky.text = [[
${font Noto:size=24}${color white}${offset 0}${color white}${time %H}:${time %M}
${voffset -18}${offset 3}${font Noto:size=10}${color white}${time %e} ${time %b} ${time %A}
]];
please find enclosed all echo lines after console test triggered by direct command '~$ sh conkystartup.sh ':
conky: warning: invalid head index, ignoring head settings
conky: warning: invalid head index, ignoring head settings
conky: desktop window (600010) is subwindow of root window (178)
conky: window type - normal
conky: drawing to created window (0x3e00002)
conky: drawing to double buffer
conky: forked to background, pid is 4525
Each invoked test is of course preceded by the command '$ killall conky'.
Thank you in advance for your reliable comments :)
===
edit 27-07-2021 - Solution:
My displays:
|-----------| |-----------------|
|0(laptop) | |1(LCDtv) |
| | | |
| | | |
| | | time|
|-----------| |-----------------|
After change in the line 'xinerama_head = 2,' -> 'xinerama_head = 1,' of 'conky.conf' the console result test '$ conky -d -c ~/.config/conky/conky.conf' is:
conky: desktop window (600010) is subwindow of root window (178)
conky: window type - normal
conky: drawing to created window (0x3800002)
conky: drawing to double buffer
conky: forked to background, pid is 5793
No warnings - expected result achieved! Thank you :)