SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-05-18 09:21:52

lo
Member
Registered: 2012-05-09
Posts: 14

[solved] conky alignr

hi all.

i think i don't understand the alignr property behavior.

my .conkyrc:

background yes
use_xft yes
xftfont Sans:size=7
xftalpha 0.5
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 400
maximum_width 400
draw_shades no
draw_outline no
draw_borders yes
draw_graph_borders no
default_color cc9900
alignment top_right
gap_x 25
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
$alignr text0 $tab text1 $tab text2
${alignr 9} text0 $tab text1 $tab text2
${alignr 10} text0 $tab text1 $tab text2
${alignr 19} text0 $tab text1 $tab text2
${alignr 20} text0 $tab text1 $tab text2

renders this way:

conky.png
so:

  • why, without any argument, the text is cut off?

  • why the rightmost margin is ok just in the "10-19" range?

  • why the rightmost margin is affected only for n >= 20?


thanks.

Last edited by lo (2012-05-18 18:48:28)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-05-18 09:37:51

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: [solved] conky alignr

Offline

#3 2012-05-18 09:47:52

lo
Member
Registered: 2012-05-09
Posts: 14

Re: [solved] conky alignr

i read it but, correct if i'm wrong, it just says to increase the font size, doesn't it?

i've already tried to change it to "xftfont Sans:size=40" but it just renders the font bigger... and i'm fine with my "7" setting. smile

i also tried:

xftfont Sans:size=40
${font Sans:size=7} $alignr text0 $tab text1 $tab text2 $font

but, aside from having the other lines bigger, the first is still cut off...

Offline

#4 2012-05-18 12:07:16

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: [solved] conky alignr

if i understood correctly, it says something about the behavior of alignr being dependent upon the font-size. if you google 'conky alignr' you'll find this bugreport which seems to assert the same: http://sourceforge.net/tracker/index.ph … tid=757308

i do not know exactly how to help you with this, but i think this might be a lead to your issue. maybe somebody else who knows better comes along, or try asking in the massive conky thread we have.

Offline

#5 2012-05-18 13:01:07

lo
Member
Registered: 2012-05-09
Posts: 14

Re: [solved] conky alignr

i read the other thread again.
it is concerning the use of both $alignr and $font in the same line... not my case.

are we sure it does not depend on something wrong in my configuration file?

Offline

#6 2012-05-18 13:11:20

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: [solved] conky alignr

i don't see anything wrong, but i'm no expert here. you need guys like Sector11 or MrPeachy to take a look at it, they live and breathe conky smile

Offline

#7 2012-05-18 17:03:05

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,031

Re: [solved] conky alignr

I'd put even money on the problem being related to your combination of tabs and alignr...but I mess around with Conky far less than Roald does...


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Offline

#8 2012-05-18 18:48:07

lo
Member
Registered: 2012-05-09
Posts: 14

Re: [solved] conky alignr

i think i figured it out!

${alignr 45}abc${offset 11}longtext${offset 34}end
${alignr 63}something${offset 53}y${offset 10}more...

$alignr needs a width equal to the sum of all the $offset widths... cool

have not tried with "tabs"...

Offline

#9 2012-05-18 22:02:13

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: [solved] conky alignr

^ congratulations on a problem self-solved! smile

Offline

#10 2012-05-23 03:40:25

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: [solved] conky alignr

@ lo

We have a dedicated conky thread here.

You solution isn't quite right.  Drop by the Conky thread and we talk.

Offline

#11 2012-05-23 17:15:13

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: [solved] conky alignr

^ a tempting invitation!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo