You are not logged in.

#1 2009-06-29 15:22:15

AirOnSkin
Member
From: Switzerland
Registered: 2008-12-09
Posts: 11

Conky Problem: Window cuts off data

Hey everyone,

I've been messing around with that conky problem for quite a while now.
The conky window cuts off some data, which is a bit annoying.

I've been trying to set the minimum_size option and text_buffer_size but without any change.

the conkyrc:

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type desktop
#own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders
draw_borders no
border_margin 1

#shades
draw_shades yes

#position
alignment bottom_left
gap_y 20
gap_x 20

#behaviour
update_interval 1

#colour
default_color  808080
own_window_colour 303030

#font
use_xft yes
xftfont bauhaus:pixelsize=11

#to prevent window from moving
use_spacer no

#mpd
mpd_host localhost
mpd_port 6600

uppercase yes

TEXT
${color}Hostname:${tab 50}${color c4c4c4}${exec echo $HOSTNAME}
${color}Kernel:${tab 50}${color c4c4c4}$kernel
${color}Uptime:${tab 50}${color c4c4c4}${uptime_short}
${color}Battery:${tab 50}${color c4c4c4}${battery_percent}%

${color}eMail:${tab 50}${color c4c4c4}${execi 30 python /opt/conky/scripts/gmail.py}${color}
${color}Weather:${tab 50}${color c4c4c4}${execi 300 weatherget -f /opt/conky/scripts/conkyweatherrc --station-id=SZXX0033 --metric }
${color}Arch Pkg:${tab 50}${color c4c4c4}${execi 3600 perl /opt/conky/scripts/conky-updates.pl}

${color}/:${tab 50}${color c4c4c4}${fs_free_perc /}%
${color}/usr:${tab 50}${color c4c4c4}${fs_free_perc /usr}%
${color}/home:${tab 50}${color c4c4c4}${fs_free_perc /home}%
${color}Processes:${tab 50}${color c4c4c4}$processes${color} / ${color c4c4c4}$running_processes
${color}Memory:${tab 50}${color c4c4c4}$memperc%
${color}CPU:${tab 50}${color c4c4c4}${cpu}%

the screenshot:

shot200906292202380549f.png

Would be cool if someone knows how to solve this.

Thanks in advance smile

Air

Last edited by AirOnSkin (2009-09-08 07:45:54)

Offline

#2 2009-06-29 16:02:45

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Conky Problem: Window cuts off data

Did you try the maximum_width option?

Scott

Offline

#3 2009-06-29 16:12:14

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,730
Website

Re: Conky Problem: Window cuts off data

I have been dealing with this problem for about 8 months now and have not been able to fix it.
I wrote an application that reports the number of e-mails in my server and their headings. In KDE3.x it used to show as many e-mails as I had in the server but then one good day after an upgrade of conky it stopped doing that and instead it would cut-off after showing the first 8 e-mails, nevertheless, the totals would show say 18 e-mails in the server.
Till this day I have been unable to find what the problem is but one thing is for sure, it is conky. mad

R.

Offline

#4 2009-07-02 07:53:06

AirOnSkin
Member
From: Switzerland
Registered: 2008-12-09
Posts: 11

Re: Conky Problem: Window cuts off data

firecat53 wrote:

Did you try the maximum_width option?

Why would I want to try that? That option only limits the window to a size, not setting a minimal width... or am I missing something?

ralvez wrote:

I have been dealing with this problem for about 8 months now and have not been able to fix it.
I wrote an application that reports the number of e-mails in my server and their headings. In KDE3.x it used to show as many e-mails as I had in the server but then one good day after an upgrade of conky it stopped doing that and instead it would cut-off after showing the first 8 e-mails, nevertheless, the totals would show say 18 e-mails in the server.
Till this day I have been unable to find what the problem is but one thing is for sure, it is conky. mad

I see. Well, in that case we'll just have to wait. Thanks for the information, though.

Air

Offline

#5 2009-07-02 08:12:39

ZeroTruths
Member
Registered: 2009-07-02
Posts: 77

Re: Conky Problem: Window cuts off data

I would suggest setting either minimum_width or maximum_width to higher numbers.
I believe (it's been a while since I've played wih Conky) that by default it's set to 200px width, which might be your problem.

Offline

#6 2009-07-02 11:53:23

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,730
Website

Re: Conky Problem: Window cuts off data

ZeroTruths wrote:

I would suggest setting either minimum_width or maximum_width to higher numbers.
I believe (it's been a while since I've played wih Conky) that by default it's set to 200px width, which might be your problem.

Tried that. Did not do a thing smile to solve the problem ... it cuts the content after the 7th. line of text.

R.

Offline

#7 2009-07-02 14:45:28

AirOnSkin
Member
From: Switzerland
Registered: 2008-12-09
Posts: 11

Re: Conky Problem: Window cuts off data

Yep. All these options don't affect the behaviour of conky (concerning that problem)... it's quite frustrating hmm

Offline

#8 2009-07-03 21:06:40

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Conky Problem: Window cuts off data

I believe that the option is minimum_size, not minimum_width.

I also don't see any minimum_anything in the conkyrc that was posted.

HTH


Knute

Offline

#9 2009-07-03 21:23:11

droog
Member
Registered: 2004-11-18
Posts: 877

Re: Conky Problem: Window cuts off data

removing line 2 and 8 fixes it for me smile, if the minimum_size doesn't fix it maybe try a different font?

Offline

#10 2009-07-04 03:12:58

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,730
Website

Re: Conky Problem: Window cuts off data

Funny ... I do not remember having seen a screen shot before in the thread ... lol
At any rate, looking at the screen shot our problems are different: your problem is "width" but that works fine for me; my problem is "height" since the application begins to write downwards as new emails arrive as in:

Total Emails: 9

1. Email Subject Line
2. Email Subject Line
.
.
.
7. Email Subject Line

and after line 7 no more Subjet Lines even though there are more in the server.
It used to work fine but one of the updatess of conky broke it for me... sad

R.

Offline

#11 2009-07-06 09:41:02

AirOnSkin
Member
From: Switzerland
Registered: 2008-12-09
Posts: 11

Re: Conky Problem: Window cuts off data

Knute wrote:

I believe that the option is minimum_size, not minimum_width.
I also don't see any minimum_anything in the conkyrc that was posted.

As already mentioned in the initial post: "I've been trying to set the minimum_size option and text_buffer_size but without any change."
I don't leave options in the file that don't do anything, that's why it's not in the postet conkyrc.

droog wrote:

if the minimum_size doesn't fix it maybe try a different font?

Hmm, I'll try that, maybe it helps.

ralvez wrote:

Funny ... I do not remember having seen a screen shot before in the thread ...

oO, strange. It was there from the beginning...


I believe, the problem occurs because of the additional scripts. Conky tries to determine the width of the window by the data that is displayed. The normal data like cpu-freq or kernel-version are always the same width (plus-minus), though the data that comes from the script vary.

The new conky package that I installed today also didn't fix the problem...

Air

Offline

#12 2011-02-22 00:24:48

sportscliche
Member
From: Albuquerque, NM
Registered: 2010-11-30
Posts: 43

Re: Conky Problem: Window cuts off data

AirOnSkin wrote:

I believe, the problem occurs because of the additional scripts. Conky tries to determine the width of the window by the data that is displayed. The normal data like cpu-freq or kernel-version are always the same width (plus-minus), though the data that comes from the script vary.
Air

I believe this is indeed the cause of the clipping problem.  When conky first loads (presumably at bootup), it sizes its window frame by what it has to display at that moment in time.  And once set, no command I have tried can re-size it.  I have, however, come up with a solution that you might be able to apply to your particular situation.

The idea is to start conky at the maximum anticipated window size, even if there's nothing in that space initially.  In my laptop setup, for example, I have a code to display net and weather data conditional on the availability of a network connection.  The wireless can take the better part of a minute connect, ie. long after conky has started and its window is set.  When conky eventually grabs the net data, which supplements data in the already established window, it gets clipped.  So I reserve space for it as soon as conky starts:

${if_gw}
# Network related conky commands in here
$else
#Add the blank vertical window space you need
${voffset 200}
$endif

You would play the same game in the horizontal direction as necessary.  The essential idea is to put blank spaces in areas you'll access at some point after startup.

Offline

#13 2012-01-08 02:07:41

MeisBarry
Member
Registered: 2011-04-11
Posts: 15

Re: Conky Problem: Window cuts off data

I realize this is an old topic, but I'm putting my solution to horizontal/vertical Conky clipping here for Googleable documentation:

Comment out these lines in your conkyrc:
#own_window_type ...
#own_window_hints ...

Make sure Conky refreshes with this. Your WM should decorate the window. Resize the window normally using your WM. Then put the two above lines back in and restart conky entirely (it behaved differently for me without the restart).

What happened, for me, is that not only did the window expand, but it started obeying minimum_size constraints. I had to tweak the gap_x and gap_y settings a little after this, but it worked.

Offline

#14 2012-12-06 21:34:31

rfkrocktk
Member
Registered: 2012-12-05
Posts: 3

Re: Conky Problem: Window cuts off data

Super weird, but it works.

Offline

Board footer

Powered by FluxBB