SEARCH

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

You are not logged in.

#1 2010-08-18 02:44:15

faebser
New Member
Registered: 2010-08-18
Posts: 7

[solved] conky & alignr

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

Be excellent to each other!

#2 2010-08-18 05:31:42

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: [solved] conky & alignr

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

#3 2010-08-18 06:23:43

Piraja
#! Die Hard
From: Lost River Lake
Registered: 2009-02-19
Posts: 529

Re: [solved] conky & alignr

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 wink
Now playing: Libre.fm

Offline

#4 2010-08-18 06:29:56

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: [solved] conky & alignr

Piraja wrote:

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.

Piraja wrote:

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.

77fc649331.png

Offline

#5 2010-08-18 06:36:21

Piraja
#! Die Hard
From: Lost River Lake
Registered: 2009-02-19
Posts: 529

Re: [solved] conky & alignr

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 wink
Now playing: Libre.fm

Offline

#6 2010-08-18 08:33:29

SuNjACk
#! Die Hard
Registered: 2010-05-23
Posts: 545

Re: [solved] conky & alignr

@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

#7 2010-08-18 10:26:27

zengrapefruit
#! Junkie
Registered: 2009-12-11
Posts: 280

Re: [solved] conky & alignr

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

#8 2010-08-18 13:07:00

faebser
New Member
Registered: 2010-08-18
Posts: 7

Re: [solved] conky & alignr

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

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