Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

longName issues #3

Open
richalds55 opened this issue Aug 25, 2022 · 4 comments
Open

longName issues #3

richalds55 opened this issue Aug 25, 2022 · 4 comments

Comments

@richalds55
Copy link

Hello!

Love the conky yahoo script, I've been looking for something like this for a while before I finally found this. It all seems to be working perfectly, but I do have a question regarding the stock names. Some of the names run into the price and percent change (for VTI and AGG, for example), and when I changed the code to use shortname, it still is too long and runs into the other columns.

I was trying to see about changing the parameters to allow more space for the name to display without bleeding into the other columns, but I can't seem to figure this one out. Was wondering if you had any ideas on a fix for this?

Thanks!

GH0st3rs added a commit that referenced this issue Sep 17, 2022
@GH0st3rs
Copy link
Owner

Hi I added for you column offset array here

column_offsets = [10, 450, 540, 610]

You need to play with this values to align the col size.
Note: When you increase one of them, you have to increase the next one

@richalds55
Copy link
Author

Awesome, I appreciate the additional lines! I'm trying to play around with the numbers, but I can't seem to figure it out yet.

Do you mean I need to play with the numbers in line 42, or in the other lines (45 and 47-51)?

So far since I added in the new lines only the title of the widget is displaying, and playing around with the numbers hasn't made it work yet. I'm assuming the numbers in lines 45 and 47-51 are pointing to line 42, but again, playing around with it, I haven't figured it out yet.

Thanks again for your help
Ben

@GH0st3rs
Copy link
Owner

For the old version you need to play with lines (45 and 47-51)
In last commit I extracted them to line 42 column_offsets = [10, 450, 540, 610]
So each number there - offset:
10 - offset for the first column (ticket name)
450 - offset where the second starts (so that mean you allocated for the ticket name 450-10 = 440px)
540 - offset where the third column start (that mean width for column 2 is 540-450=90)
etc..

@richalds55
Copy link
Author

Ok. I re-copied the entire zip folder containing the Yahoo Finance conky scripts and set that up to run, as I still wasn't able to get it to display properly, but it seems I'm still having the same issue even after playing around with the numbers again. I tried to adjust the x y coordinates to just test that, but it remains in the same spot on my computer screen (bottom left of my screen, just above the taskbar). I've attached a screenshot of what it looks like to this comment.
Conky Finance Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants