brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.17k stars 615 forks source link

Mix of right aligned/left aligned table cells #748

Closed ndk- closed 1 year ago

ndk- commented 5 years ago

Issue

Right aligned tables

Information

Wasn't sure where to ask, so I would ask here. Is there an easy way to have a table with a mix of left/right aligned values? I am working on weather widget and want to right align some information, while having another information left aligned.

Things I have tried already (not a full list, there were also many variations of those):

  1. ${goto X}${execpi Y cat content_with_aligned_leading_spaces}${alignr}{execpi Y cat another_content}
  2. ${alignr 150}${execpi Y cat not_aligned_content}${alignr}{execpi Y cat another_content}
  3. ${alignr 150}${execpi Y cat not_aligned_content}${alignr}{execpi Y cat another_content_with_leading_spaces}
  4. ${goto X}${execpi Y cat content_with_aligned_leading_spaces}${goto Z}{execpi Y cat another_content_with_leading_spaces}
  5. I have tried to use: https://unix.stackexchange.com/questions/62948/conky-string-formatting, but it does not seem to like leading spaces when I used something like ${lua_parse format %10s ${execpi cat ....}}.

There is no clear documentation how to do it either.

It would be great if I am missing something trivial.

lasers commented 5 years ago

I'm not sure either. Take a look at wiki/Configs. Some of them may be doing what you're looking for. In short, I think it might be something simple like... leftleftleft{alignr}rightrightright. There is also ${offset} and ${voffset} variables to try.

@plikhari made conkywx which you might find it useful to try / borrow / experiment / etc for your weather widget.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 30 days with no activity.