Conky Helps and Stuff

Message
Author
User avatar
Eadwine Rose
Administrator
Posts: 11894
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#261 Post by Eadwine Rose »

asqwerth wrote: Sat Oct 13, 2018 3:57 am I'm booted into MX15 right now, which does not have Conky Manager.

I'm running a slightly modified version of male's gisweather-like conky plus another conky, via this conky-startup script which I autostart:

Code: Select all

#!/bin/bash

killall conky

sleep 4 && conky -c $HOME/.conkyrc &
sleep 6 && conky -c $HOME/conkystuff/AP-orange-red-ARGBmod-Roboto-debianUpdates-compiz-b_r.conkyrc &

exit 0
Both conkies use own desktop normal and no buffers yes

but one is old syntax conky and the other is new syntax conky.

No freeze. I'm wondering if it's the complexity of your main conky. Maybe there's some command or line within that just doesn't go with the weather script. Or you could also try to start your 2 conkies with the script above instead of the command you are using. No harm trying, right?

Image

https://imgur.com/Cl3K3wY

Code: Select all

 apt-cache policy conky-all
conky-all:
  Installed: 1.10.0-1mx150+1
  Candidate: 1.10.0-1mx150+1
  Version table:
 *** 1.10.0-1mx150+1 0
        500 http://iso.mxrepo.com/mx/repo/ mx15/main amd64 Packages
        100 /var/lib/dpkg/status
     1.9.0-6 0
        500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
Sure I could try that startup method, where do I put that script? How do I name it, do I make it executable (I assume yes), and then how do I autostart it in session and startup?

Sorry loads of questions, but I never use these things ;)
MX-23.2_x64 July 31 2023 * 6.1.0-18-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
asqwerth
Developer
Posts: 7210
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#262 Post by asqwerth »

Hang on. Ok, I'm running eadwine's basic conky with the weather conky and on my machine, the basic conky disappears after about 30 secs.

Lemme compare the differences between my conky that works and this one:

1. changed background = false to background = true ....... no change
2. changed: own_window_class = 'Conky', --'conky-semi', ..... no change
3. restored sticky here: own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
4. added: own_window_argb_visual = true,
5. commented out: total_run_times = 0,
6. added: text_buffer_size = 6144,

Darn. Still disappears.

Some other lines that don't appear in my conky that might or might not be significant:
cpu_avg_samples = 2,
default_color = 'DDDDDD',
default_outline_color = 'white',
default_shade_color = 'black',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
xftalpha = 0.8,
font = 'Monospace:size=8',
gap_x = 50,
gap_y = 50,
minimum_height = 5,
minimum_width = 5,
maximum_width = 500,
net_avg_samples = 2,
no_buffers = true, --false,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,

imlib_cache_size =0,
override_utf8_locale = true,
own_window = true,
own_window_class = 'Conky', --'conky-semi',
own_window_type = 'normal', --'override',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky', --sticky,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
-- total_run_times = 0,
text_buffer_size = 6144, <== tried with and without this, no change
show_graph_scale = false,
show_graph_range = false

Argh. Going to take a break from this puzzle. Going out.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
asqwerth
Developer
Posts: 7210
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#263 Post by asqwerth »

Eadwine Rose wrote: I could try that startup method, where do I put that script? How do I name it, do I make it executable (I assume yes), and then how do I autostart it in session and startup?
Been overtaken by events since I can't make your conky stay on my desktop, but I just saved it as "start_conky.sh" in my home folder.

Made it executable.

Added a new entry in sessions and startup and in the command field, pasted this:

/home/[username]/start_conky.sh
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Eadwine Rose
Administrator
Posts: 11894
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#264 Post by Eadwine Rose »

Thank you! Just started it through the terminal:

Code: Select all

$ ./start_conky.sh
conky: no process found
eadwine@mx17.1-eadwine:~
$ conky: desktop window (1600003) is subwindow of root window (290)
conky: window type - normal
conky: drawing to created window (0x5c00001)
conky: drawing to double buffer
conky: desktop window (1600003) is subwindow of root window (290)
conky: window type - normal
conky: drawing to created window (0x8000001)
conky: drawing to double buffer
sed: can't read /home/eadwine/1_accuweather/aktualisiert: No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16': No such file or directory
rm: cannot remove '/home/eadwine/1_accuweather/altogether16_2016': No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16: No such file or directory
sed: can't read /home/eadwine/1_accuweather/altogether16_2016: No such file or directory
I do have to close the terminal manually, it will not close on its own.


Also, as to the code things in the basic conky, I got that thing from the web like half a lifetime ago it seems. I had to convert it line by line when the newer parameters became active. I have no idea what all those lines are for, basically, but since it doesn't break on my system I saw no reason to figure all that stuff out ;)




Edit: and it's frozen again. The freeze times are different as well. Sometimes it runs half an hour, other times it runs maybe 15 minutes.
MX-23.2_x64 July 31 2023 * 6.1.0-18-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

male

Re: Conky Helps and Stuff

#265 Post by male »

I think I have found the error. ;)
The reason for the freezing is the too small window of the base Conky. The responsible parameters are in the original:

Code: Select all

    minimum_height = 5,
    minimum_width = 5,
    maximum_width = 500,
I changed that.

Code: Select all

    minimum_width = 500, minimum_height = 0,
--maximum_width = 500,
To make it easier to see, I gave the decoration back to the window.

Code: Select all

    own_window_hints = 'below,skip_taskbar,skip_pager',  --sticky,undecorated,
Image


This version runs since this morning without the freezing effect next to the weather conky of eadwine. Due to the length of the headlines of your rss messages, the window now behaves dynamically.
What I don't understand are these entries (where I changed eth0 to see an ad).

Code: Select all

${color Tan1}Eth0 down          ${color}${downspeedgraph eth0 10,70 00ff00 00ff00} ${downspeed eth0}
${color Tan1}Eth0 up            ${color}${upspeedgraph eth0 10,70 ff0000 ff0000} ${color}${upspeed eth0}
${color Tan1}Wlan0 down         ${color}${downspeedgraph wlan0 10,70 00ff00 00ff00 3052KiB} ${downspeed wlan0}
${color Tan1}Wlan0 up           ${color}${upspeedgraph wlan0 10,70 ff0000 ff0000 3052KiB} ${color}${upspeed wlan0}
3052KiB ?

@eadwine
I also don't understand why you don't implement the hints you are shown. For example, I didn't understand your error message at the beginning.

Code: Select all

[1]+  Stopped                 conky -c /home/eadwine/eadwine/conkyrc10
until I came across by trying it out, you start the Conky's without the final &
With this Conky fills the memory to a standstill / freeze.
If you want to read above, I have pointed that out first. The same with the "aktualisiert" what you criticized, it's still in your configuration and, more.

User avatar
Eadwine Rose
Administrator
Posts: 11894
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#266 Post by Eadwine Rose »

Those weirdo number entries are actually explained right above ;)

# calculate down and up speed scale (105*1000000)/8/1024 where 105 is the amount of mbits the eth0 connection has
# calculate down and up speed scale (25*1000000)/8/1024 where 25 is the amount of mbits the wlan0 connection has


Somewhere some point in time I had to look up the numbers because the scaling of the graph didn't pan out. As in, when it was going at full download speed of my connection the graph didn't get to the top but only like two pixels. Those numbers sort that.




Let's see about those 500 numbers, because my conky needs to fit in a certain area on the left of the screen, to the left of my browser ;) Like so:
conky.jpg

Changed them, all seems to be ok.



Yes I took that aktualisiert out and then put it back in since removing it messes with the position of the weather icons.

I have been starting the basic conky without the & since .. forever and a day, so I didn't know that was required and figured it was just superfluous.

Mind.. my memory wasn't full.. Nothing BUT the conky froze.

But let's see what it does now. Started it with asqwerths script, so the & is included now.



Edit: over an hour in, and still running!
another edit: added the startup script to session and autostart. Thanks asqwerth for those!!

Edit again: this is getting comical.. now the weather one is stuck lol

I restarted both, and now the basic conky is stuck again.

Seriously I doubt we will ever find what the cause is, so.. let's just let it go.
You do not have the required permissions to view the files attached to this post.
MX-23.2_x64 July 31 2023 * 6.1.0-18-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

Re: Conky Helps and Stuff

#267 Post by Jerry3904 »

In the other direction: I prefer a simpler, aesthetically appealing conky for everyday use. I have fooled around with the MX-Cowan_more supplied in the default set and came up with a version that works for me.

Here is the original:
MX-Cowon_more.png
and here is my simplification with addition of basic system info as we do in others, spacing improved and colored with MX Conky to match the default 17.1 wallpaper.
MX-Cowon_more-jb.png
If anyone is interested in this, here is the script of what I name MX-Cowon_more_sys:

Code: Select all

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0-
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Dinreg:size=180
override_utf8_locale yes
text_buffer_size 2048
xftalpha 0.9

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type conky
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 100

alignment bottom_right
gap_x 60
gap_y 160
minimum_size 140 140


default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color BDB5A1
default_shade_color 1d1d1d
color0 ffffff
color1 bdb5a1
color2 b48b31
color3 b7b39e


own_window_argb_value 0
own_window_argb_visual no
own_window_colour 000000
TEXT

${voffset -350}${time %I}
${color2}${voffset -170}${offset 100}${time %M}${color}
${offset 30}${voffset -250}${font Droid Sans:size=12}${time %A} ${time %B %d}
#system
${offset 30}${voffset 20}${font Roboto-Light:pixelsize=18}${color2}USED:${offset 9} ${color3}hdd ${offset 9}${color4}${fs_used_perc /}%${offset 9}${color3}cpu ${offset 9}${color4}${cpu}%
You do not have the required permissions to view the files attached to this post.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

male

Re: Conky Helps and Stuff

#268 Post by male »

A calendar from @easysid :happy:

Image Image

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 1:21 am

Fixed CPU temps & Net Speed KoO-MX Conky

#269 Post by KoO »

I have seen from some Nice screenshots of MX-18 that the CPU temps are not reading Properly and the net speed is fixed to Kbs this code should fix the issues..
Their are up to 4 cores with this script if you only two cores just comment out core 2 and 3 with this. #

Code: Select all

 background no
use_xft yes
font Terminus:size=8
xftalpha 0.5
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
#default_bar_size 0 6
 
maximum_width 310
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 40
#gap_y 280
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
 
own_window_argb_value 0
own_window_colour 000000
minimum_size 0 0

color0 dodgerblue3
color1 EC0100
color2 E9E101
color3 18FF00
color4 66aaff

TEXT

${alignc -0}${font Open Sans:size=15}${color0}MX Linux 18$font$color
${voffset 4}$color${font}${font Open Sans:size=10}$alignr${voffset -15}$font
${voffset -4}${color0}${font Open Sans:Bold:size=10}DATE ${color1}${hr 3}$color$font
$color${font Open Sans:size=10}$alignc${time %A}, ${time %d %B %Y    %l:%M %P}$font$color 

# SYS
${voffset -8}${font Open Sans:Bold:size=10}${color0}SYSTEM ${color EC0100}${hr 3}$color${font}
Kernel$alignr$sysname $kernel 
OS $alignr${exec cat 30 /etc/antix-version}
Uptime $alignr $uptime

# MEMORY
${voffset -8}${font Open Sans:Bold:size=10}${color0}MEMORY ${color EC0100}${hr 3}
${color2}${membar 4} 
$color${font Open Sans:bold:size=8.5}Used:$alignr$font $mem of $memmax
$color${font Open Sans:bold:size=8.5}Free:$alignr$font $memeasyfree
$color${font Open Sans:bold:size=8.5}Buffers / Cached:$alignr$font$buffers / $cached

${voffset -10}------------------------------------------${font Open Sans:Bold:size=10}${color0}${voffset -2}RAM${color}${font}${voffset -1}--------${font Open Sans:Bold:size=10}${color0}${voffset -2}CPU${color}${font}${voffset -1}--
${top_mem name 1}${alignr}${top_mem cpu 1} %
${voffset -13}${alignr}${offset -60}${top_mem mem 1} %
${top_mem name 2}${alignr}${top_mem cpu 2} %
${voffset -13}${alignr}${offset -60}${top_mem mem 2} %
${top_mem name 3}${alignr}${top_mem cpu 3} %
${voffset -13}${alignr}${offset -60}${top_mem mem 3} %
${top_mem name 4}${alignr}${top_mem cpu 4} %
${voffset -13}${alignr}${offset -60}${top_mem mem 4} %

# CPU
${voffset -8}${font Open Sans:Bold:size=10}${color0}CPU ${color EC0100}${hr 3}
$color${font}Intel® Xeon® Processor E3-1241   ${freq_g cpu0}GHz $alignr $cpu%  
## Fans ${alignr}${hwmon 3 fan 1} RPM : ${hwmon 3 fan 2} RPM : ${hwmon 3 fan 3} RPM
${font}Core 0  ${color3}${exec sensors|grep 'Core 0'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${alignc 60}${color2}${cpubar cpu0}${color}
${font}Core 1  ${color3}${exec sensors|grep 'Core 1'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${alignc 60}${color2}${cpubar cpu1}${color}
${font}Core 2  ${color3}${exec sensors|grep 'Core 2'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${alignc 60}${color2}${cpubar cpu2}${color}
${font}Core 3  ${color3}${exec sensors|grep 'Core 3'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${alignc 60}${color2}${cpubar cpu3}${color}

${voffset -10}------------------------------------------${font Open Sans:Bold:size=10}${color0}${voffset -2}RAM${color}${font}${voffset -1}--------${font Open Sans:Bold:size=10}${color0}${voffset -2}CPU${color}${font}${voffset -1}--
#${hr 1}
${top name 1}${alignr}${top cpu 1} %
${voffset -13}${alignr}${offset -60}${top mem 1} %
${top name 2}${alignr}${top cpu 2} %
${voffset -13}${alignr}${offset -60}${top mem 2} %
${top name 3}${alignr}${top cpu 3} %
${voffset -13}${alignr}${offset -60}${top mem 3} %
${top name 4}${alignr}${top cpu 4} %
${voffset -13}${alignr}${offset -60}${top mem 4} %
# ${top name 5}${alignr}${top cpu 5} %
#${voffset -13}${alignr}${offset -60}${top mem 5} %

# NETWORK
${voffset -8}${font Open Sans:Bold:size=10}${color0}NETWORK ${color EC0100}${hr 3}$color

${voffset -10}${font Open Sans:bold:size=8.5}Ethernet $font$alignr ${addr eth0}
↑ ${upspeed eth0}  $alignr ${totalup eth0}
${voffset -14}$alignc${upspeedgraph eth0 10,120  ff0000 0000ff}
↓ ${downspeed eth0}  $alignr ${totaldown eth0}
${voffset -14}$alignc${downspeedgraph eth0 10,120  ff0000 0000ff}

${voffset -10}${font Open Sans:bold:size=8.5}WiFi $font${wireless_bitrate wlan0} $alignr ${addr wlan0}
${voffset -14}$alignc${wireless_essid wlan0}
$alignc${color2}${wireless_link_bar 4,260 wlan0}${color E9E9E9} 
↑ ${upspeed wlan0}  $alignr ${totalup wlan0}
${voffset -14}$alignc${upspeedgraph wlan0 10,120 ff0000 0000ff}
↓ ${downspeed wlan0}  $alignr ${totaldown wlan0}
${voffset -14}$alignc${downspeedgraph wlan0 10,120 ff0000 0000ff}

# HDD
${voffset -8}${font Open Sans:Bold:size=10}${color0}DISKS ${color EC0100}${hr 3}
$color${font Open Sans:bold:size=8.5}${font Open Sans:bold:size=8.5}ROOT$font                    ${color}${fs_used /} / ${fs_size /}$alignr${fs_type /}
${color aaddff}write: ${diskio_write /dev/sdc}${color6}${alignc -20} read:${diskio_read /dev/sdc}$color$alignr ${fs_used_perc /}%   
${color2}${fs_bar /}${color}
## HDD Temps ${alignr}${color8}SDA: ${exec hddtemp /dev/sda -n --unit=C}° SDB: ${exec hddtemp /dev/sdb -n --unit=C}° 




# Mounted
#the script in the following line does not seem to function
#${exec 10 ~/semplice-conky-harddisks.sh}
#${voffset -8}${font Open Sans:Bold:size=10}${color0}Disk Mounts ${color1}${hr 3}$color$font

#${voffset -10}${font Open Sans:bold:size=8.5}HOME $font$alignr ${fs_type /home}
#${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home} % 
#${fs_bar /home}
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
asqwerth
Developer
Posts: 7210
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#270 Post by asqwerth »

Sigh. Just a rant that NOAA has discontinued its service at the end of 2018. I knew it was coming, but it's a bit of a pain to switch my conkies to 1_accuweather_RSS just to display the current temperature, and in the end I just let it display the whole current forecast. When I have more time I'll have to see if I can understand the awk and print $NF thing to get just the temperature showing.

In any case, I took the opportunity to finally use the 1_accuweather_RSS script for the first time. My conkies using the older 1d_accuweather_rss script are still working so I never bothered to use the newer script until now.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Post Reply

Return to “Software / Configuration”