You are not logged in.
Pages: 1
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 text2renders this way:

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
is this of any help? http://crunchbanglinux.org/forums/topic … ky-alignr/
Offline
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. 
i also tried:
xftfont Sans:size=40
${font Sans:size=7} $alignr text0 $tab text1 $tab text2 $fontbut, aside from having the other lines bigger, the first is still cut off...
Offline
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
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
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 
Offline
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
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... 
have not tried with "tabs"...
Offline
^ congratulations on a problem self-solved! 
Offline
@ lo
We have a dedicated conky thread here.
You solution isn't quite right. Drop by the Conky thread and we talk.
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
^ a tempting invitation!
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.