Re: Clock Make Script Move Left And Right

have you tried pad_percents, its in the man page, but not on http://conky.sourceforge.net/variables.html annoyingly

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Re: Clock Make Script Move Left And Right

benj1 wrote:

have you tried pad_percents, its in the man page, but not on http://conky.sourceforge.net/variables.html annoyingly

There's no pad_percents listed in that link...

I really wouldn't know how to use it even if I saw it there too... sad


THANKS

Re: Clock Make Script Move Left And Right

DasFox wrote:
benj1 wrote:

have you tried pad_percents, its in the man page, but not on http://conky.sourceforge.net/variables.html annoyingly

There's no pad_percents listed in that link...

I really wouldn't know how to use it even if I saw it there too... sad


THANKS

first read my post again wink
second

pad_percent 2

before TEXT, would pad percentages to 2 didgits

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Re: Clock Make Script Move Left And Right

Ok my bad so what's this pad_percents suppose to do?

My biggest problem right now is the clock shifts left and right, which seems to be mostly influenced by the time, meaning 10:00 takes up more space then 1:00, so depending on the width of the numbers it moves it, left or right.

Here's the code right now:

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont verdana:size=8

# Text alignment 
alignment top_right

# Set to yes if you want Conky to be forked in the background.
#background yes

# Text alpha when using Xft
xftalpha 0.8

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
#total_run_times 0

# own window options
own_window               yes
own_window_transparent   yes
#own_window_type         desktop
own_window_type          override
own_window_hints         undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Minimum size of text area
minimum_size  590 235
maximum_width 590

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border width
border_width 1

default_shade_color    grey
default_outline_color  black

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 20
gap_y 0

pad_percents 2

use_spacer none

uppercase no


# My font names so I won't forget them.
# Asenine Wide
# Night Sky
# Radio Space
# Zegoe Light

# Stuff after 'TEXT' will be formatted on screen.

TEXT


${color cfc571}${font Night Sky:size=21}${time %A} * ${font Night Sky:size=21}${time %d %B %Y} *${font Night Sky:size=21}${time %l:%M %P}

THANKS

Re: Clock Make Script Move Left And Right

So, is it

pad_percents 2

or

pad_percent 2

?

EDIT: Sorry, checked it, pad_percents is the right spelling.

Last edited by Piraja (2010-08-13 11:39:44)

I never use smilies, but there are exceptions that prove the rule wink
Now playing: Last.fm

Re: Clock Make Script Move Left And Right

Piraja wrote:

So, is it

pad_percents 2

or

pad_percent 2

?

EDIT: Sorry, checked it, pad_percents is the right spelling.


This is what man conky says:

pad_percents
              Pad percentages to this many decimals (0 = no padding)

Re: Clock Make Script Move Left And Right

OK, now I guess I know what you mean. Since the minimum_size and maximum_width both have value 590, the clock cannot affect the width of its window, which is good, I suppose. However, since the clock is at the left side of the Conky window, when its numbers change e.g. from 2 to 1 (12:59 > 1:00), the leftmost digit does not move right (i.e. "1" does not move to the place where "2" used to be). Is that the case? You would like to keep the hour and minute digits as well as the colon at static spots on the screen? I'm afraid that's impossible, at least if you use the 12-hour clock. Would it work, then, if you used 24-hour clock and fixed width fonts? Maybe? Or maybe I'm still at a loss about this?

EDIT: Now that I took another look at your screenshots, I realized you have a slightly different setup: e.g. Friday 13 August 3:05 PM. However, it boils down to the same, as far as I can see.

Last edited by Piraja (2010-08-13 12:07:57)

I never use smilies, but there are exceptions that prove the rule wink
Now playing: Last.fm

Re: Clock Make Script Move Left And Right

On yet another look, I guess the solution could be very simple, after all. Now your clock looks like this:

${color cfc571}${font Night Sky:size=21}${time %A} * ${font Night Sky:size=21}${time %d %B %Y} *${font Night Sky:size=21}${time %l:%M %P}

Just add "alignr" before hour, minute, and AM/PM:

${color cfc571}${font Night Sky:size=21}${time %A} * ${font Night Sky:size=21}${time %d %B %Y} ${alignr}*${font Night Sky:size=21}${time %l:%M %P}

EDIT: That should do the trick. I just verified that it works: launched your original conky, killed it, added "alignr" and launched it again. I will ad a scrot in a jiffy... here we go:

http://omploader.org/tNThhMw

The variable "alignr" simply stands for "align right".

Last edited by Piraja (2010-08-13 12:22:28)

I never use smilies, but there are exceptions that prove the rule wink
Now playing: Last.fm

Re: Clock Make Script Move Left And Right

My clock is not on the left side of the screen it's on the right.

So this alignr is to align the clock on the right side of the screen, if so mine is there already.

No I don't want the time to be static I just want this whole clock to stay in place, it's fine if the time changes, but it shifts everything left and right and I'm constantly playing with it, trying to find a happy medium to make it work. The worst part of the shifting is when it moves over to far to the right and some of the time gets cut off.

I'm trying to keep the clock as far right as possible, but like I said when it moves back and forth and finally moves over the farthest it wants to go to the right, it's a balancing act of trying to find how far I can keep it to the right, without it getting cut off, so far not having luck, because I don't want the clock sticking way out to the left...


THANKS

Re: Clock Make Script Move Left And Right

I never said your clock conky is at the left side of the screen. "Conky window" is what I wrote, not "screen". Did you try my suggestion? The variable "alignr" is not meant to keep anything at the right side of the screen (that would be impossible, since the placement of your Conky window is determined by "gap_x" and "gap_y"). There is no reason not to try my suggestion, I think. The full .conkyrc_clock is below, with nothing else changed except the added "alignr" (and removed line breaks to save space):

# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont verdana:size=8
# Text alignment 
alignment top_right
# Set to yes if you want Conky to be forked in the background.
#background yes
# Text alpha when using Xft
xftalpha 0.8
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
#total_run_times 0
# own window options
own_window               yes
own_window_transparent   yes
#own_window_type         desktop
own_window_type          override
own_window_hints         undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Minimum size of text area
minimum_size  590 235
maximum_width 590
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 10
# border width
border_width 1
default_shade_color    grey
default_outline_color  black
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 20
gap_y 0
pad_percents 2
use_spacer none
uppercase no
# My font names so I won't forget them.
# Asenine Wide
# Night Sky
# Radio Space
# Zegoe Light
# Stuff after 'TEXT' will be formatted on screen.
TEXT
${color cfc571}${font Night Sky:size=21}${time %A} * ${font Night Sky:size=21}${time %d %B %Y} ${alignr}*${font Night Sky:size=21}${time %l:%M %P}

Save that as e.g. .conkyrc_alignr, killall conky, then

conky -c ~/.conkyrc_alignr

and see if it works.

P.S. If the text moves across the borders of the Conky window (or screen, as you have gap_x set to 0), you have set the minimum width too low, I think.

Last edited by Piraja (2010-08-14 06:36:12)

I never use smilies, but there are exceptions that prove the rule wink
Now playing: Last.fm

Re: Clock Make Script Move Left And Right

Well one thing I don't like is that the alignr creates a gap now in between the date and time...

Also the AM/PM still gets cut off, but I'd like to figure out how to close this gap...


THANKS

Last edited by DasFox (2010-08-18 05:37:19)

Re: Clock Make Script Move Left And Right

Maybe you could try changing the xftfont setting? See this thread: conky & alignr

I never use smilies, but there are exceptions that prove the rule wink
Now playing: Last.fm

Re: Clock Make Script Move Left And Right

One thing I noticed is an unneeded space between your time command and you alignr command.  See?

....${time %d %B %Y} ${alignr}*${font Night Sky:size=21}....

Re: Clock Make Script Move Left And Right

Piraja wrote:

Maybe you could try changing the xftfont setting? See this thread: conky & alignr

Well when I change the font size, all it does it move the clock up and down, it doesn't make the fonts bigger or smaller.

xftfont verdana:size=9




winotree wrote:

One thing I noticed is an unneeded space between your time command and you alignr command.  See?

....${time %d %B %Y} ${alignr}*${font Night Sky:size=21}....

No that's not it, when I add in the ${alignr} it was adding more of a gap. I want a little bit of a gap there, that's why I had it with the space. So I fixed that now by using this:

${alignr 46}

This is how it looks now:

${color cfc571}${font Night Sky:size=21}${time %A} * ${font Night Sky:size=21}${time %d %B %Y}${alignr 46}*${font Night Sky:size=21}${time %l:%M %P}

Maybe this ${alignr 46} will hold it in place, let me see how this goes, if not, I'll be back, LOL... wink


THANKS

P.S. After posting this the ${alignr 46} is a bigger pain to deal with, using numbers with it. When the time changes I still either have to much of a gap, or they get to bunched up, either way it's still moving around, just as big a mess.

So I'm going to just play with the, gap_x & pad_percents this seems to be the simplest at the moment, moving the clock further over to the left to at least keep it from getting cut off on the right side of the screen, even if it does still move a little.

I guess there's no way to keep this thing in place...

Last edited by DasFox (2010-08-21 08:11:09)

Re: Clock Make Script Move Left And Right

I'm real sorry you're having all these problems with your conky clock -- have you ever considered using a monoface font for only the clock?  I read recently that that helped prevent the numbers moving.  neutral

Re: Clock Make Script Move Left And Right

winotree wrote:

I'm real sorry you're having all these problems with your conky clock -- have you ever considered using a monoface font for only the clock?  I read recently that that helped prevent the numbers moving.  neutral


Well like I said, I'm going to just play with the gap_x & pad_percents and see how that goes for now and report back if it's not...


THANKS