Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Conky Helps and Stuff

Message
Author
User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6104
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#261 Post by Eadwine Rose » Sat Oct 13, 2018 4:40 am

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-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3471
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#262 Post by asqwerth » Sat Oct 13, 2018 4:46 am

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
Forum Veteran
Forum Veteran
Posts: 3471
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#263 Post by asqwerth » Sat Oct 13, 2018 4:53 am

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
Forum Veteran
Forum Veteran
Posts: 6104
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#264 Post by Eadwine Rose » Sat Oct 13, 2018 6:07 am

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-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

User avatar
male
Forum Regular
Forum Regular
Posts: 295
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#265 Post by male » Sat Oct 13, 2018 11:57 am

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.
Male is the capital of the Maldives and its wonderful people.

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6104
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#266 Post by Eadwine Rose » Sat Oct 13, 2018 12:35 pm

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-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 22697
Joined: Wed Jul 19, 2006 6:13 am

Re: Conky Helps and Stuff

#267 Post by Jerry3904 » Tue Oct 23, 2018 4:50 pm

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: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
male
Forum Regular
Forum Regular
Posts: 295
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#268 Post by male » Wed Oct 31, 2018 5:06 pm

A calendar from @easysid :happy:

Image Image
Male is the capital of the Maldives and its wonderful people.

Post Reply

Return to “Software / Configuration”