You are not logged in.
Pages: 1
hi there,
i'm totaly new to linux and i was doing some basic stuff with conky.
I now have a four digit clock on top and would like to align to the right border. (first line after TEXT).
But it only displays the first of the four digits and the other three are out of the edge of the monitor.
What am i doing wrong? do i misunderstand alignr? is something wrong with the basic config?
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 170 200
maximum_width 190
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color black
default_outline_color white
alignment tr
gap_x 5
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
# Output
##############################################
TEXT
${alignr}${font Radio space:size=40}${time %H:%M}${font}
${font Radio space:size=10}${time %d.%m.%Y}${font}Last edited by faebser (2010-08-18 13:12:28)
Offline
Change xftfont so it says Sans:size=40 and the alignr should work properly. You will have to remember to change the font for other items in your conky though or else they'll end up at 40 size too.
Offline
Hmm... Faebser probably doesn't want to use Sans, since Radio Space is very fancy and Sans is very basic. Radio Space should work in Conky, however. The config says "Radio space", though: remember that in Linux everything is Case Sensitive.
Faebser, are you sure 170 is enough as minimum width? Could you show a screenshot?
EDIT: 170 is very little when your font size is 40!
Last edited by Piraja (2010-08-18 06:25:33)
I never use smilies, but there are exceptions that prove the rule
Now playing: Libre.fm
Offline
Hmm... Faebser probably doesn't want to use Sans, since Radio Space is very fancy and Sans is very basic.
I didn't tell him to change the font for the time, just in the settings.
Faebser, are you sure 170 is enough as minimum width? Could you show a screenshot?
Its not the width. I doubled it to 400 and it still gets cut off.
Offline
Thanks for the correction, Anonymous, you just taught me something – I did not realize that the xftfont setting could have such an effect. Did you try if xftfont Sans:size=40 fixes the issue?
I never use smilies, but there are exceptions that prove the rule
Now playing: Libre.fm
Offline
@faebser
did you try
${font Radio space:size=40}${alignr}${time %H:%M}${font}?
"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"
Offline
Here's mine:
minimum_size 1000 50
maximum_width 2250
...
${font URW Gothic L Bold:size=36}${alignr -335}${color #E68FB4}${time %H %M}${font}
Note the number after the alignr command. A - number moves the text left. Adjust to taste.
Offline
thank you for the replies,
i fixed this by changing the following:
minimum_size 200 200
maximum_width 250
${font Radio space:size=50}$alignr${time %H:%M}${font}that leads me to the following conclusion:
conky aligns to the fontsize, so always use alignr after $font.
Last edited by faebser (2010-08-18 13:07:26)
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.