brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.17k stars 615 forks source link

Garbage on screen when conky script become bigger than 16KB #794

Closed GianniSandy closed 1 year ago

GianniSandy commented 5 years ago

My conky script during times became quite complex: when its size is going over 16KB, during execution is starting to show garbage at the end. This situation is becoming more evident when the script size is growing over 17.000 bytes. Last part of my script is related to network:

I've tried to add in the initial part the following line: text_buffer_size = 32768 but with NO LUCK! Only possible workaround is reduce its complexity.

Platform: Ubuntu (today 18.04 but I have already noticed it on 16.04) Conky version? 1.10.8

my current working conky script is reported below. When adding some more pluggable disk checking

conky.config = {

    background = true,
    font = 'Sans:size=8',
--xftfont Sans:size=10
    use_xft = true,
    xftalpha = 0.9,
    default_color = 'white',
    default_shade_color = 'black',
    default_outline_color = 'green',
    color0 = 'yellow',
    color1 = 'green',
    color2 = 'slate blue',
    color3 = 'darkgreen',
    color4 = 'lightgreen',
    color5 = 'white',
    update_interval = 12.0,
    total_run_times = 0,
    own_window = true,
    own_window_type = 'normal',
    own_window_transparent = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    double_buffer = true,
    minimum_width = 480, minimum_height = 5,
    maximum_width = 560,
    draw_shades = true,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = true,
    alignment = 'top_right',
    gap_x = 12,
    gap_y = 25,
    no_buffers = true,
--  uppercase = true,
    cpu_avg_samples = 2,
    override_utf8_locale = false,
    text_buffer_size = 32768,

};

conky.text = [[

${execi 3600 curl -s https://geoip.cdnservice.eu/api/`curl -s https://www.mioip.org/ | grep "<i class=\"fa fa-eye\" style=\"color:green;\"></i> <b>" | cut -d '>' -f 5 | cut -d '<' -f 1`/full >$HOME/.conky/GeoIPcdnService.txt}
${execi 14400 curl -s https://geoipinfo.org/?ip=`curl -s https://www.mioip.org/ | grep "<i class=\"fa fa-eye\" style=\"color:green;\"></i> <b>" | cut -d '>' -f 5 | cut -d '<' -f 1` >$HOME/.conky/GeoIPInfo.txt}
${execi 3600 qdbus --literal org.freedesktop.Geoclue.Providers.UbuntuGeoIP /org/freedesktop/Geoclue/Providers/UbuntuGeoIP org.freedesktop.Geoclue.Position.GetPosition >$HOME/.conky/qdbus.txt}
${offset 45}${voffset 5}${color}${font Ubuntu:size=10}Actual GeoIPcdnService.eu${color}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}City: ${offset 80}${exec cat $HOME/.conky/GeoIPcdnService.txt | jq -r '.city.names.en' | tail -1}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}Latitude: ${offset 52}${exec cat $HOME/.conky/GeoIPcdnService.txt | jq -r '.location.latitude' | tail -1}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}Longitude: ${offset 42}${exec cat $HOME/.conky/GeoIPcdnService.txt | jq -r '.location.longitude' | tail -1}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}Accuracy: ${offset 50}${exec cat $HOME/.conky/GeoIPcdnService.txt | jq -r '.location.accuracy_radius' | tail -1}
${offset 60}${voffset 5}${color}${font Ubuntu:size=10}Actual GeoIPinfo.org${color}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}City: ${offset 80}${exec cat $HOME/.conky/GeoIPInfo.txt | grep "City</td><td>" | awk -F 'City</td><td>' '{print $2}' | awk -F '</td></tr><tr><td' '{print $1}'}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}Latitude: ${offset 52}${exec cat $HOME/.conky/GeoIPInfo.txt | grep "Latitude</td><td>" | awk -F 'Latitude</td><td>' '{print $2}' | awk -F '</td></tr><tr><td' '{print $1}'}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}Longitude: ${offset 42}${exec cat $HOME/.conky/GeoIPInfo.txt | grep "Longitude</td><td>" | awk -F 'Longitude</td><td>' '{print $2}' | awk -F '</td></tr><tr><td' '{print $1}'}
${offset 60}${voffset 5}${color}${font Ubuntu:size=10}Actual Ubuntu qdbus${color}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}City: ${offset 80}Unknown
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}Latitude: ${offset 52}${exec cat $HOME/.conky/qdbus.txt | head -3 | tail -1}
${offset 10}${voffset -1}${color2}${font Ubuntu:size=10}Longitude: ${offset 42}${exec cat $HOME/.conky/qdbus.txt | head -4 | tail -1}

# LOGO
${image $HOME/.conky/ConkyWxdata/ubuntu.png -p 2,0 -s 48x48 -n}
${image $HOME/.conky/ConkyWxdata/windows.png -p 52,0 -s 48x48 -n}
${image $HOME/.conky/ConkyWxdata/centos.png -p 102,0 -s 48x48 -n}
${image $HOME/.conky/ConkyWxdata/android.png -p 152,0 -s 48x48 -n}
${image $HOME/.conky/ConkyWxdata/uniface.png -p 202,0 -s 48x48 -n}

# Using weather.com feed RSS
${offset 70}${voffset -90}${color0}${font :BOLD:size=12}Weather${font :size=8} ${color}
${execi 1800 curl -s "http://wxdata.weather.com/wxdata/weather/local/ITPM1163:1:IT?cc=*&dayf=3&unit=m" -o $HOME/.conky/weather-BdA.txt}\
${execi 1800 xmllint --format $HOME/.conky/weather-BdA.txt --output $HOME/.conky/pretty.xml}
${offset 50}${color4}${font Ubuntu:size=20}${exec grep "<dnam>" $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 |cut -d',' -f1}
${offset 70}${voffset -12}${color2}${font Ubuntu:size=10}Latitudine${offset 20}${exec grep "<lat>" $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 |cut -d'<' -f1}
${offset 70}${color2}${font Ubuntu:size=10}Longitudine${offset 15}${exec grep "<lon>" $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 |cut -d'<' -f1}

${offset 2}${voffset 10}${color5}${font Ubuntu:size=16}OGGI${color}
${offset 115}${voffset -25}${color5}${font Verdana:size=16}${exec grep "<tmp>" $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 | cut -d'<' -f1} C
${offset 200}${voffset -40}${font ConkyWeather:size=40}${color5}${exec $HOME/.conky/ConkyWxdata/ppw.sh 28}${font}
${offset 30}${color5}${exec $HOME/.conky/ConkyWxdata/pplang.sh 28}
${offset 5}${voffset 20}${color3}Vento
${if_match "${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -2 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}" != "calm"}\
${offset 73}${voffset -14}${color4}${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -2 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1} Km/s ${exec grep "<t>" $HOME/.conky/weather-BdA.txt | head -6 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1} (${exec grep "<d>" $HOME/.conky/weather-BdA.txt | head -7 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1})
${else}\
${offset 73}${voffset -14}${color4}${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -2 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}  
${endif}
${offset 5}${voffset -14}${color3}Umidita'
${offset 73}${voffset -14}${color4}${exec grep "<hmid>" $HOME/.conky/weather-BdA.txt | head -1 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}% 
${offset 5}${color3}Pressione
${offset 73}${voffset -14}${color4}${exec grep "<r>" $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 | cut -d'<' -f1}mb 
${offset 5}${color3}Alba
${offset 73}${voffset -14}${color4}${exec grep "<sunr>" $HOME/.conky/weather-BdA.txt | head -1 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}
${offset 5}${color3}Tramonto
${offset 73}${voffset -14}${color4}${exec grep "<suns>" $HOME/.conky/weather-BdA.txt | head -1 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}
# LUNA
${offset 5}${color3}Luna
${offset 73}${voffset -14}${color4}${exec $HOME/.conky/ConkyWxdata/ppmoon.sh}
${offset 30}${voffset 20}${color5}${exec $HOME/.conky/ConkyWxdata/pplang.sh 74}
${image $HOME/.conky/ConkyWxdata/moon/moon.png -p 200,520 -s 50x50 -n}

# DOMANI
${offset 2}${voffset 20}${color5}${font Ubuntu:size=14}Domani
${offset 115}${voffset -23}${color4}${exec awk 'NR==88' $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 | cut -d'<' -f1} - ${exec awk 'NR==87' $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 | cut -d'<' -f1}
${offset 200}${voffset -20}${font ConkyWeather:size=40}${voffset -20}${color5}${exec $HOME/.conky/ConkyWxdata/ppw.sh 93}${font}
${offset 30}${voffset 0}${color5}${exec $HOME/.conky/ConkyWxdata/pplang.sh 93}
${offset 5}${voffset 20}${color3}Vento\
${if_match "${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -4 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}" != "calm"}
${offset 73}${voffset -14}${color4}${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -4 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}Km/s ${exec grep "<t>" $HOME/.conky/weather-BdA.txt | head -10 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1} (${exec grep "<d>" $HOME/.conky/weather-BdA.txt | head -5 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1})${else}
${offset 73}${voffset -14}${color4}${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -4 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}${endif}
${offset 5}${color3}Umidita'
${offset 73}${voffset -14}${color4}${exec grep "<hmid>" $HOME/.conky/weather-BdA.txt | head -4 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}% 
${offset 30}${voffset 20}${color5}${exec $HOME/.conky/ConkyWxdata/pplang.sh 106}

# DOPODOMANI
${offset 2}${voffset 20}${color5}${font Ubuntu:size=12}Dopodomani
${offset 115}${voffset -18}${color4}${exec awk 'NR==120' $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 | cut -d'<' -f1} - ${exec awk 'NR==119' $HOME/.conky/weather-BdA.txt | cut -d'>' -f2 | cut -d'<' -f1} C
${offset 200}${voffset -20}${font ConkyWeather:size=40}${voffset -20}${color5}${exec $HOME/.conky/ConkyWxdata/ppw.sh 125}${font}
${offset 30}${voffset 0}${color5}${exec $HOME/.conky/ConkyWxdata/pplang.sh 125}
${offset 5}${voffset 20}${color3}Vento\
${if_match "${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -6 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}" != "calm"}
${offset 73}${voffset -14}${color4}${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -6 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}Km/s ${exec grep "<t>" $HOME/.conky/weather-BdA.txt | head -14 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1} (${exec grep "<d>" $HOME/.conky/weather-BdA.txt | head -7 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1})${else}
${offset 73}${voffset -14}${color4}${exec grep "<s>" $HOME/.conky/weather-BdA.txt | head -6 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}${endif}
${offset 5}${color3}Umidita'
${offset 73}${voffset -14}${color4}${exec grep "<hmid>" $HOME/.conky/weather-BdA.txt | head -6 | tail -1 | cut -d'>' -f2 | cut -d'<' -f1}% 
${offset 30}${voffset 20}${color5}${exec $HOME/.conky/ConkyWxdata/pplang.sh 138}

${offset 20}${voffset 15}${color3}${font Ubuntu:size=10}Origine:
${offset 80}${voffset -14}${exec grep "<obst>" $HOME/.conky/weather-BdA.txt | head -1 | cut -d'>' -f2 |cut -d',' -f1}
${offset 20}${voffset -2}${color3}${font Ubuntu:size=10}Alle:
${offset 80}${voffset -14}${exec MYDATE=`grep "<lsup>" $HOME/.conky/weather-BdA.txt | head -1 | cut -d'>' -f2 | cut -d'<' -f1`;date -d"$MYDATE" "+%d/%m/%Y %H:%M";MYDATE=}

${offset 20}${color0} ... 

${offset 260}${voffset -1030}${color0}${font :BOLD:size=8}CONKY ${font :size=8}${hr 2}${color}
${offset 260}Version:${alignr}${conky_version}
${offset 260}Build:${alignr}${conky_build_date}

${offset 260}${voffset -8}${color0}${font :BOLD:size=8}SYSTEM${font :size=8} ${hr 2}${color}
${offset 260}${color1}${exec cat /etc/issue.net} $machine${color}
${offset 260}Kernel: $alignr$kernel
${offset 260}X.Org: $alignr ${exec apt-cache show xserver-xorg-hwe-16.04 | grep Version | awk '{print $2}'}
${offset 260}Hostname: $alignr$nodename
${offset 260}Uptime: $alignr$uptime
${offset 260}Processes: ${alignr}$processes ($running_processes running)

${offset 260}${voffset -8}${color0}${font :BOLD:size=8}CPU${font :size=8} ${hr 2}${color}
${offset 260}${color1}Intel i7-7700HQ:${color} ${alignr}${freq} MHz
${offset 260}Load: ${alignr}$loadavg
${offset 260}Temp: ${alignr}${acpitemp} C
${offset 260}Average - ${cpu cpu0}%
${offset 260}${voffset -3}${cpugraph cpu0}
${offset 260}${voffset -5}Core 1 - ${cpu cpu1}% $alignr Core 2 - ${cpu cpu2}%
${offset 260}${voffset -3}${cpugraph cpu1 25,97 } $alignr${cpugraph cpu2 25,97 }
${offset 260}${voffset -5}Core 3 - ${cpu cpu3}% $alignr Core 4 - ${cpu cpu4}%
${offset 260}${voffset -3}${cpugraph cpu3 25,97 } $alignr${cpugraph cpu4 25,97 }

${offset 260}${voffset -10}${color0}${font :BOLD:size=8}VIDEO${font :size=8} ${hr 2}${color}
${offset 260}${color1}nVidia ${exec nvidia-smi --query-gpu=name --format=csv,noheader}:${color} ${alignr}${exec nvidia-settings -query=VideoRam | grep gpu | awk '{print $4/1024}' } MB
${offset 260}Driver ${alignr} ${exec nvidia-settings -query NvidiaDriverVersiOn | grep gpu | awk '{print $4}' }
${offset 260}GPU Speed ${alignr}${nvidia gpufreq} Mhz
${offset 260}Memory Speed ${alignr} ${nvidia memfreq} Mhz
${offset 260}GPU Temp ${alignr} ${nvidia temp} C

${offset 260}${voffset -8}${color1}${font :BOLD:size=8}RAM${font :size=8}${color} ${alignr}$mem / $memmax ($memperc%)
${offset 260}${membar 4}
${offset 260}Swap ${alignr}$swap / $swapmax ($swapperc%)
${offset 260}${swapbar 4}

${offset 260}${voffset -8}${font :BOLD:size=8}Top CPU${font :size=8} $alignr CPU% MEM%
${offset 260}${top name 1}$alignr${top cpu 1}${top mem 1}
${offset 260}${top name 2}$alignr${top cpu 2}${top mem 2}
${offset 260}${top name 3}$alignr${top cpu 3}${top mem 3}
${offset 260}${top name 4}$alignr${top cpu 4}${top mem 4}
${offset 260}${top name 5}$alignr${top cpu 5}${top mem 5}
${offset 260}${top name 6}$alignr${top cpu 6}${top mem 6}

${offset 260}${voffset -10}${font :BOLD:size=8}Top MEM${font :size=8} $alignr CPU% MEM%
${offset 260}${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${offset 260}${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${offset 260}${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
${offset 260}${top_mem name 4}$alignr${top_mem cpu 4}${top_mem mem 4}
${offset 260}${top_mem name 5}$alignr${top_mem cpu 5}${top_mem mem 5}
${offset 260}${top_mem name 6}$alignr${top_mem cpu 6}${top_mem mem 6}

${offset 260}${voffset -8}${color0}${font :BOLD:size=8}FILESYSTEM(S)${font :size=8} ${hr 2}${color}

${offset 260}${voffset -10}Root ${alignr}${fs_free /} - ${fs_size /}
${offset 260}${fs_bar 4 /}\

${offset 260}Home ${alignr}${fs_free /home} - ${fs_size /home}
${offset 260}${fs_bar 4 /home}\
${if_existing /media/gianni/Elements}
${offset 260}Elements ${alignr}${fs_free /media/gianni/Elements} - ${fs_size /media/gianni/Elements}
${offset 260}${fs_bar 4 /media/gianni/Elements}${endif}\
${if_existing /media/gianni/Disco2TB}
${offset 260}Disco2TB ${alignr}${fs_free /media/gianni/Disco2TB} - ${fs_size /media/gianni/Disco2TB}
${offset 260}${fs_bar 4 /media/gianni/Disco2TB}${endif}\
${if_existing /media/gianni/Disco3TB}
${offset 260}Disco3TB ${alignr}${fs_free /media/gianni/Disco3TB} - ${fs_size /media/gianni/Disco3TB}
${offset 260}${fs_bar 4 /media/gianni/Disco3TB}${endif}\
${if_existing /media/gianni/Disco4TB}
${offset 260}Disco4TB ${alignr}${fs_free /media/gianni/Disco4TB} - ${fs_size /media/gianni/Disco4TB}
${offset 260}${fs_bar 4 /media/gianni/Disco4TB}${endif}\
${if_existing /media/gianni/LuxAlpha}
${offset 260}LuxAlpha ${alignr}${fs_free /media/gianni/LuxAlpha} - ${fs_size /media/gianni/LuxAlpha}
${offset 260}${fs_bar 4 /media/gianni/LuxAlpha}${endif}\
${if_existing /media/gianni/LuxMore}
${offset 260}LuxMore ${alignr}${fs_free /media/gianni/LuxMore} - ${fs_size /media/gianni/LuxMore}
${offset 260}${fs_bar 4 /media/gianni/LuxMore}${endif}\
${if_existing /media/gianni/LuxStore}
${offset 260}LuxStore ${alignr}${fs_free /media/gianni/LuxStore} - ${fs_size /media/gianni/LuxStore}
${offset 260}${fs_bar 4 /media/gianni/LuxStore}${endif}\
${if_existing /media/gianni/4TBultimo}
${offset 260}4TBultimo ${alignr}${fs_free /media/gianni/4TBultimo} - ${fs_size /media/gianni/4TBultimo}
${offset 260}${fs_bar 4 /media/gianni/4TBultimo}${endif}\
${if_existing /media/gianni/SoftESong}
${offset 260}SoftESong ${alignr}${fs_free /media/gianni/SoftESong} - ${fs_size /media/gianni/SoftESong}
${offset 260}${fs_bar 4 /media/gianni/SoftESong}${endif}\
${if_existing /media/gianni/CopieGiulia}
${offset 260}CopieGiulia ${alignr}${fs_free /media/gianni/CopieGiulia} - ${fs_size /media/gianni/CopieGiulia}
${offset 260}${fs_bar 4 /media/gianni/CopieGiulia}${endif}\
${if_existing /media/gianni/GIANNI512MB}
${offset 260}GIANNI512MB ${alignr}${fs_free /media/gianni/GIANNI512MB} - ${fs_size /media/gianni/GIANNI512MB}
${offset 260}${fs_bar 4 /media/gianni/GIANNI512MB}${endif}\
${if_existing /media/gianni/Gianni64GB}
${offset 260}Gianni64GB ${alignr}${fs_free /media/gianni/Gianni64GB} - ${fs_size /media/gianni/Gianni64GB}
${offset 260}${fs_bar 4 /media/gianni/Gianni64GB}${endif}

${offset 260}${voffset -8}${color0}${font :BOLD:size=8}NETWORK(S)${font :size=8} ${hr 2}${color}
${offset 260}${voffset 2}Public IP: ${alignr}${exec curl ifconfig.me}
${offset 260}Gateway IP: ${alignr}${gw_ip}\
${if_existing /sys/class/net/enp4s0/operstate up}
${offset 260}${color1}ENP4S0${color} Local IP: $alignr${addr enp4s0}
${offset 260}Down ${downspeed enp4s0}/s ${alignr}Up ${upspeed enp4s0}/s
${offset 260}${downspeedgraph enp4s0 25,97} ${alignr}${upspeedgraph enp4s0 25,97}
${offset 260}Total ${totaldown enp4s0} ${alignr}Total ${totalup enp4s0}${endif}\
${if_existing /sys/class/net/wlp3s0/operstate up}
${offset 260}${color1}WLP3S0${color} Local IP: $alignr${addr wlp3s0}
${offset 260}Network SSID:$alignr${wireless_essid wlp3s0}
${offset 260}Down ${downspeed wlp3s0}/s ${alignr}Up ${upspeed wlp3s0}/s
${offset 260}${downspeedgraph wlp3s0 25,97} ${alignr}${upspeedgraph wlp3s0 25,97}
${offset 260}Total ${totaldown wlp3s0} ${alignr} Total ${totalup wlp3s0}${endif}\
${if_existing /sys/class/net/bnep0/operstate up}
${offset 260}${color1}BNEP0${color} Local IP: $alignr${addr bnep0}
${offset 260}Down ${downspeed bnep0}/s ${alignr}Up ${upspeed bnep0}/s$
${offset 260}${downspeedgraph bnep0 25,97} ${alignr}${upspeedgraph bnep0 25,97}
${offset 260}Total ${totaldown bnep0} ${alignr} Total ${totalup bnep0}${endif}

${offset 260}${voffset -10}Total Network Connections: ${tcp_portmon 1 65535 count}

${offset 260}${alignr} ... 

]];
lasers commented 5 years ago

Can you try the latest master? Conky 1.11.3 came out 3 days ago. The older versions (right at or before 1.10.8) are not trustworthy due to too many changes that can be hard to track. Thank you.

git clone https://github.com/brndnmtthws/conky
cd conky
mkdir -p build
cd build
cmake ..
make -j4 # 4 cores to run in parallel
src/conky -c myconf.conf # <-- your config goes here
GianniSandy commented 5 years ago

Hi,

thanks for your quick response.

Sorry but I am not keen to follow the path to start from sources. Is it available a Debian SID/Ubuntu package repository to add to my repo list? I am currently on Ubuntu 18.04.

Best regards, Gianni

Il 25/02/19 18:10, lasers ha scritto:

Can you try the latest master? |Conky 1.11.3| came out 3 days ago. The older versions (right at or before |1.10.8|) are not trustworthy due to too many changes that can be hard to track. Thank you.

git clone https://github.com/brndnmtthws/conky cd conky mkdir -p build cd build cmake .. make -j4# 4 cores to run in parallel src/conky -c myconf.conf# <-- your config goes here

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brndnmtthws/conky/issues/794#issuecomment-467094455, or mute the thread https://github.com/notifications/unsubscribe-auth/AYT98VYuulehWj_qm98bWN-2yahRYiH9ks5vRBjwgaJpZM4bPQg5.

--

PillarOfWisdom1: Inject yourself with some fantasy to NOT die of reality

PillarOfWisdom2: The secret for a long healthy life is: eat half, walk double, laugh three times and love without measure! (Chinese saying)

PillarOfWisdom3: Work like you do not need money Sing like you are alone in bath Dance like no one is seeing you Love like you've never been hurt Live like paradise is on the earth and... Don't worry about the world coming to an end today. It's already tomorrow in Australia!

PillarOfWisdom4: A project plan is not the project... as well as A map is not the territory...

Gianni Sandigliano Via Matteotti, 102 13040 Borgo d'Ale (VC) - Italia Tel: +39-02-320626288 Fax: +39-02-700443715 Mobile: +39-348-4426880 Fax2Mail: +39-011-8343112528 Skype: sandigliano.gianni EMail: mailto:sandigliano.gianni@gmail.com EMailNew: mailto:gianni@sandigliano.com

=== Ai sensi del DLGS 196/2003 (Codice Privacy) e del Regolamento UE n.679/2016 (General Data Protection Regulation - GDPR) le informazioni contenute in questa email o nei suoi allegati devono ritenersi confidenziali ed intese per il solo destinatario/i. La lettura, copia, distribuzione o genericamente l'utilizzo da parte di chiunque altro è da considerarsi NON autorizzato. Se non si è tra i destinatari, cancellare questo messaggio, inclusi gli allegati, ed avvisare il mittente rispondendo all'indirizzo sopra riportato mediante email.

According to italian DLGS 196/2003 (Privacy Code) and to Europen Reg. nr.679/2016 GDPR (General Data Protection Regulation) informations in this e-mail and any attachments are confidential and are intended for the addressee(s) only. Reading, copying, disclosure or use by anybody else is unauthorized. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail.

lasers commented 5 years ago

I don't think we have Debian/SID Ubuntu PPA for latest master. For what it's worth, the commands above will compile Conky and does NOT install anything to system. Maybe you want to make a directory (i.e. ~/src) and clone conky to there first.

All this is just information. I'm not asking you to do anything. Cheers.

Only possible workaround is reduce its complexity.

It's maybe the only thing you can do right now because I think it will take a long while for anybody to review this issue (and many others).

Another issue is that your config looks good, but we probably can't test it because it's too large and it contains different paths, different hardware, different distributions, et cetera so your best bet is to reduce its complexity. :-)

P.S. I can't tell if you wanted to share all ways to contact and/or find you in your reply email.

plikhari commented 5 years ago

OK lets go with what you have.

From the get go - I notice your conky config is way to wordy - there are few things we can do to reduce the excessive wordage in the script.

see how things improve

cheers

GianniSandy commented 5 years ago

Thanks for your suggestions,

so far I've simplified my conky script as much as possible with:     - changing base gap_x value     - striping out most of ${voffset -X} values     - tuning font usage as you described This simplification obviously works, the script size is reduced, enabling to add other features...up to when script size is arriving to 17300 bytes long:

I've also tried to set text_buffer_size to higher values: tried 65535, 131069 and also 262137 but without ANY clue / changes / improvements.

I feel I've found a real limitation in conky functionality...but I remain happy to use conky it as it is today.

Thanks for your work and your support.

Gianni

Il 19/03/19 16:21, Paramvir ha scritto:

OK lets go with what you have.

From the get go - I notice your conky config is way to wordy - there are few things we can do to reduce the excessive wordage in the script.

  • I see you have added text_buffer_size - try cranking that up - way up and see what happens.
  • you can use the |${font Ubuntu:size=10}| and similar directives for varying font sizes once per usage and then close the section with |${font}|
  • use a conky weather program such a conkywx - OR - move your script offline so that you reduce the |${exec}| statements and it's other variants to absolute minimum.
  • overzealous use of |${offset}| - use |gap_x| to move the display once as you see fit - rather than use |${offset}| each line on the left most column - for second column this is fine.

see how things improve

cheers

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brndnmtthws/conky/issues/794#issuecomment-474420108, or mute the thread https://github.com/notifications/unsubscribe-auth/AYT98REa9nIN_jHySzyFM37MYBGUO135ks5vYQBtgaJpZM4bPQg5.

plikhari commented 5 years ago

I am not aware of anything in life that does not have it's limits.

Have a look at the desktop image - What is so fantastic about conky is that it is extensible with any scripting language or you can also use the built in Lua with cairo - the Anemometer you see in the image is an animated widget of sorts which gives a near real time feel to the wind and gust values which perhaps are updated every hour.

Lua is an embedded language of choice for most games and perhaps real time systems - so why not conky. This gives you limitless possibilities !!!

Screenshot-2019-03-22-22-43-29

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 30 days with no activity.